|
| 1 | +/* ========================================================================== |
| 2 | + Gallery |
| 3 | + ========================================================================== */ |
| 4 | +body { |
| 5 | + -webkit-font-smoothing: antialiased; |
| 6 | + -moz-osx-font-smoothing: grayscale; |
| 7 | + text-align: center; |
| 8 | +} |
| 9 | + |
| 10 | +h2 { |
| 11 | + font-weight: 300; |
| 12 | + margin: 4vh 4vw; |
| 13 | + letter-spacing: 3px; |
| 14 | + color: grey; |
| 15 | + text-transform: uppercase; |
| 16 | +} |
| 17 | + |
| 18 | +html |
| 19 | +{ |
| 20 | + /* killing 300ms touch delay in IE */ |
| 21 | + -ms-touch-action: manipulation; |
| 22 | + touch-action: manipulation; |
| 23 | +} |
| 24 | + |
| 25 | +.is-hidden |
| 26 | +{ |
| 27 | + display: none; |
| 28 | +} |
| 29 | + |
| 30 | +.btn |
| 31 | +{ |
| 32 | + text-transform: uppercase; |
| 33 | + color: #efefef; |
| 34 | + background-color: #333; |
| 35 | + padding: 0.313em 0.625em; /* 5 10 */ |
| 36 | +} |
| 37 | +.btn:hover, |
| 38 | +.btn:focus { background-color: #64a19d; } |
| 39 | +.btn:active { background-color: #64a19d; } |
| 40 | + |
| 41 | +#container ul |
| 42 | +{ |
| 43 | +} |
| 44 | +#container li |
| 45 | +{ |
| 46 | + display: inline-block; |
| 47 | + margin: 0.625em; /* 10 */ |
| 48 | +} |
| 49 | +#container img |
| 50 | +{ |
| 51 | + width: 13.125em; /* 140 */ |
| 52 | + height: 8.75em; /* 140 */ |
| 53 | + border-color: #eee; |
| 54 | + border: 0.625em solid rgba( 255, 255, 255, .5 ); /* 10 */ |
| 55 | + |
| 56 | + -webkit-box-shadow: 0 0 0.313em rgba( 0, 0, 0, .05 ); /* 5 */ |
| 57 | + box-shadow: 0 0 0.313em rgba( 0, 0, 0, .05 ); /* 5 */ |
| 58 | + |
| 59 | + -webkit-transition: -webkit-box-shadow .3s ease, border-color .3s ease; |
| 60 | + transition: box-shadow .3s ease, border-color .3s ease; |
| 61 | +} |
| 62 | +#container img:hover, |
| 63 | +#container img:focus |
| 64 | +{ |
| 65 | + border-color: #fff; |
| 66 | + |
| 67 | + -webkit-box-shadow: 0 0 0.938em rgba( 0, 0, 0, .25 ); /* 15 */ |
| 68 | + box-shadow: 0 0 0.938em rgba( 0, 0, 0, .25 ); /* 15 */ |
| 69 | +} |
| 70 | + |
| 71 | + |
| 72 | +/* IMAGE LIGHTBOX SELECTOR */ |
| 73 | + |
| 74 | +#imagelightbox |
| 75 | +{ |
| 76 | + cursor: pointer; |
| 77 | + position: fixed; |
| 78 | + z-index: 10000; |
| 79 | + |
| 80 | + -ms-touch-action: none; |
| 81 | + touch-action: none; |
| 82 | + |
| 83 | + -webkit-box-shadow: 0 0 3.125em rgba( 0, 0, 0, .75 ); /* 50 */ |
| 84 | + box-shadow: 0 0 3.125em rgba( 0, 0, 0, .75 ); /* 50 */ |
| 85 | +} |
| 86 | + |
| 87 | + |
| 88 | +/* ACTIVITY INDICATION */ |
| 89 | + |
| 90 | +#imagelightbox-loading, |
| 91 | +#imagelightbox-loading div |
| 92 | +{ |
| 93 | + border-radius: 50%; |
| 94 | +} |
| 95 | +#imagelightbox-loading |
| 96 | +{ |
| 97 | + width: 2.5em; /* 40 */ |
| 98 | + height: 2.5em; /* 40 */ |
| 99 | + background-color: #444; |
| 100 | + background-color: rgba( 0, 0, 0, .5 ); |
| 101 | + position: fixed; |
| 102 | + z-index: 10003; |
| 103 | + top: 50%; |
| 104 | + left: 50%; |
| 105 | + padding: 0.625em; /* 10 */ |
| 106 | + margin: -1.25em 0 0 -1.25em; /* 20 */ |
| 107 | + |
| 108 | + -webkit-box-shadow: 0 0 2.5em rgba( 0, 0, 0, .75 ); /* 40 */ |
| 109 | + box-shadow: 0 0 2.5em rgba( 0, 0, 0, .75 ); /* 40 */ |
| 110 | +} |
| 111 | +#imagelightbox-loading div |
| 112 | +{ |
| 113 | + width: 1.25em; /* 20 */ |
| 114 | + height: 1.25em; /* 20 */ |
| 115 | + background-color: #fff; |
| 116 | + |
| 117 | + -webkit-animation: imagelightbox-loading .5s ease infinite; |
| 118 | + animation: imagelightbox-loading .5s ease infinite; |
| 119 | +} |
| 120 | + |
| 121 | +@-webkit-keyframes imagelightbox-loading |
| 122 | +{ |
| 123 | + from { opacity: .5; -webkit-transform: scale( .75 ); } |
| 124 | + 50% { opacity: 1; -webkit-transform: scale( 1 ); } |
| 125 | + to { opacity: .5; -webkit-transform: scale( .75 ); } |
| 126 | +} |
| 127 | +@keyframes imagelightbox-loading |
| 128 | +{ |
| 129 | + from { opacity: .5; transform: scale( .75 ); } |
| 130 | + 50% { opacity: 1; transform: scale( 1 ); } |
| 131 | + to { opacity: .5; transform: scale( .75 ); } |
| 132 | +} |
| 133 | + |
| 134 | + |
| 135 | +/* OVERLAY */ |
| 136 | + |
| 137 | +#imagelightbox-overlay |
| 138 | +{ |
| 139 | + background-color: #fff; |
| 140 | + background-color: rgba( 255, 255, 255, .9 ); |
| 141 | + position: fixed; |
| 142 | + z-index: 9998; |
| 143 | + top: 0; |
| 144 | + right: 0; |
| 145 | + bottom: 0; |
| 146 | + left: 0; |
| 147 | +} |
| 148 | + |
| 149 | + |
| 150 | +/* "CLOSE" BUTTON */ |
| 151 | + |
| 152 | +#imagelightbox-close |
| 153 | +{ |
| 154 | + width: 2.5em; /* 40 */ |
| 155 | + height: 2.5em; /* 40 */ |
| 156 | + text-align: left; |
| 157 | + background-color: #666; |
| 158 | + border-radius: 50%; |
| 159 | + position: fixed; |
| 160 | + z-index: 10002; |
| 161 | + top: 2.5em; /* 40 */ |
| 162 | + right: 2.5em; /* 40 */ |
| 163 | + |
| 164 | + -webkit-transition: color .3s ease; |
| 165 | + transition: color .3s ease; |
| 166 | +} |
| 167 | +#imagelightbox-close:hover, |
| 168 | +#imagelightbox-close:focus { background-color: #111; } |
| 169 | + |
| 170 | +#imagelightbox-close:before, |
| 171 | +#imagelightbox-close:after |
| 172 | +{ |
| 173 | + width: 2px; |
| 174 | + background-color: #fff; |
| 175 | + content: ''; |
| 176 | + position: absolute; |
| 177 | + top: 20%; |
| 178 | + bottom: 20%; |
| 179 | + left: 50%; |
| 180 | + margin-left: -1px; |
| 181 | +} |
| 182 | +#imagelightbox-close:before |
| 183 | +{ |
| 184 | + -webkit-transform: rotate( 45deg ); |
| 185 | + -ms-transform: rotate( 45deg ); |
| 186 | + transform: rotate( 45deg ); |
| 187 | +} |
| 188 | +#imagelightbox-close:after |
| 189 | +{ |
| 190 | + -webkit-transform: rotate( -45deg ); |
| 191 | + -ms-transform: rotate( -45deg ); |
| 192 | + transform: rotate( -45deg ); |
| 193 | +} |
| 194 | + |
| 195 | +/* ARROWS */ |
| 196 | + |
| 197 | +.imagelightbox-arrow |
| 198 | +{ |
| 199 | + width: 3.75em; /* 60 */ |
| 200 | + height: 7.5em; /* 120 */ |
| 201 | + background-color: #444; |
| 202 | + background-color: rgba( 0, 0, 0, .5 ); |
| 203 | + vertical-align: middle; |
| 204 | + display: none; |
| 205 | + position: fixed; |
| 206 | + z-index: 10001; |
| 207 | + top: 50%; |
| 208 | + margin-top: -3.75em; /* 60 */ |
| 209 | +} |
| 210 | +.imagelightbox-arrow:hover, |
| 211 | +.imagelightbox-arrow:focus { background-color: rgba( 0, 0, 0, .75 ); } |
| 212 | +.imagelightbox-arrow:active { background-color: #111; } |
| 213 | + |
| 214 | +.imagelightbox-arrow-left { left: 2.5em; /* 40 */ } |
| 215 | +.imagelightbox-arrow-right { right: 2.5em; /* 40 */ } |
| 216 | + |
| 217 | +.imagelightbox-arrow:before |
| 218 | +{ |
| 219 | + width: 0; |
| 220 | + height: 0; |
| 221 | + border: 1em solid transparent; |
| 222 | + content: ''; |
| 223 | + display: inline-block; |
| 224 | + margin-bottom: -0.125em; /* 2 */ |
| 225 | +} |
| 226 | +.imagelightbox-arrow-left:before |
| 227 | +{ |
| 228 | + border-left: none; |
| 229 | + border-right-color: #fff; |
| 230 | + margin-left: -0.313em; /* 5 */ |
| 231 | +} |
| 232 | +.imagelightbox-arrow-right:before |
| 233 | +{ |
| 234 | + border-right: none; |
| 235 | + border-left-color: #fff; |
| 236 | + margin-right: -0.313em; /* 5 */ |
| 237 | +} |
| 238 | + |
| 239 | +#imagelightbox-loading, |
| 240 | +#imagelightbox-overlay, |
| 241 | +#imagelightbox-close, |
| 242 | +#imagelightbox-caption, |
| 243 | +#imagelightbox-nav, |
| 244 | +.imagelightbox-arrow |
| 245 | +{ |
| 246 | + -webkit-animation: fade-in .25s linear; |
| 247 | + animation: fade-in .25s linear; |
| 248 | +} |
| 249 | +@-webkit-keyframes fade-in |
| 250 | +{ |
| 251 | + from { opacity: 0; } |
| 252 | + to { opacity: 1; } |
| 253 | +} |
| 254 | +@keyframes fade-in |
| 255 | +{ |
| 256 | + from { opacity: 0; } |
| 257 | + to { opacity: 1; } |
| 258 | +} |
| 259 | + |
| 260 | +@media only screen and (max-width: 41.250em) /* 660 */ |
| 261 | +{ |
| 262 | + #container |
| 263 | + { |
| 264 | + width: 100%; |
| 265 | + } |
| 266 | + #imagelightbox-close |
| 267 | + { |
| 268 | + top: 1.25em; /* 20 */ |
| 269 | + right: 1.25em; /* 20 */ |
| 270 | + } |
| 271 | + #imagelightbox-nav |
| 272 | + { |
| 273 | + bottom: 1.25em; /* 20 */ |
| 274 | + } |
| 275 | + |
| 276 | + .imagelightbox-arrow |
| 277 | + { |
| 278 | + width: 2.5em; /* 40 */ |
| 279 | + height: 3.75em; /* 60 */ |
| 280 | + margin-top: -2.75em; /* 30 */ |
| 281 | + } |
| 282 | + .imagelightbox-arrow-left { left: 1.25em; /* 20 */ } |
| 283 | + .imagelightbox-arrow-right { right: 1.25em; /* 20 */ } |
| 284 | +} |
| 285 | + |
| 286 | +@media only screen and (max-width: 20em) /* 320 */ |
| 287 | +{ |
| 288 | + .imagelightbox-arrow-left { left: 0; } |
| 289 | + .imagelightbox-arrow-right { right: 0; } |
| 290 | +} |
0 commit comments