forked from samdark/the-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththe-modal.css
More file actions
33 lines (27 loc) · 721 Bytes
/
the-modal.css
File metadata and controls
33 lines (27 loc) · 721 Bytes
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
.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;
}