| 1 |
#imagelightbox { cursor: pointer; position: fixed; z-index: 9999; -ms-touch-action: none; touch-action: none; -webkit-box-shadow: 0 0 3.125em rgba( 0, 0, 0, .75 ); box-shadow: 0 0 3.125em rgba( 0, 0, 0, .75 ); } |
| 2 |
#imagelightbox-overlay { background-color: #fff; background-color: rgba( 0, 0, 0, .6 ); position: fixed; z-index: 9998; top: 0; right: 0; bottom: 0; left: 0; } |
| 3 |
#imagelightbox-loading, #imagelightbox-loading div { border-radius: 50%; } |
| 4 |
#imagelightbox-loading { width: 2.5em; height: 2.5em; background-color: #444; background-color: rgba( 0, 0, 0, .5 ); position: fixed; z-index: 10003; top: 50%; left: 50%; padding: 0.625em; margin: -1.25em 0 0 -1.25em; -webkit-box-shadow: 0 0 2.5em rgba( 0, 0, 0, .75 ); box-shadow: 0 0 2.5em rgba( 0, 0, 0, .75 ); } |
| 5 |
#imagelightbox-loading div { width: 1.25em; height: 1.25em; background-color: #fff; -webkit-animation: imagelightbox-loading .5s ease infinite; animation: imagelightbox-loading .5s ease infinite; } |
| 6 |
|
| 7 |
@-webkit-keyframes imagelightbox-loading { |
| 8 |
from { opacity: .5; -webkit-transform: scale( .75 ); } |
| 9 |
50% { opacity: 1; -webkit-transform: scale( 1 ); } |
| 10 |
to { opacity: .5; -webkit-transform: scale( .75 ); } |
| 11 |
} |
| 12 |
@keyframes imagelightbox-loading |
| 13 |
{ |
| 14 |
from { opacity: .5; transform: scale( .75 ); } |
| 15 |
50% { opacity: 1; transform: scale( 1 ); } |
| 16 |
to { opacity: .5; transform: scale( .75 ); } |
| 17 |
} |
| 18 |
|
| 19 |
#imagelightbox-caption { text-align: center; color: #fff; background-color: #000; background-color: rgba(0, 0, 0, .9); position: fixed; z-index: 10001; left: 0; right: 0; bottom: 0; padding: 0.625em; } |
| 20 |
|
| 21 |
#imagelightbox-close { width: 2.5em; height: 2.5em; text-align: left; background-color: #666; border-radius: 50%; position: fixed; z-index: 10002; top: 2.5em; right: 2.5em; -webkit-transition: color .3s ease; transition: color .3s ease; } |
| 22 |
#imagelightbox-close:hover, #imagelightbox-close:focus { background-color: #111; } |
| 23 |
|
| 24 |
#imagelightbox-close:before, #imagelightbox-close:after { width: 2px; background-color: #fff; content: ''; position: absolute; top: 20%; bottom: 20%; left: 50%; margin-left: -1px; } |
| 25 |
#imagelightbox-close:before { -webkit-transform: rotate( 45deg ); -ms-transform: rotate( 45deg ); transform: rotate( 45deg ); } |
| 26 |
#imagelightbox-close:after { -webkit-transform: rotate( -45deg ); -ms-transform: rotate( -45deg ); transform: rotate( -45deg ); } |
| 27 |
|
| 28 |
.imagelightbox-arrow |
| 29 |
{ |
| 30 |
width: 3.75em; /* 60 */ |
| 31 |
height: 7.5em; /* 120 */ |
| 32 |
background-color: #444; |
| 33 |
background-color: rgba( 0, 0, 0, .5 ); |
| 34 |
vertical-align: middle; |
| 35 |
display: none; |
| 36 |
position: fixed; |
| 37 |
z-index: 10001; |
| 38 |
top: 50%; |
| 39 |
margin-top: -3.75em; /* 60 */ |
| 40 |
} |
| 41 |
.imagelightbox-arrow:hover, |
| 42 |
.imagelightbox-arrow:focus { background-color: rgba( 0, 0, 0, .75 ); } |
| 43 |
.imagelightbox-arrow:active { background-color: #111; } |
| 44 |
|
| 45 |
.imagelightbox-arrow-left { left: 2.5em; /* 40 */ } |
| 46 |
.imagelightbox-arrow-right { right: 2.5em; /* 40 */ } |
| 47 |
|
| 48 |
.imagelightbox-arrow:before |
| 49 |
{ |
| 50 |
width: 0; |
| 51 |
height: 0; |
| 52 |
border: 1em solid transparent; |
| 53 |
content: ''; |
| 54 |
display: inline-block; |
| 55 |
margin-bottom: -0.125em; /* 2 */ |
| 56 |
} |
| 57 |
.imagelightbox-arrow-left:before |
| 58 |
{ |
| 59 |
border-left: none; |
| 60 |
border-right-color: #fff; |
| 61 |
margin-left: -0.313em; /* 5 */ |
| 62 |
} |
| 63 |
.imagelightbox-arrow-right:before |
| 64 |
{ |
| 65 |
border-right: none; |
| 66 |
border-left-color: #fff; |
| 67 |
margin-right: -0.313em; /* 5 */ |
| 68 |
} |
| 69 |
|
| 70 |
|
| 71 |
#imagelightbox-loading, #imagelightbox-overlay, #imagelightbox-close, #imagelightbox-caption, #imagelightbox-nav, .imagelightbox-arrow { -webkit-animation: fade-in .25s linear; animation: fade-in .25s linear; } |
| 72 |
@-webkit-keyframes fade-in |
| 73 |
{ |
| 74 |
from { opacity: 0; } |
| 75 |
to { opacity: 1; } |
| 76 |
} |
| 77 |
@keyframes fade-in |
| 78 |
{ |
| 79 |
from { opacity: 0; } |
| 80 |
to { opacity: 1; } |
| 81 |
} |
| 82 |
|
| 83 |
@media only screen and (max-width: 41.250em) /* 660 */ |
| 84 |
{ |
| 85 |
#imagelightbox-close { top: 1.25em; right: 1.25em; } |
| 86 |
#imagelightbox-nav { bottom: 1.25em; } |
| 87 |
.imagelightbox-arrow { width: 2.5em; height: 3.75em; margin-top: -2.75em; } |
| 88 |
.imagelightbox-arrow-left { left: 1.25em; /* 20 */ } |
| 89 |
.imagelightbox-arrow-right { right: 1.25em; /* 20 */ } |
| 90 |
} |
| 91 |
|
| 92 |
@media only screen and (max-width: 20em) /* 320 */ |
| 93 |
{ |
| 94 |
.imagelightbox-arrow-left { left: 0; } |
| 95 |
.imagelightbox-arrow-right { right: 0; } |
| 96 |
} |
| 97 |
|