| 1 |
/*! |
| 2 |
* baguetteBox.js |
| 3 |
* @author feimosi |
| 4 |
* @version 1.11.1 |
| 5 |
* @url https://github.com/feimosi/baguetteBox.js |
| 6 |
*/ |
| 7 |
#baguetteBox-overlay { |
| 8 |
display: none; |
| 9 |
opacity: 0; |
| 10 |
position: fixed; |
| 11 |
overflow: hidden; |
| 12 |
top: 0; |
| 13 |
left: 0; |
| 14 |
width: 100%; |
| 15 |
height: 100%; |
| 16 |
z-index: 1000000; |
| 17 |
background-color: #222; |
| 18 |
background-color: rgba(0, 0, 0, 0.8); |
| 19 |
-webkit-transition: opacity .5s ease; |
| 20 |
transition: opacity .5s ease; } |
| 21 |
#baguetteBox-overlay.visible { |
| 22 |
opacity: 1; } |
| 23 |
#baguetteBox-overlay .full-image { |
| 24 |
display: inline-block; |
| 25 |
position: relative; |
| 26 |
width: 100%; |
| 27 |
height: 100%; |
| 28 |
text-align: center; } |
| 29 |
#baguetteBox-overlay .full-image figure { |
| 30 |
display: inline; |
| 31 |
margin: 0; |
| 32 |
height: 100%; } |
| 33 |
#baguetteBox-overlay .full-image img, #baguetteBox-overlay .full-image video { |
| 34 |
display: inline-block; |
| 35 |
width: auto; |
| 36 |
height: auto; |
| 37 |
max-height: 100%; |
| 38 |
max-width: 100%; |
| 39 |
vertical-align: middle; |
| 40 |
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); |
| 41 |
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); |
| 42 |
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); } |
| 43 |
#baguetteBox-overlay .full-image figcaption { |
| 44 |
display: block; |
| 45 |
position: absolute; |
| 46 |
bottom: 0; |
| 47 |
width: 100%; |
| 48 |
text-align: center; |
| 49 |
line-height: 1.8; |
| 50 |
white-space: normal; |
| 51 |
color: #ccc; |
| 52 |
background-color: #000; |
| 53 |
background-color: rgba(0, 0, 0, 0.6); |
| 54 |
font-family: sans-serif; } |
| 55 |
#baguetteBox-overlay .full-image:before { |
| 56 |
content: ""; |
| 57 |
display: inline-block; |
| 58 |
height: 50%; |
| 59 |
width: 1px; |
| 60 |
margin-right: -1px; } |
| 61 |
|
| 62 |
#baguetteBox-slider { |
| 63 |
position: absolute; |
| 64 |
left: 0; |
| 65 |
top: 0; |
| 66 |
height: 100%; |
| 67 |
width: 100%; |
| 68 |
white-space: nowrap; |
| 69 |
-webkit-transition: left .4s ease, -webkit-transform .4s ease; |
| 70 |
transition: left .4s ease, -webkit-transform .4s ease; |
| 71 |
transition: left .4s ease, transform .4s ease; |
| 72 |
transition: left .4s ease, transform .4s ease, -webkit-transform .4s ease, -moz-transform .4s ease; } |
| 73 |
#baguetteBox-slider.bounce-from-right { |
| 74 |
-webkit-animation: bounceFromRight .4s ease-out; |
| 75 |
animation: bounceFromRight .4s ease-out; } |
| 76 |
#baguetteBox-slider.bounce-from-left { |
| 77 |
-webkit-animation: bounceFromLeft .4s ease-out; |
| 78 |
animation: bounceFromLeft .4s ease-out; } |
| 79 |
|
| 80 |
@-webkit-keyframes bounceFromRight { |
| 81 |
0% { |
| 82 |
margin-left: 0; } |
| 83 |
50% { |
| 84 |
margin-left: -30px; } |
| 85 |
100% { |
| 86 |
margin-left: 0; } } |
| 87 |
|
| 88 |
@keyframes bounceFromRight { |
| 89 |
0% { |
| 90 |
margin-left: 0; } |
| 91 |
50% { |
| 92 |
margin-left: -30px; } |
| 93 |
100% { |
| 94 |
margin-left: 0; } } |
| 95 |
|
| 96 |
@-webkit-keyframes bounceFromLeft { |
| 97 |
0% { |
| 98 |
margin-left: 0; } |
| 99 |
50% { |
| 100 |
margin-left: 30px; } |
| 101 |
100% { |
| 102 |
margin-left: 0; } } |
| 103 |
|
| 104 |
@keyframes bounceFromLeft { |
| 105 |
0% { |
| 106 |
margin-left: 0; } |
| 107 |
50% { |
| 108 |
margin-left: 30px; } |
| 109 |
100% { |
| 110 |
margin-left: 0; } } |
| 111 |
|
| 112 |
.baguetteBox-button#next-button, .baguetteBox-button#previous-button { |
| 113 |
top: 50%; |
| 114 |
top: calc(50% - 30px); |
| 115 |
width: 44px; |
| 116 |
height: 60px; } |
| 117 |
|
| 118 |
.baguetteBox-button { |
| 119 |
position: absolute; |
| 120 |
cursor: pointer; |
| 121 |
outline: none; |
| 122 |
padding: 0; |
| 123 |
margin: 0; |
| 124 |
border: 0; |
| 125 |
-moz-border-radius: 15%; |
| 126 |
border-radius: 15%; |
| 127 |
background-color: #323232; |
| 128 |
background-color: rgba(50, 50, 50, 0.5); |
| 129 |
color: #ddd; |
| 130 |
font: 1.6em sans-serif; |
| 131 |
-webkit-transition: background-color .4s ease; |
| 132 |
transition: background-color .4s ease; } |
| 133 |
.baguetteBox-button:focus, .baguetteBox-button:hover { |
| 134 |
background-color: rgba(50, 50, 50, 0.9); } |
| 135 |
.baguetteBox-button#next-button { |
| 136 |
right: 2%; } |
| 137 |
.baguetteBox-button#previous-button { |
| 138 |
left: 2%; } |
| 139 |
.baguetteBox-button#close-button { |
| 140 |
top: 20px; |
| 141 |
right: 2%; |
| 142 |
right: calc(2% + 6px); |
| 143 |
width: 30px; |
| 144 |
height: 30px; } |
| 145 |
.baguetteBox-button svg { |
| 146 |
position: absolute; |
| 147 |
left: 0; |
| 148 |
top: 0; } |
| 149 |
|
| 150 |
/* |
| 151 |
Preloader |
| 152 |
Borrowed from http://tobiasahlin.com/spinkit/ |
| 153 |
*/ |
| 154 |
.baguetteBox-spinner { |
| 155 |
width: 40px; |
| 156 |
height: 40px; |
| 157 |
display: inline-block; |
| 158 |
position: absolute; |
| 159 |
top: 50%; |
| 160 |
left: 50%; |
| 161 |
margin-top: -20px; |
| 162 |
margin-left: -20px; } |
| 163 |
|
| 164 |
.baguetteBox-double-bounce1, |
| 165 |
.baguetteBox-double-bounce2 { |
| 166 |
width: 100%; |
| 167 |
height: 100%; |
| 168 |
-moz-border-radius: 50%; |
| 169 |
border-radius: 50%; |
| 170 |
background-color: #fff; |
| 171 |
opacity: .6; |
| 172 |
position: absolute; |
| 173 |
top: 0; |
| 174 |
left: 0; |
| 175 |
-webkit-animation: bounce 2s infinite ease-in-out; |
| 176 |
animation: bounce 2s infinite ease-in-out; } |
| 177 |
|
| 178 |
.baguetteBox-double-bounce2 { |
| 179 |
-webkit-animation-delay: -1s; |
| 180 |
animation-delay: -1s; } |
| 181 |
|
| 182 |
@-webkit-keyframes bounce { |
| 183 |
0%, 100% { |
| 184 |
-webkit-transform: scale(0); |
| 185 |
transform: scale(0); } |
| 186 |
50% { |
| 187 |
-webkit-transform: scale(1); |
| 188 |
transform: scale(1); } } |
| 189 |
|
| 190 |
@keyframes bounce { |
| 191 |
0%, 100% { |
| 192 |
-webkit-transform: scale(0); |
| 193 |
-moz-transform: scale(0); |
| 194 |
transform: scale(0); } |
| 195 |
50% { |
| 196 |
-webkit-transform: scale(1); |
| 197 |
-moz-transform: scale(1); |
| 198 |
transform: scale(1); } } |