forked from vodkabears/Remodal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.remodal.css
244 lines (194 loc) · 5.24 KB
/
jquery.remodal.css
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
/*! Remodal - v0.1.6 - 2014-05-16
* https://github.com/VodkaBears/remodal
* Copyright (c) 2014 VodkaBears; */
/* ==========================================================================
Remodal necessary styles
========================================================================== */
/* Hide scroll bar */
html.remodal_lock, body.remodal_lock {
overflow: hidden;
}
/* Anti FOUC */
.remodal, [data-remodal-id] {
visibility: hidden;
}
/* Overlay necessary styles */
.remodal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10000;
display: none;
overflow: auto;
-webkit-overflow-scrolling: touch;
text-align: center;
}
.remodal-overlay:after {
display: inline-block;
height: 100%;
margin-left: -0.05em;
content: '';
}
/* Fix iPad, iPhone glitches */
.remodal-overlay > * {
-webkit-transform: translateZ(0px);
}
/* Modal dialog necessary styles */
.remodal {
position: relative;
display: inline-block;
}
/* ==========================================================================
Remodal default theme
========================================================================== */
/* Default theme font */
@import url(http://fonts.googleapis.com/css?family=Exo+2:700,400&subset=latin,cyrillic);
.remodal, .remodal * {
font-family: 'Exo 2', sans-serif;
}
/* Background for effects */
.remodal-bg {
-webkit-transition: -webkit-filter 0.2s linear;
-moz-transition: -moz-filter 0.2s linear;
-o-transition: -o-filter 0.2s linear;
transition: filter 0.2s linear;
}
body.remodal_active .remodal-bg {
-webkit-filter: blur(3px);
-moz-filter: blur(3px);
-o-filter: blur(3px);
-ms-filter: blur(3px);
filter: blur(3px);
}
/* Overlay default theme styles */
.remodal-overlay {
opacity: 0;
background: rgba(33, 36, 46, 0.95);
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
body.remodal_active .remodal-overlay {
opacity: 1;
}
/* Modal dialog default theme styles */
.remodal {
width: 100%;
min-height: 100%;
padding: 35px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-size: 16px;
background: #f4f4f4;
background-clip: padding-box;
color: #182a3c;
-webkit-box-shadow: 0px 0px 8px #171a24;
box-shadow: 0px 0px 8px #171a24;
-webkit-transform: scale(0.95);
-moz-transform: scale(0.95);
-ms-transform: scale(0.95);
-o-transform: scale(0.95);
transform: scale(0.95);
-webkit-transition: -webkit-transform 0.2s linear;
-moz-transition: -moz-transform 0.2s linear;
-o-transition: -o-transform 0.2s linear;
transition: transform 0.2s linear;
}
body.remodal_active .remodal {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
/* Modal dialog vertical align */
.remodal, .remodal-overlay:after {
vertical-align: middle;
}
/* Close button */
.remodal-close {
position: absolute;
top: 5px;
left: 5px;
width: 28px;
height: 28px;
text-decoration: none;
-webkit-border-radius: 50%;
border-radius: 50%;
border: 2px solid #3e5368;
-webkit-transition: background 0.2s linear;
-moz-transition: background 0.2s linear;
-o-transition: background 0.2s linear;
transition: background 0.2s linear;
}
.remodal-close:after {
display: block;
font-size: 28px;
font-family: Arial, 'Helvetica CY', 'Nimbus Sans L', sans-serif !important;
content: "×";
line-height: 28px;
cursor: pointer;
text-decoration: none;
color: #3e5368;
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-o-transition: all 0.2s linear;
transition: all 0.2s linear;
}
.remodal-close:hover, .remodal-close:active {
background: #3e5368;
}
.remodal-close:hover.remodal-close:after, .remodal-close:active.remodal-close:after {
color: #f4f4f4;
}
/* Dialog buttons */
.remodal-confirm, .remodal-cancel {
display: inline-block;
width: 120px;
padding: 9px 0;
margin: 0 0 5px 0;
font-size: 10pt;
cursor: pointer;
text-decoration: none;
text-align: center;
-webkit-border-radius: 50px;
border-radius: 50px;
background-clip: padding-box;
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-o-transition: all 0.2s linear;
transition: all 0.2s linear;
}
.remodal-confirm {
border: 2px solid #16a085;
background: #f4f4f4;
color: #16a085;
}
.remodal-confirm:hover, .remodal-confirm:active {
background: #16a085;
color: #f4f4f4;
}
.remodal-cancel {
border: 2px solid #c0392b;
background: #f4f4f4;
color: #c0392b;
}
.remodal-cancel:hover, .remodal-cancel:active {
background: #c0392b;
color: #f4f4f4;
}
/* Media queries
========================================================================== */
@media only screen and (min-width: 40.063em) /* min-width 641px */ {
.remodal {
max-width: 700px;
margin: 20px auto;
min-height: 0;
-webkit-border-radius: 6px;
border-radius: 6px;
}
}