This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_modal.scss
142 lines (117 loc) · 2.21 KB
/
_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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
.themodal-lock {
/* when modal is opened we're removing scrollbars from the main content */
overflow: hidden;
}
.themodal-overlay {
/* overlay will stay fixed and will take all the space available */
position: fixed;
bottom: 0;
left: 0;
top: 0;
right: 0;
z-index: 100;
/* if modal content doesn't fit inside the overlay, display scrollbars */
overflow: auto;
/* allow one-finger iPad scrolling */
-webkit-overflow-scrolling: touch;
}
/* fix for iPad glitches */
.themodal-overlay > * {
-webkit-transform: translateZ(0px);
}
.themodal-overlay {
background: rgba(0, 0, 0, 0.5);
/* IE6–IE8 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = #7F000000, endColorstr = #7F000000);
zoom: 1;
}
.themodal-overlay {
padding-left: 15px;
background-color: rgba($blue, 0.96);
}
.modal {
background-color: $base-background-color;
padding: $base-spacing;
position: relative;
.close {
position: absolute;
top: $small-spacing;
right: $small-spacing;
color: $base-font-color;
span {
@include hide-text;
display: block;
width: 0;
height: 0;
}
&:before {
@include icon-font();
content: "\e911";
font-size: 1.3em;
}
}
h1, h2, h3, h4, h5, h6 {
&:first-of-type {
margin-top: 0;
margin-bottom: 0.2em;
padding: 0;
border: none;
font-size: em(20);
}
}
&#upload {
@include MQ(L) {
max-width: 350px;
margin-left: auto;
margin-right: auto;
margin-top: 100px;
}
p {
font-size: em(14);
}
button {
display: block;
width: 100%;
}
.file {
margin-top: $base-spacing;
.remove {
float: right;
color: $medium-gray;
cursor: pointer;
span {
@include hide-text;
display: block;
width: 0;
height: 0;
}
&:before {
@include icon-font();
content: "\e913";
font-size: 1.3em;
}
&:hover {
color: $dark-gray;
}
}
.file-name {
font-size: em(14);
font-weight: normal;
line-height: 1.5em;
&:before {
@include icon-font();
content: "\e912";
font-size: 1.5em;
float: left;
}
}
.progress-bar {
margin-top: $small-spacing;
margin-bottom: $small-spacing;
}
textarea {
font-size: em(13);
}
}
}
}