img
11 years ago
README.md
4 years ago
jquery.swipebox.js
10 months ago
jquery.swipebox.min.js
10 months ago
swipebox.css
4 years ago
swipebox.min.css
4 years ago
swipebox.css
304 lines
| 1 | /*! Swipebox v1.5.2 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */ |
| 2 | html.swipebox-html.swipebox-touch { |
| 3 | overflow: hidden !important; |
| 4 | } |
| 5 | |
| 6 | #swipebox-overlay img { |
| 7 | border: none !important; |
| 8 | } |
| 9 | |
| 10 | #swipebox-overlay { |
| 11 | width: 100%; |
| 12 | height: 100%; |
| 13 | position: fixed; |
| 14 | top: 0; |
| 15 | left: 0; |
| 16 | z-index: 99999 !important; |
| 17 | overflow: hidden; |
| 18 | -webkit-user-select: none; |
| 19 | -moz-user-select: none; |
| 20 | -ms-user-select: none; |
| 21 | user-select: none; |
| 22 | } |
| 23 | |
| 24 | .admin-bar #swipebox-overlay { |
| 25 | top: 32px; |
| 26 | } |
| 27 | |
| 28 | .admin-bar #swipebox-container { |
| 29 | bottom: 32px; |
| 30 | } |
| 31 | |
| 32 | #swipebox-container { |
| 33 | position: relative; |
| 34 | width: 100%; |
| 35 | height: 100%; |
| 36 | } |
| 37 | |
| 38 | #swipebox-slider { |
| 39 | -webkit-transition: -webkit-transform 0.4s ease; |
| 40 | transition: transform 0.4s ease; |
| 41 | height: 100%; |
| 42 | left: 0; |
| 43 | top: 0; |
| 44 | width: 100%; |
| 45 | white-space: nowrap; |
| 46 | position: absolute; |
| 47 | display: none; |
| 48 | cursor: pointer; |
| 49 | } |
| 50 | #swipebox-slider .slide { |
| 51 | height: 100%; |
| 52 | width: 100%; |
| 53 | line-height: 1px; |
| 54 | text-align: center; |
| 55 | display: inline-block; |
| 56 | } |
| 57 | #swipebox-slider .slide:before { |
| 58 | content: ""; |
| 59 | display: inline-block; |
| 60 | height: 50%; |
| 61 | width: 1px; |
| 62 | margin-right: -1px; |
| 63 | } |
| 64 | #swipebox-slider .slide img, |
| 65 | #swipebox-slider .slide .swipebox-video-container, |
| 66 | #swipebox-slider .slide .swipebox-inline-container { |
| 67 | display: inline-block; |
| 68 | max-height: 100%; |
| 69 | max-width: 100%; |
| 70 | margin: 0; |
| 71 | padding: 0; |
| 72 | width: auto; |
| 73 | height: auto; |
| 74 | vertical-align: middle; |
| 75 | } |
| 76 | #swipebox-slider .slide .swipebox-video-container { |
| 77 | background: none; |
| 78 | max-width: 1140px; |
| 79 | max-height: 100%; |
| 80 | width: 100%; |
| 81 | padding: 5%; |
| 82 | -webkit-box-sizing: border-box; |
| 83 | box-sizing: border-box; |
| 84 | } |
| 85 | #swipebox-slider .slide .swipebox-video-container .swipebox-video { |
| 86 | width: 100%; |
| 87 | height: 0; |
| 88 | padding-bottom: 56.25%; |
| 89 | overflow: hidden; |
| 90 | position: relative; |
| 91 | } |
| 92 | #swipebox-slider .slide .swipebox-video-container .swipebox-video iframe { |
| 93 | width: 100% !important; |
| 94 | height: 100% !important; |
| 95 | position: absolute; |
| 96 | top: 0; |
| 97 | left: 0; |
| 98 | } |
| 99 | #swipebox-slider .slide-loading { |
| 100 | background: url(img/loader.gif) no-repeat center center; |
| 101 | } |
| 102 | |
| 103 | #swipebox-bottom-bar, |
| 104 | #swipebox-top-bar { |
| 105 | -webkit-transition: 0.5s; |
| 106 | transition: 0.5s; |
| 107 | position: absolute; |
| 108 | left: 0; |
| 109 | z-index: 999; |
| 110 | height: 50px; |
| 111 | width: 100%; |
| 112 | } |
| 113 | |
| 114 | #swipebox-bottom-bar { |
| 115 | bottom: -50px; |
| 116 | } |
| 117 | #swipebox-bottom-bar.visible-bars { |
| 118 | -webkit-transform: translate3d(0, -50px, 0); |
| 119 | transform: translate3d(0, -50px, 0); |
| 120 | } |
| 121 | |
| 122 | #swipebox-top-bar { |
| 123 | top: -50px; |
| 124 | } |
| 125 | #swipebox-top-bar.visible-bars { |
| 126 | -webkit-transform: translate3d(0, 50px, 0); |
| 127 | transform: translate3d(0, 50px, 0); |
| 128 | } |
| 129 | |
| 130 | #swipebox-title { |
| 131 | display: block; |
| 132 | width: 100%; |
| 133 | text-align: center; |
| 134 | } |
| 135 | |
| 136 | #swipebox-prev, |
| 137 | #swipebox-next, |
| 138 | #swipebox-close { |
| 139 | background-image: url(img/icons.png); |
| 140 | background-repeat: no-repeat; |
| 141 | border: none !important; |
| 142 | text-decoration: none !important; |
| 143 | cursor: pointer; |
| 144 | width: 50px; |
| 145 | height: 50px; |
| 146 | top: 0; |
| 147 | } |
| 148 | |
| 149 | #swipebox-arrows { |
| 150 | display: block; |
| 151 | margin: 0 auto; |
| 152 | width: 100%; |
| 153 | height: 50px; |
| 154 | } |
| 155 | |
| 156 | #swipebox-prev { |
| 157 | background-position: -32px 13px; |
| 158 | float: left; |
| 159 | } |
| 160 | |
| 161 | #swipebox-next { |
| 162 | background-position: -78px 13px; |
| 163 | float: right; |
| 164 | } |
| 165 | |
| 166 | #swipebox-close { |
| 167 | top: 0; |
| 168 | right: 0; |
| 169 | position: absolute; |
| 170 | z-index: 9999; |
| 171 | background-position: 15px 12px; |
| 172 | } |
| 173 | |
| 174 | .swipebox-no-close-button #swipebox-close { |
| 175 | display: none; |
| 176 | } |
| 177 | |
| 178 | #swipebox-prev.disabled, |
| 179 | #swipebox-next.disabled { |
| 180 | opacity: 0.3; |
| 181 | } |
| 182 | |
| 183 | .swipebox-no-touch #swipebox-overlay.rightSpring #swipebox-slider { |
| 184 | -webkit-animation: rightSpring 0.3s; |
| 185 | animation: rightSpring 0.3s; |
| 186 | } |
| 187 | .swipebox-no-touch #swipebox-overlay.leftSpring #swipebox-slider { |
| 188 | -webkit-animation: leftSpring 0.3s; |
| 189 | animation: leftSpring 0.3s; |
| 190 | } |
| 191 | |
| 192 | .swipebox-touch #swipebox-container:before, .swipebox-touch #swipebox-container:after { |
| 193 | -webkit-backface-visibility: hidden; |
| 194 | backface-visibility: hidden; |
| 195 | -webkit-transition: all .3s ease; |
| 196 | transition: all .3s ease; |
| 197 | content: ' '; |
| 198 | position: absolute; |
| 199 | z-index: 999; |
| 200 | top: 0; |
| 201 | height: 100%; |
| 202 | width: 20px; |
| 203 | opacity: 0; |
| 204 | } |
| 205 | .swipebox-touch #swipebox-container:before { |
| 206 | left: 0; |
| 207 | -webkit-box-shadow: inset 10px 0px 10px -8px #656565; |
| 208 | box-shadow: inset 10px 0px 10px -8px #656565; |
| 209 | } |
| 210 | .swipebox-touch #swipebox-container:after { |
| 211 | right: 0; |
| 212 | -webkit-box-shadow: inset -10px 0px 10px -8px #656565; |
| 213 | box-shadow: inset -10px 0px 10px -8px #656565; |
| 214 | } |
| 215 | .swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before { |
| 216 | opacity: 1; |
| 217 | } |
| 218 | .swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after { |
| 219 | opacity: 1; |
| 220 | } |
| 221 | |
| 222 | @-webkit-keyframes rightSpring { |
| 223 | 0% { |
| 224 | left: 0; |
| 225 | } |
| 226 | |
| 227 | 50% { |
| 228 | left: -30px; |
| 229 | } |
| 230 | |
| 231 | 100% { |
| 232 | left: 0; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | @keyframes rightSpring { |
| 237 | 0% { |
| 238 | left: 0; |
| 239 | } |
| 240 | |
| 241 | 50% { |
| 242 | left: -30px; |
| 243 | } |
| 244 | |
| 245 | 100% { |
| 246 | left: 0; |
| 247 | } |
| 248 | } |
| 249 | @-webkit-keyframes leftSpring { |
| 250 | 0% { |
| 251 | left: 0; |
| 252 | } |
| 253 | |
| 254 | 50% { |
| 255 | left: 30px; |
| 256 | } |
| 257 | |
| 258 | 100% { |
| 259 | left: 0; |
| 260 | } |
| 261 | } |
| 262 | @keyframes leftSpring { |
| 263 | 0% { |
| 264 | left: 0; |
| 265 | } |
| 266 | |
| 267 | 50% { |
| 268 | left: 30px; |
| 269 | } |
| 270 | |
| 271 | 100% { |
| 272 | left: 0; |
| 273 | } |
| 274 | } |
| 275 | @media screen and (min-width: 800px) { |
| 276 | #swipebox-close { |
| 277 | right: 10px; |
| 278 | } |
| 279 | |
| 280 | #swipebox-arrows { |
| 281 | width: 92%; |
| 282 | max-width: 800px; |
| 283 | } |
| 284 | } |
| 285 | /* Skin |
| 286 | --------------------------*/ |
| 287 | #swipebox-overlay { |
| 288 | background: #0d0d0d; |
| 289 | } |
| 290 | |
| 291 | #swipebox-bottom-bar, |
| 292 | #swipebox-top-bar { |
| 293 | text-shadow: 1px 1px 1px black; |
| 294 | background: #000; |
| 295 | opacity: 0.95; |
| 296 | } |
| 297 | |
| 298 | #swipebox-top-bar { |
| 299 | color: white !important; |
| 300 | font-size: 15px; |
| 301 | line-height: 43px; |
| 302 | font-family: Helvetica, Arial, sans-serif; |
| 303 | } |
| 304 |