-
Notifications
You must be signed in to change notification settings - Fork 0
/
cs-modal.scss
71 lines (62 loc) · 1.13 KB
/
cs-modal.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
// Modal Styles
$desktop: min-width 850px !default;
.modal-active {
overflow: hidden;
position: relative;
}
#modal-overlay {
background: rgba(0,0,0,0);
display: none;
height: 100%;
left: 0px;
overflow: auto;
overflow-x: none;
position: fixed;
top: 0px;
width: 100%;
z-index: 500;
-webkit-overflow-scrolling: touch;
@include transition(background-color 0.3s ease-in-out);
}
.modal-active #modal-overlay {
background-color: rgba(0,0,0,0.75);
}
#modal-wrap {
@include media($desktop) {
padding-bottom: 3em;
}
}
.modal {
background-color: $white;
border-radius: 5px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
display: none;
left: 0;
min-height: 100%;
padding: 2em;
position: relative;
top: 0;
width: 100%;
z-index: 600;
@include media($desktop) {
left: 50%;
margin: 0 0 3em -400px;
max-width: 800px;
min-height: auto;
top: 3em;
}
.close {
background: none;
border: none;
color: #333;
font-size: 22px;
line-height: 1.0;
padding: 8px 13px 13px 13px;
position: absolute;
right: 0;
top: 0;
&:hover {
color: #999;
}
}
}