forked from gdkraus/accessible-modal-dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modal-window.css
80 lines (76 loc) · 1.19 KB
/
modal-window.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
.modal-overlay {
background:rgba(0,0,0,.8) !important;
height: 100%;
width: 100%;
position: fixed;
margin: 0;
padding: 0;
top: 0;
left: 0;
transition: opacity .2s;
z-index: 2;
display: none;
}
/*
Modal Content Area
*/
.modal-holder {
box-sizing: border-box;
background: #efefef;
margin-left: auto;
margin-right: auto;
width: 70%;
overflow: auto !important;
padding: 1.5em !important;
position: fixed;
transition: transform .3s;
max-height: 80%;
top: 10%;
left: 15%;
z-index: 3;
}
.modal-holder[aria-hidden="true"] {
opacity: 0;
visibility: hidden;
}
.modal-holder[aria-hidden="false"] {
opacity: 1;
visibility: visible;
}
/*
General Modal Content
*/
.modal-title {
margin-top: 0;
padding-right: 1.25em;
}
.modal-desc {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
Close Modal Button
*/
.btn-close {
background: none;
border: none;
cursor: pointer;
font-family: arial;
font-size: 2em;
font-weight: 800;
line-height: 1;
padding: 0;
position: absolute;
right: .25em;
top: .25em;
z-index: 2;
}
.btn-close:focus {
color: $wai_red;
}