swipebox.css
262 lines
| 1 | html.swipebox { |
| 2 | overflow: hidden!important; |
| 3 | } |
| 4 | |
| 5 | #swipebox-overlay img { |
| 6 | border: none!important; |
| 7 | } |
| 8 | |
| 9 | #swipebox-overlay { |
| 10 | width: 100%; |
| 11 | height: 100%; |
| 12 | position: fixed; |
| 13 | top: 0; |
| 14 | left: 0; |
| 15 | z-index: 99999!important; |
| 16 | overflow: hidden; |
| 17 | -webkit-user-select: none; |
| 18 | -moz-user-select: none; |
| 19 | user-select: none; |
| 20 | } |
| 21 | |
| 22 | #swipebox-slider { |
| 23 | height: 100%; |
| 24 | left: 0; |
| 25 | top: 0; |
| 26 | width: 100%; |
| 27 | white-space: nowrap; |
| 28 | position: absolute; |
| 29 | display: none; |
| 30 | } |
| 31 | |
| 32 | #swipebox-slider .slide { |
| 33 | background: url("img/loader.gif") no-repeat center center; |
| 34 | height: 100%; |
| 35 | width: 100%; |
| 36 | line-height: 1px; |
| 37 | text-align: center; |
| 38 | display: inline-block; |
| 39 | } |
| 40 | |
| 41 | #swipebox-slider .slide:before { |
| 42 | content: ""; |
| 43 | display: inline-block; |
| 44 | height: 50%; |
| 45 | width: 1px; |
| 46 | margin-right: -1px; |
| 47 | } |
| 48 | |
| 49 | #swipebox-slider .slide img, |
| 50 | #swipebox-slider .slide .swipebox-video-container { |
| 51 | display: inline-block; |
| 52 | max-height: 100%; |
| 53 | max-width: 100%; |
| 54 | margin: 0; |
| 55 | padding: 0; |
| 56 | width: auto; |
| 57 | height: auto; |
| 58 | vertical-align: middle; |
| 59 | } |
| 60 | |
| 61 | #swipebox-slider .slide .swipebox-video-container { |
| 62 | background:none; |
| 63 | max-width: 1140px; |
| 64 | max-height: 100%; |
| 65 | width: 100%; |
| 66 | padding: 0; |
| 67 | box-sizing: border-box; |
| 68 | -webkit-box-sizing: border-box; |
| 69 | -moz-box-sizing: border-box; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | #swipebox-slider .slide .swipebox-video-container .swipebox-video{ |
| 74 | width: 100%; |
| 75 | height: 0; |
| 76 | padding-bottom: 56.25%; |
| 77 | overflow: hidden; |
| 78 | position: relative; |
| 79 | } |
| 80 | |
| 81 | #swipebox-slider .slide .swipebox-video-container .swipebox-video iframe{ |
| 82 | width: 100%!important; |
| 83 | height: 100%!important; |
| 84 | position: absolute; |
| 85 | top: 0; left: 0; |
| 86 | } |
| 87 | |
| 88 | #swipebox-action, #swipebox-caption { |
| 89 | position: absolute; |
| 90 | left: 0; |
| 91 | z-index: 999; |
| 92 | height: 50px; |
| 93 | width: 100%; |
| 94 | } |
| 95 | |
| 96 | #swipebox-action { |
| 97 | bottom: -50px; |
| 98 | } |
| 99 | #swipebox-action.visible-bars { |
| 100 | bottom: 0; |
| 101 | } |
| 102 | |
| 103 | #swipebox-action.force-visible-bars { |
| 104 | bottom: 0!important; |
| 105 | } |
| 106 | |
| 107 | #swipebox-caption { |
| 108 | top: -50px; |
| 109 | text-align: center; |
| 110 | } |
| 111 | #swipebox-caption.visible-bars { |
| 112 | top: 0; |
| 113 | } |
| 114 | |
| 115 | #swipebox-caption.force-visible-bars { |
| 116 | top: 0!important; |
| 117 | } |
| 118 | |
| 119 | #swipebox-action #swipebox-prev, #swipebox-action #swipebox-next, |
| 120 | #swipebox-action #swipebox-close { |
| 121 | background-image: url("img/icons.png"); |
| 122 | background-repeat: no-repeat; |
| 123 | border: none!important; |
| 124 | text-decoration: none!important; |
| 125 | cursor: pointer; |
| 126 | position: absolute; |
| 127 | width: 50px; |
| 128 | height: 50px; |
| 129 | top: 0; |
| 130 | } |
| 131 | |
| 132 | #swipebox-action #swipebox-close { |
| 133 | background-position: 15px 12px; |
| 134 | left: 40px; |
| 135 | } |
| 136 | |
| 137 | #swipebox-action #swipebox-prev { |
| 138 | background-position: -32px 13px; |
| 139 | right: 100px; |
| 140 | } |
| 141 | |
| 142 | #swipebox-action #swipebox-next { |
| 143 | background-position: -78px 13px; |
| 144 | right: 40px; |
| 145 | } |
| 146 | |
| 147 | #swipebox-action #swipebox-prev.disabled, |
| 148 | #swipebox-action #swipebox-next.disabled { |
| 149 | filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30); |
| 150 | opacity: 0.3; |
| 151 | } |
| 152 | |
| 153 | #swipebox-slider.rightSpring { |
| 154 | -moz-animation: rightSpring 0.3s; |
| 155 | -webkit-animation: rightSpring 0.3s; |
| 156 | } |
| 157 | |
| 158 | #swipebox-slider.leftSpring { |
| 159 | -moz-animation: leftSpring 0.3s; |
| 160 | -webkit-animation: leftSpring 0.3s; |
| 161 | } |
| 162 | |
| 163 | @-moz-keyframes rightSpring { |
| 164 | 0% { |
| 165 | margin-left: 0px; |
| 166 | } |
| 167 | |
| 168 | 50% { |
| 169 | margin-left: -30px; |
| 170 | } |
| 171 | |
| 172 | 100% { |
| 173 | margin-left: 0px; |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | @-moz-keyframes leftSpring { |
| 178 | 0% { |
| 179 | margin-left: 0px; |
| 180 | } |
| 181 | |
| 182 | 50% { |
| 183 | margin-left: 30px; |
| 184 | } |
| 185 | |
| 186 | 100% { |
| 187 | margin-left: 0px; |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | @-webkit-keyframes rightSpring { |
| 192 | 0% { |
| 193 | margin-left: 0px; |
| 194 | } |
| 195 | |
| 196 | 50% { |
| 197 | margin-left: -30px; |
| 198 | } |
| 199 | |
| 200 | 100% { |
| 201 | margin-left: 0px; |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | @-webkit-keyframes leftSpring { |
| 206 | 0% { |
| 207 | margin-left: 0px; |
| 208 | } |
| 209 | |
| 210 | 50% { |
| 211 | margin-left: 30px; |
| 212 | } |
| 213 | |
| 214 | 100% { |
| 215 | margin-left: 0px; |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | @media screen and (max-width: 800px) { |
| 220 | #swipebox-action #swipebox-close { |
| 221 | left: 0; |
| 222 | } |
| 223 | |
| 224 | #swipebox-action #swipebox-prev { |
| 225 | right: 60px; |
| 226 | } |
| 227 | |
| 228 | #swipebox-action #swipebox-next { |
| 229 | right: 0; |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | |
| 234 | /* Skin |
| 235 | --------------------------*/ |
| 236 | #swipebox-overlay { |
| 237 | background: #0d0d0d; |
| 238 | } |
| 239 | |
| 240 | #swipebox-action, #swipebox-caption { |
| 241 | text-shadow: 1px 1px 1px black; |
| 242 | background-color: #0d0d0d; |
| 243 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0d0d0d), color-stop(100%, #000000)); |
| 244 | background-image: -webkit-linear-gradient(#0d0d0d, #000000); |
| 245 | background-image: -moz-linear-gradient(#0d0d0d, #000000); |
| 246 | background-image: -o-linear-gradient(#0d0d0d, #000000); |
| 247 | background-image: linear-gradient(#0d0d0d, #000000); |
| 248 | filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95); |
| 249 | opacity: 0.95; |
| 250 | } |
| 251 | |
| 252 | #swipebox-action { |
| 253 | border-top: 1px solid rgba(255, 255, 255, 0.2); |
| 254 | } |
| 255 | |
| 256 | #swipebox-caption { |
| 257 | border-bottom: 1px solid rgba(255, 255, 255, 0.2); |
| 258 | color: white!important; |
| 259 | font-size: 15px; |
| 260 | line-height: 43px; |
| 261 | font-family: Helvetica, Arial, sans-serif; |
| 262 | } |