featherlight.css
5 years ago
featherlight.gallery.css
5 years ago
featherlight.gallery.js
5 years ago
featherlight.gallery.min.css
5 years ago
featherlight.gallery.min.js
5 years ago
featherlight.js
5 years ago
featherlight.min.css
5 years ago
featherlight.min.js
5 years ago
featherlight.gallery.css
123 lines
| 1 | /** |
| 2 | * Featherlight Gallery – an extension for the ultra slim jQuery lightbox |
| 3 | * Version 1.7.13 - http://noelboss.github.io/featherlight/ |
| 4 | * |
| 5 | * Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com) |
| 6 | * MIT Licensed. |
| 7 | **/ |
| 8 | |
| 9 | .featherlight-next, |
| 10 | .featherlight-previous { |
| 11 | display: block; |
| 12 | position: absolute; |
| 13 | top: 25px; |
| 14 | right: 25px; |
| 15 | bottom: 0; |
| 16 | left: 80%; |
| 17 | cursor: pointer; |
| 18 | /* preventing text selection */ |
| 19 | -webkit-touch-callout: none; |
| 20 | -webkit-user-select: none; |
| 21 | -khtml-user-select: none; |
| 22 | -moz-user-select: none; |
| 23 | -ms-user-select: none; |
| 24 | user-select: none; |
| 25 | /* IE9 hack, otherwise navigation doesn't appear */ |
| 26 | background: rgba(0,0,0,0); |
| 27 | } |
| 28 | |
| 29 | .featherlight-previous { |
| 30 | left: 25px; |
| 31 | right: 80%; |
| 32 | } |
| 33 | |
| 34 | .featherlight-next:hover, |
| 35 | .featherlight-previous:hover { |
| 36 | background: rgba(255,255,255,0.25); |
| 37 | } |
| 38 | |
| 39 | |
| 40 | .featherlight-next span, |
| 41 | .featherlight-previous span { |
| 42 | display: none; |
| 43 | position: absolute; |
| 44 | |
| 45 | top: 50%; |
| 46 | left: 5%; |
| 47 | width: 82%; |
| 48 | |
| 49 | /* center horizontally */ |
| 50 | text-align: center; |
| 51 | |
| 52 | font-size: 80px; |
| 53 | line-height: 80px; |
| 54 | |
| 55 | /* center vertically */ |
| 56 | margin-top: -40px; |
| 57 | |
| 58 | text-shadow: 0px 0px 5px #fff; |
| 59 | color: #fff; |
| 60 | font-style: normal; |
| 61 | font-weight: normal; |
| 62 | } |
| 63 | .featherlight-next span { |
| 64 | right: 5%; |
| 65 | left: auto; |
| 66 | } |
| 67 | |
| 68 | |
| 69 | .featherlight-next:hover span, |
| 70 | .featherlight-previous:hover span { |
| 71 | display: inline-block; |
| 72 | } |
| 73 | |
| 74 | .featherlight-swipe-aware .featherlight-next, |
| 75 | .featherlight-swipe-aware .featherlight-previous { |
| 76 | display: none; |
| 77 | } |
| 78 | |
| 79 | /* Hide navigation while loading */ |
| 80 | .featherlight-loading .featherlight-previous, .featherlight-loading .featherlight-next { |
| 81 | display:none; |
| 82 | } |
| 83 | |
| 84 | /* Hide navigation in case of single image */ |
| 85 | .featherlight-first-slide.featherlight-last-slide .featherlight-previous, |
| 86 | .featherlight-first-slide.featherlight-last-slide .featherlight-next { |
| 87 | display:none; |
| 88 | } |
| 89 | |
| 90 | |
| 91 | /* Always display arrows on touch devices */ |
| 92 | @media only screen and (max-device-width: 1024px){ |
| 93 | .featherlight-next:hover, |
| 94 | .featherlight-previous:hover { |
| 95 | background: none; |
| 96 | } |
| 97 | .featherlight-next span, |
| 98 | .featherlight-previous span { |
| 99 | display: block; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | /* handling phones and small screens */ |
| 104 | @media only screen and (max-width: 1024px) { |
| 105 | .featherlight-next, |
| 106 | .featherlight-previous { |
| 107 | top: 10px; |
| 108 | right: 10px; |
| 109 | left: 85%; |
| 110 | } |
| 111 | |
| 112 | .featherlight-previous { |
| 113 | left: 10px; |
| 114 | right: 85%; |
| 115 | } |
| 116 | |
| 117 | .featherlight-next span, |
| 118 | .featherlight-previous span { |
| 119 | margin-top: -30px; |
| 120 | font-size: 40px; |
| 121 | } |
| 122 | } |
| 123 |