generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy path_image-modal_project.scss
67 lines (61 loc) · 1.08 KB
/
_image-modal_project.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
/* The markdown image container */
.md__image {
cursor: pointer;
}
/* The Modal (background) */
.modal {
display: none;
position: fixed;
z-index: 9999999;
padding-top: 4em;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background: rgba(0,0,0,0.85);
}
/* Modal Content */
.modal-cont {
position: relative;
margin: auto;
padding: 0;
width: 90%;
max-width: 1400px;
}
.modal-pic {
display: flex;
align-content: center;
cursor: pointer;
}
/* The Close Button */
/* Optimized for accessibility by using a button named close but
shifting the close text out of the button and only showing x */
.modal-close {
color: white;
background-color: black;
position: absolute;
top: 5px;
right: 5px;
font-size: 2.5em;
height: 1em;
width: 1em;
text-indent: 10em;
overflow: hidden;
border: 0;
z-index: 99;
}
.modal-close::after {
position: absolute;
line-height: 0.5;
top: 0.2em;
left: 0.1em;
text-indent: 0;
content: "\00D7"
}
.modal-close:hover,
.modal-close:focus {
color: #999;
text-decoration: none;
cursor: pointer;
}