-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_popup.scss
121 lines (103 loc) · 2.7 KB
/
_popup.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
.popup {
height: 100vh;
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: rgba($color-black, .8);
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: all .3s;
@supports (-webkit-backdrop-filter: blur(1rem)) or (backdrop-filter: blur(1rem)) {
-webkit-backdrop-filter: blur(1rem);
backdrop-filter: blur(1rem);
background-color: rgba($color-black, .3);
}
&__content {
@include absCenter;
width: 75%;
background-color: $color-white;
box-shadow: 0 2rem 4rem rgba($color-black, .2);
border-radius: 3px;
display: table;
overflow: hidden;
//opacity: 0;
transform: translate(-50%, -50%) scale(.25);
transition: all .5s .2s;
@include respond(tab-port) {
text-align: center;
}
}
&__left {
width: 33.333333%;
display: table-cell;
vertical-align: middle;
@include respond(tab-port) {
display: table-row;
width: 100%;
}
}
&__right {
width: 66.6666667%;
display: table-cell;
vertical-align: middle;
padding: 3rem 5rem;
@include respond(tab-port) {
display: block;
width: 100%;
}
}
&__img {
display: block;
width: 100%;
@include respond(tab-port) {
display: inline-block;
width: 50%;
height: 30rem;
}
@include respond(phone) {
height: 20rem;
}
}
&__text {
font-size: 1.4rem;
margin-bottom: 4rem;
-moz-column-count: 2;
-moz-column-gap: 4rem; //1em = 14px;
-moz-column-rule: 1px solid $color-grey-light-2;
column-count: 2;
column-gap: 4rem; //1em = 14px;
column-rule: 1px solid $color-grey-light-2;
-moz-hyphens: auto;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
//OPEN STATES
&:target {
opacity: 1;
visibility: visible;
}
&:target &__content {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
&__close {
&:link,
&:visited {
color: $color-grey-dark;
position: absolute;
top: 2.5rem;
right: 2.5rem;
font-size: 3rem;
text-decoration: none;
display: inline-block;
transition: all .2s;
line-height: 1;
}
&:hover {
color: $color-primary;
}
}
}