| 1 |
@charset "UTF-8"; |
| 2 |
/* |
| 3 |
* blueimp Gallery CSS |
| 4 |
* https://github.com/blueimp/Gallery |
| 5 |
* |
| 6 |
* Copyright 2013, Sebastian Tschan |
| 7 |
* https://blueimp.net |
| 8 |
* |
| 9 |
* Licensed under the MIT license: |
| 10 |
* https://opensource.org/licenses/MIT |
| 11 |
*/ |
| 12 |
|
| 13 |
.blueimp-gallery, |
| 14 |
.blueimp-gallery > .slides > .slide > .slide-content, |
| 15 |
.blueimp-gallery > .slides > .slide > .slide-content > img { |
| 16 |
position: absolute; |
| 17 |
top: 0; |
| 18 |
right: 0; |
| 19 |
bottom: 0; |
| 20 |
left: 0; |
| 21 |
-webkit-transition: opacity 0.2s linear; |
| 22 |
-moz-transition: opacity 0.2s linear; |
| 23 |
-ms-transition: opacity 0.2s linear; |
| 24 |
-o-transition: opacity 0.2s linear; |
| 25 |
transition: opacity 0.2s linear; |
| 26 |
/* Prevent artifacts in Mozilla Firefox: */ |
| 27 |
backface-visibility: hidden; |
| 28 |
-moz-backface-visibility: hidden; |
| 29 |
} |
| 30 |
.blueimp-gallery > .slides > .slide > .slide-content, |
| 31 |
.blueimp-gallery > .slides > .slide > .slide-content > img { |
| 32 |
margin: auto; |
| 33 |
width: auto; |
| 34 |
height: auto; |
| 35 |
max-width: 100%; |
| 36 |
max-height: 100%; |
| 37 |
opacity: 1; |
| 38 |
} |
| 39 |
.blueimp-gallery { |
| 40 |
position: fixed; |
| 41 |
z-index: 999999; |
| 42 |
overflow: hidden; |
| 43 |
background: #000; |
| 44 |
opacity: 0; |
| 45 |
display: none; |
| 46 |
direction: ltr; |
| 47 |
-ms-touch-action: pinch-zoom; |
| 48 |
touch-action: pinch-zoom; |
| 49 |
} |
| 50 |
.blueimp-gallery-carousel { |
| 51 |
position: relative; |
| 52 |
z-index: auto; |
| 53 |
margin: 1em auto; |
| 54 |
/* Set the carousel width/height ratio to 16/9: */ |
| 55 |
padding-bottom: 56.25%; |
| 56 |
box-shadow: 0 0 4px rgba(0, 0, 0, 0.1); |
| 57 |
-ms-touch-action: pan-y pinch-zoom; |
| 58 |
touch-action: pan-y pinch-zoom; |
| 59 |
display: block; |
| 60 |
} |
| 61 |
.blueimp-gallery-display { |
| 62 |
display: block; |
| 63 |
opacity: 1; |
| 64 |
} |
| 65 |
.blueimp-gallery > .slides { |
| 66 |
position: relative; |
| 67 |
height: 100%; |
| 68 |
overflow: hidden; |
| 69 |
} |
| 70 |
.blueimp-gallery-carousel > .slides { |
| 71 |
position: absolute; |
| 72 |
} |
| 73 |
.blueimp-gallery > .slides > .slide { |
| 74 |
visibility: hidden; |
| 75 |
position: relative; |
| 76 |
float: left; |
| 77 |
height: 100%; |
| 78 |
text-align: center; |
| 79 |
-webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); |
| 80 |
-moz-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); |
| 81 |
-ms-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); |
| 82 |
-o-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); |
| 83 |
transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); |
| 84 |
} |
| 85 |
.blueimp-gallery > .slides > .slide-prev, |
| 86 |
.blueimp-gallery > .slides > .slide-active, |
| 87 |
.blueimp-gallery > .slides > .slide-next { |
| 88 |
visibility: visible; |
| 89 |
} |
| 90 |
.blueimp-gallery > .slides > .slide-loading { |
| 91 |
background: url(../img/loading.gif) center no-repeat; |
| 92 |
background-size: 64px 64px; |
| 93 |
} |
| 94 |
.blueimp-gallery-smil > .slides > .slide-loading { |
| 95 |
background-image: url(../img/loading.svg); |
| 96 |
} |
| 97 |
.blueimp-gallery > .slides > .slide-loading > .slide-content { |
| 98 |
opacity: 0; |
| 99 |
} |
| 100 |
.blueimp-gallery > .slides > .slide-error { |
| 101 |
background: url(../img/error.png) center no-repeat; |
| 102 |
} |
| 103 |
.blueimp-gallery-svgasimg > .slides > .slide-error { |
| 104 |
background-image: url(../img/error.svg); |
| 105 |
} |
| 106 |
.blueimp-gallery > .slides > .slide-error > .slide-content { |
| 107 |
display: none; |
| 108 |
} |
| 109 |
.blueimp-gallery-display > .prev, |
| 110 |
.blueimp-gallery-display > .next { |
| 111 |
position: absolute; |
| 112 |
top: 50%; |
| 113 |
left: 15px; |
| 114 |
width: 8px; |
| 115 |
height: 20px; |
| 116 |
padding: 10px 14px 10px 18px; |
| 117 |
margin-top: -23px; |
| 118 |
-webkit-box-sizing: content-box; |
| 119 |
-moz-box-sizing: content-box; |
| 120 |
box-sizing: content-box; |
| 121 |
background: #222 url(../img/prev.png) center no-repeat; |
| 122 |
background-color: rgba(0, 0, 0, 0.5); |
| 123 |
border: 3px solid #fff; |
| 124 |
-webkit-border-radius: 30px; |
| 125 |
-moz-border-radius: 30px; |
| 126 |
border-radius: 30px; |
| 127 |
opacity: 0.5; |
| 128 |
cursor: pointer; |
| 129 |
display: none; |
| 130 |
} |
| 131 |
.blueimp-gallery-display > .next { |
| 132 |
right: 15px; |
| 133 |
left: auto; |
| 134 |
background-image: url(../img/next.png); |
| 135 |
} |
| 136 |
.blueimp-gallery-svgasimg > .prev { |
| 137 |
background-image: url(../img/prev.svg); |
| 138 |
} |
| 139 |
.blueimp-gallery-svgasimg > .next { |
| 140 |
background-image: url(../img/next.svg); |
| 141 |
} |
| 142 |
.blueimp-gallery-display > .close { |
| 143 |
position: absolute; |
| 144 |
top: 15px; |
| 145 |
right: 15px; |
| 146 |
width: 30px; |
| 147 |
height: 30px; |
| 148 |
background: url(../img/close.png) center no-repeat; |
| 149 |
opacity: 0.8; |
| 150 |
cursor: pointer; |
| 151 |
display: none; |
| 152 |
} |
| 153 |
.blueimp-gallery-svgasimg > .close { |
| 154 |
background-image: url(../img/close.svg); |
| 155 |
} |
| 156 |
.blueimp-gallery > .title { |
| 157 |
position: absolute; |
| 158 |
top: 15px; |
| 159 |
left: 15px; |
| 160 |
margin: 0 60px 0 0; |
| 161 |
font-size: 20px; |
| 162 |
line-height: 30px; |
| 163 |
color: #fff; |
| 164 |
text-shadow: 0 0 2px #000; |
| 165 |
opacity: 0.8; |
| 166 |
display: none; |
| 167 |
} |
| 168 |
.blueimp-gallery-display > .play-pause { |
| 169 |
position: absolute; |
| 170 |
right: 15px; |
| 171 |
bottom: 15px; |
| 172 |
width: 30px; |
| 173 |
height: 30px; |
| 174 |
background: url(../img/play-pause.png) 0 0 no-repeat; |
| 175 |
cursor: pointer; |
| 176 |
opacity: 0.5; |
| 177 |
display: none; |
| 178 |
} |
| 179 |
.blueimp-gallery-svgasimg > .play-pause { |
| 180 |
background-image: url(../img/play-pause.svg); |
| 181 |
} |
| 182 |
.blueimp-gallery-playing > .play-pause { |
| 183 |
background-position: -30px 0; |
| 184 |
} |
| 185 |
.blueimp-gallery-controls > .prev, |
| 186 |
.blueimp-gallery-controls > .next, |
| 187 |
.blueimp-gallery-controls > .close, |
| 188 |
.blueimp-gallery-controls > .title, |
| 189 |
.blueimp-gallery-controls > .play-pause { |
| 190 |
display: block; |
| 191 |
/* Fix z-index issues (controls behind slide element) on Android: */ |
| 192 |
-webkit-transform: translateZ(0); |
| 193 |
-moz-transform: translateZ(0); |
| 194 |
-ms-transform: translateZ(0); |
| 195 |
-o-transform: translateZ(0); |
| 196 |
transform: translateZ(0); |
| 197 |
} |
| 198 |
.blueimp-gallery-single > .prev, |
| 199 |
.blueimp-gallery-left > .prev, |
| 200 |
.blueimp-gallery-single > .next, |
| 201 |
.blueimp-gallery-right > .next, |
| 202 |
.blueimp-gallery-single > .play-pause { |
| 203 |
display: none; |
| 204 |
} |
| 205 |
.blueimp-gallery > .slides > .slide > .slide-content, |
| 206 |
.blueimp-gallery > .prev, |
| 207 |
.blueimp-gallery > .next, |
| 208 |
.blueimp-gallery > .close, |
| 209 |
.blueimp-gallery > .play-pause { |
| 210 |
-webkit-user-select: none; |
| 211 |
-khtml-user-select: none; |
| 212 |
-moz-user-select: none; |
| 213 |
-ms-user-select: none; |
| 214 |
user-select: none; |
| 215 |
} |
| 216 |
.blueimp-gallery > .prev:hover, |
| 217 |
.blueimp-gallery > .next:hover, |
| 218 |
.blueimp-gallery > .close:hover, |
| 219 |
.blueimp-gallery > .title:hover, |
| 220 |
.blueimp-gallery > .play-pause:hover { |
| 221 |
color: #fff; |
| 222 |
opacity: 1; |
| 223 |
} |
| 224 |
|
| 225 |
/* IE7 fixes */ |
| 226 |
* + html .blueimp-gallery > .slides > .slide { |
| 227 |
min-height: 300px; |
| 228 |
} |
| 229 |
* + html .blueimp-gallery > .slides > .slide > .slide-content { |
| 230 |
position: relative; |
| 231 |
} |
| 232 |
* + html .blueimp-gallery > .slides > .slide > .slide-content > img { |
| 233 |
position: relative; |
| 234 |
} |
| 235 |
|
| 236 |
@supports (object-fit: contain) { |
| 237 |
.blueimp-gallery-contain > .slides > .slide > .slide-content, |
| 238 |
.blueimp-gallery-contain > .slides > .slide > .slide-content > img { |
| 239 |
width: 100%; |
| 240 |
height: 100%; |
| 241 |
object-fit: contain; |
| 242 |
} |
| 243 |
} |
| 244 |
|
| 245 |
@media (prefers-color-scheme: light) { |
| 246 |
.blueimp-gallery-carousel { |
| 247 |
background: #fff; |
| 248 |
} |
| 249 |
} |
| 250 |
|