album-stack.css
290 lines
| 1 | .tp-grid { |
| 2 | list-style-type: none; |
| 3 | position: relative; |
| 4 | display: block; |
| 5 | } |
| 6 | |
| 7 | .tp-grid li { |
| 8 | position: absolute; |
| 9 | cursor: pointer; |
| 10 | border: 10px solid #fff; |
| 11 | box-shadow: 0 2px 3px rgba(0,0,0,0.2); |
| 12 | display: none; |
| 13 | overflow: hidden; |
| 14 | -webkit-backface-visibility: hidden; |
| 15 | -moz-backface-visibility: hidden; |
| 16 | -o-backface-visibility: hidden; |
| 17 | -ms-backface-visibility: hidden; |
| 18 | backface-visibility: hidden; |
| 19 | } |
| 20 | |
| 21 | .no-js .tp-grid li { |
| 22 | position: relative; |
| 23 | display: inline-block; |
| 24 | } |
| 25 | |
| 26 | .tp-grid li a { |
| 27 | display: block; |
| 28 | outline: none; |
| 29 | } |
| 30 | |
| 31 | .tp-grid li img { |
| 32 | display: block; |
| 33 | border: none; |
| 34 | } |
| 35 | |
| 36 | .tp-info, |
| 37 | .tp-title { |
| 38 | position: absolute; |
| 39 | background: #fff; |
| 40 | line-height: 20px; |
| 41 | color: #333; |
| 42 | top: 40%; |
| 43 | width: 75%; |
| 44 | padding: 10px; |
| 45 | font-weight: 700; |
| 46 | text-align: right; |
| 47 | left: -100%; |
| 48 | box-shadow: |
| 49 | 1px 1px 1px rgba(0,0,0,0.1), |
| 50 | 5px 0 5px -3px rgba(0,0,0,0.4), |
| 51 | inset 0 0 5px rgba(0,0,0,0.04); |
| 52 | } |
| 53 | |
| 54 | .tp-title-cover { |
| 55 | position: absolute; |
| 56 | top: 0; |
| 57 | bottom: 0; |
| 58 | left: 0; |
| 59 | right: 0; |
| 60 | } |
| 61 | |
| 62 | .tp-open .tp-title-cover { |
| 63 | display: none; |
| 64 | } |
| 65 | |
| 66 | .touch .tp-info { |
| 67 | left: 0px; |
| 68 | } |
| 69 | |
| 70 | .no-touch .tp-info { |
| 71 | -webkit-transition: all 0.3s ease-in-out; |
| 72 | -moz-transition: all 0.3s ease-in-out; |
| 73 | -o-transition: all 0.3s ease-in-out; |
| 74 | -ms-transition: all 0.3s ease-in-out; |
| 75 | transition: all 0.3s ease-in-out; |
| 76 | } |
| 77 | |
| 78 | .no-touch .tp-grid li:hover .tp-info { |
| 79 | -webkit-transition-delay: 150ms; |
| 80 | -moz-transition-delay: 150ms; |
| 81 | -o-transition-delay: 150ms; |
| 82 | -ms-transition-delay: 150ms; |
| 83 | transition-delay: 150ms; |
| 84 | } |
| 85 | |
| 86 | .no-touch .tp-open li:hover .tp-info { |
| 87 | left: 0px; |
| 88 | } |
| 89 | |
| 90 | .tp-title { |
| 91 | padding: 10px 35px 10px 10px; |
| 92 | left: 0px; |
| 93 | } |
| 94 | |
| 95 | .tp-title span:nth-child(2){ |
| 96 | color: #aaa; |
| 97 | padding: 0 5px; |
| 98 | background: #F7F7F7; |
| 99 | right: 0px; |
| 100 | height: 100%; |
| 101 | line-height: 40px; |
| 102 | top: 0px; |
| 103 | position: absolute; |
| 104 | display: block; |
| 105 | } |
| 106 | |
| 107 | .foogallery-stack-album * { |
| 108 | box-sizing: border-box; |
| 109 | } |
| 110 | |
| 111 | .foogallery-stack-album .topbar { |
| 112 | position: relative; |
| 113 | padding: 10px 0; |
| 114 | margin: 0 0 20px; |
| 115 | box-shadow: 0 1px 0 #aaa, 0 -1px 0 #aaa; |
| 116 | } |
| 117 | |
| 118 | .foogallery-stack-album .back { |
| 119 | width: 40px; |
| 120 | height: 40px; |
| 121 | position: absolute; |
| 122 | left: 50%; |
| 123 | top: 50%; |
| 124 | margin: -20px 0 0 -20px; |
| 125 | border-radius: 50%; |
| 126 | text-align: center; |
| 127 | line-height: 38px; |
| 128 | color: #999; |
| 129 | background: #ddd; |
| 130 | background: rgba(200,200,200,0.5); |
| 131 | cursor: pointer; |
| 132 | display: none; |
| 133 | -webkit-touch-callout: none; |
| 134 | -webkit-user-select: none; |
| 135 | -khtml-user-select: none; |
| 136 | -moz-user-select: none; |
| 137 | -ms-user-select: none; |
| 138 | user-select: none; |
| 139 | } |
| 140 | |
| 141 | .no-touch .foogallery-stack-album .back:hover { |
| 142 | background: #666; |
| 143 | background: rgba(100,100,100,0.5); |
| 144 | color: #fff; |
| 145 | } |
| 146 | |
| 147 | .foogallery-stack-album .topbar h2, |
| 148 | .foogallery-stack-album .topbar h3 { |
| 149 | display: inline-block; |
| 150 | width: 49%; |
| 151 | margin: 0; |
| 152 | } |
| 153 | |
| 154 | .foogallery-stack-album .topbar h2 { |
| 155 | padding-right: 20px; |
| 156 | } |
| 157 | |
| 158 | .foogallery-stack-album .topbar h3 { |
| 159 | text-align: right; |
| 160 | padding-left: 20px; |
| 161 | } |
| 162 | |
| 163 | /* Loader */ |
| 164 | |
| 165 | .foogallery-stack-album .loader { |
| 166 | left: 50%; |
| 167 | position: absolute; |
| 168 | margin-left: -120px; |
| 169 | } |
| 170 | |
| 171 | .foogallery-stack-album .loader i { |
| 172 | display: inline-block; |
| 173 | width: 40px; |
| 174 | height: 40px; |
| 175 | -webkit-animation: loading 1s linear infinite forwards; |
| 176 | -moz-animation: loading 1s linear infinite forwards; |
| 177 | -o-animation: loading 1s linear infinite forwards; |
| 178 | -ms-animation: loading 1s linear infinite forwards; |
| 179 | animation: loading 1s linear infinite forwards; |
| 180 | } |
| 181 | |
| 182 | .foogallery-stack-album .loader i:nth-child(2){ |
| 183 | -webkit-animation-delay: 0.1s; |
| 184 | -moz-animation-delay: 0.1s; |
| 185 | -o-animation-delay: 0.1s; |
| 186 | -ms-animation-delay: 0.1s; |
| 187 | animation-delay: 0.1s; |
| 188 | } |
| 189 | |
| 190 | .foogallery-stack-album .loader i:nth-child(3){ |
| 191 | -webkit-animation-delay: 0.2s; |
| 192 | -moz-animation-delay: 0.2s; |
| 193 | -o-animation-delay: 0.2s; |
| 194 | -ms-animation-delay: 0.2s; |
| 195 | animation-delay: 0.2s; |
| 196 | } |
| 197 | |
| 198 | .foogallery-stack-album .loader i:nth-child(4){ |
| 199 | -webkit-animation-delay: 0.3s; |
| 200 | -moz-animation-delay: 0.3s; |
| 201 | -o-animation-delay: 0.3s; |
| 202 | -ms-animation-delay: 0.3s; |
| 203 | animation-delay: 0.3s; |
| 204 | } |
| 205 | |
| 206 | .foogallery-stack-album .loader i:nth-child(5){ |
| 207 | -webkit-animation-delay: 0.4s; |
| 208 | -moz-animation-delay: 0.4s; |
| 209 | -o-animation-delay: 0.4s; |
| 210 | -ms-animation-delay: 0.4s; |
| 211 | animation-delay: 0.4s; |
| 212 | } |
| 213 | |
| 214 | .foogallery-stack-album .loader i:nth-child(6){ |
| 215 | -webkit-animation-delay: 0.5s; |
| 216 | -moz-animation-delay: 0.5s; |
| 217 | -o-animation-delay: 0.5s; |
| 218 | -ms-animation-delay: 0.5s; |
| 219 | animation-delay: 0.5s; |
| 220 | } |
| 221 | |
| 222 | @-webkit-keyframes loading{ |
| 223 | 0%{ |
| 224 | opacity: 0; |
| 225 | background-color: rgba(255,255,255,0.9); |
| 226 | } |
| 227 | |
| 228 | 100%{ |
| 229 | opacity: 1; |
| 230 | -webkit-transform: scale(0.25) rotate(75deg); |
| 231 | background-color: rgba(155,155,155,0.9); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | @-moz-keyframes loading{ |
| 236 | 0%{ |
| 237 | opacity: 0; |
| 238 | background-color: rgba(255,255,255,0.9); |
| 239 | } |
| 240 | |
| 241 | 100%{ |
| 242 | opacity: 1; |
| 243 | -moz-transform: scale(0.25) rotate(75deg); |
| 244 | background-color: rgba(155,155,155,0.9); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | @-o-keyframes loading{ |
| 249 | 0%{ |
| 250 | opacity: 0; |
| 251 | background-color: rgba(255,255,255,0.9); |
| 252 | } |
| 253 | |
| 254 | 100%{ |
| 255 | opacity: 1; |
| 256 | -o-transform: scale(0.25) rotate(75deg); |
| 257 | background-color: rgba(155,155,155,0.9); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | @-ms-keyframes loading{ |
| 262 | 0%{ |
| 263 | opacity: 0; |
| 264 | background-color: rgba(255,255,255,0.9); |
| 265 | } |
| 266 | |
| 267 | 100%{ |
| 268 | opacity: 1; |
| 269 | -ms-transform: scale(0.25) rotate(75deg); |
| 270 | background-color: rgba(155,155,155,0.9); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | @keyframes loading{ |
| 275 | 0%{ |
| 276 | opacity: 0; |
| 277 | background-color: rgba(255,255,255,0.9); |
| 278 | } |
| 279 | |
| 280 | 100%{ |
| 281 | opacity: 1; |
| 282 | transform: scale(0.25) rotate(75deg); |
| 283 | background-color: rgba(155,155,155,0.9); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | @media screen and (max-width: 680px){ |
| 288 | .foogallery-stack-album .topbar h2, .foogallery-stack-album .topbar h3 { text-align: left; padding: 0; display: block;} |
| 289 | .foogallery-stack-album .back { left: auto; right: 0px; margin-left: 0px;} |
| 290 | } |