-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
23 lines (21 loc) · 785 Bytes
/
style.css
File metadata and controls
23 lines (21 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#htmlContainer img {
max-width: 70%;
}
#htmlContainer img[tabindex="0"] {
cursor: zoom-in;
}
#htmlContainer img[tabindex="0"]:focus {
position: fixed; z-index: 1000;
top: 0; left: 0; bottom: 0; right: 0;
width: auto; max-width: 100%;
height: auto; max-height: 100%;
margin: auto;
box-shadow: 0 0 200px #000, 0 0 0 1000px rgba(0,0,0,.3);
-webkit-box-shadow: 0 0 200px #000, 0 0 0 1000px rgba(0,0,0,.3);
-moz-box-shadow: 0 0 200px #000, 0 0 0 1000px rgba(0,0,0,.3);
}
#htmlContainer img[tabindex="0"]:focus, /* Привязка на возврат фото в привычное состояние после клика на увеличенное */
#htmlContainer img[tabindex="0"]:focus ~ * {
cursor: zoom-out;
pointer-events: none;
}