-
Notifications
You must be signed in to change notification settings - Fork 0
/
featherlight.gallery.css
122 lines (102 loc) · 2.32 KB
/
featherlight.gallery.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
/**
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
* Version 1.7.13 - http://noelboss.github.io/featherlight/
*
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
.featherlight-next,
.featherlight-previous {
display: block;
position: absolute;
top: 25px;
right: 25px;
bottom: 0;
left: 80%;
cursor: pointer;
/* preventing text selection */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* IE9 hack, otherwise navigation doesn't appear */
background: rgba(0,0,0,0);
}
.featherlight-previous {
left: 25px;
right: 80%;
}
.featherlight-next:hover,
.featherlight-previous:hover {
background: rgba(255,255,255,0.25);
}
.featherlight-next span,
.featherlight-previous span {
display: none;
position: absolute;
top: 50%;
left: 5%;
width: 82%;
/* center horizontally */
text-align: center;
font-size: 80px;
line-height: 80px;
/* center vertically */
margin-top: -40px;
text-shadow: 0px 0px 5px #fff;
color: #fff;
font-style: normal;
font-weight: normal;
}
.featherlight-next span {
right: 5%;
left: auto;
}
.featherlight-next:hover span,
.featherlight-previous:hover span {
display: inline-block;
}
.featherlight-swipe-aware .featherlight-next,
.featherlight-swipe-aware .featherlight-previous {
display: none;
}
/* Hide navigation while loading */
.featherlight-loading .featherlight-previous, .featherlight-loading .featherlight-next {
display:none;
}
/* Hide navigation in case of single image */
.featherlight-first-slide.featherlight-last-slide .featherlight-previous,
.featherlight-first-slide.featherlight-last-slide .featherlight-next {
display:none;
}
/* Always display arrows on touch devices */
@media only screen and (max-device-width: 1024px){
.featherlight-next:hover,
.featherlight-previous:hover {
background: none;
}
.featherlight-next span,
.featherlight-previous span {
display: block;
}
}
/* handling phones and small screens */
@media only screen and (max-width: 1024px) {
.featherlight-next,
.featherlight-previous {
top: 10px;
right: 10px;
left: 85%;
}
.featherlight-previous {
left: 10px;
right: 85%;
}
.featherlight-next span,
.featherlight-previous span {
margin-top: -30px;
font-size: 40px;
}
}