gallery/app/assets/stylesheets/theater.css

500 lines
8.0 KiB
CSS
Raw Normal View History

2015-09-23 07:01:54 +00:00
@import url(https://fonts.googleapis.com/css?family=Roboto);
2015-07-16 11:27:14 +00:00
/* Reset and basic styles */
body {
2015-09-23 07:01:54 +00:00
overflow-x: hidden;
2015-07-16 11:27:14 +00:00
}
*,
*:before,
*:after {
2015-09-23 07:01:54 +00:00
box-sizing: border-box;
2015-07-16 11:27:14 +00:00
}
.gallery-mode-on {
2015-09-23 07:01:54 +00:00
/*overflow-y: hidden;*/
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
2015-07-16 11:27:14 +00:00
/* Gallery */
#gallery-theater-stage {
2015-09-23 07:01:54 +00:00
display: none;
2015-07-16 11:27:14 +00:00
}
#gallery-theater-stage > .gallery {
2015-09-23 07:01:54 +00:00
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #000;
z-index: 2000;
2015-07-16 11:27:14 +00:00
}
.gallery-loader {
2015-09-23 07:01:54 +00:00
padding: 10px;
position: absolute;
display: none;
left: 50%;
top: 10px;
-webkit-transform: translate(-50%, 50%);
transform: translate(-50%, 50%);
border-radius: 2px;
z-index: 2000;
background-color: rgba(0, 0, 0, .6);
-webkit-transition: .3s all;
transition: .3s all;
2015-07-16 11:27:14 +00:00
}
.spinner {
2015-09-23 07:01:54 +00:00
margin: 0 auto;
width: 50px;
height: 20px;
text-align: center;
2017-12-11 08:02:37 +00:00
font-size: 0.625rem;
2015-07-16 11:27:14 +00:00
}
.spinner > div {
2015-09-23 07:01:54 +00:00
background-color: #e8e8e8;
height: 100%;
width: 4px;
display: inline-block;
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
animation: stretchdelay 1.2s infinite ease-in-out;
2015-07-16 11:27:14 +00:00
}
.spinner .rect2 {
2015-09-23 07:01:54 +00:00
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
2015-07-16 11:27:14 +00:00
}
.spinner .rect3 {
2015-09-23 07:01:54 +00:00
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
2015-07-16 11:27:14 +00:00
}
.spinner .rect4 {
2015-09-23 07:01:54 +00:00
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
2015-07-16 11:27:14 +00:00
}
.spinner .rect5 {
2015-09-23 07:01:54 +00:00
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
2015-07-16 11:27:14 +00:00
}
@-webkit-keyframes stretchdelay {
2015-09-23 07:01:54 +00:00
0%,
40%,
100% {
-webkit-transform: scaleY(0.4)
}
20% {
-webkit-transform: scaleY(1.0)
}
2015-07-16 11:27:14 +00:00
}
@keyframes stretchdelay {
2015-09-23 07:01:54 +00:00
0%,
40%,
100% {
transform: scaleY(0.4);
-webkit-transform: scaleY(0.4);
}
20% {
transform: scaleY(1.0);
-webkit-transform: scaleY(1.0);
}
2015-07-16 11:27:14 +00:00
}
.gallery-actions {
2015-09-23 07:01:54 +00:00
position: absolute;
right: 1rem;
top: 1rem;
cursor: pointer;
background: rgba(255, 255, 255, .7);
border-radius: 2px;
z-index: 2000;
2015-07-16 11:27:14 +00:00
}
.gallery-actions-btn {
2015-09-23 07:01:54 +00:00
padding: 8px 12px 8px 10px;
display: inline-block;
}
.gallery-actions-btn:hover {
color: #fff;
2015-07-16 11:27:14 +00:00
}
.touch .gallery-actions-btn {
2015-09-23 07:01:54 +00:00
padding: 12px 15px 12px 15px;
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
.gallery-toggle-desc.active {
color: #fff;
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
.gallery-theme-switch {
border-right: 1px solid rgba(255, 255, 255, .2);
border-left: 1px solid rgba(255, 255, 255, .2);
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
.gallery-close {
color: #000;
2015-07-16 11:27:14 +00:00
}
.touch .image-container {
2015-09-23 07:01:54 +00:00
height: 100%;
padding-bottom: 150px;
z-index: 800;
2015-07-16 11:27:14 +00:00
}
.gallery-image {
2015-09-23 07:01:54 +00:00
position: fixed;
left: 50%;
top: 50%;
width: 60%;
height: auto;
cursor: pointer;
2015-07-16 11:27:14 +00:00
}
.no-touch .gallery-image {
2015-09-23 07:01:54 +00:00
-webkit-transition: .3s all;
transition: .3s all;
2015-07-16 11:27:14 +00:00
}
.gal-prev {
2015-09-23 07:01:54 +00:00
display: none;
left: 0;
-webkit-transform: translate(-95%, -50%);
transform: translate(-95%, -50%);
2015-07-16 11:27:14 +00:00
}
.gal-prev:hover {
2015-09-23 07:01:54 +00:00
-webkit-transform: translate(-94%, -50%);
transform: translate(-94%, -50%);
2015-07-16 11:27:14 +00:00
}
.gal-next {
2015-09-23 07:01:54 +00:00
display: none;
left: auto;
right: 0;
-webkit-transform: translate(95%, -50%);
transform: translate(95%, -50%);
2015-07-16 11:27:14 +00:00
}
.gal-next:hover {
2015-09-23 07:01:54 +00:00
-webkit-transform: translate(94%, -50%);
transform: translate(94%, -50%);
2015-07-16 11:27:14 +00:00
}
.gal-inactive {
2015-09-23 07:01:54 +00:00
-webkit-transition: .3s all;
transition: .3s all;
opacity: .3;
2015-07-16 11:27:14 +00:00
}
.gal-inactive:hover {
2015-09-23 07:01:54 +00:00
opacity: 1;
2015-07-16 11:27:14 +00:00
}
.gal-active {
2015-09-23 07:01:54 +00:00
display: none;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
2015-07-16 11:27:14 +00:00
/* Thumbnails */
2015-09-23 07:01:54 +00:00
2015-07-16 11:27:14 +00:00
.gallery-thumb-toggle {
2015-09-23 07:01:54 +00:00
position: absolute;
bottom: -1000px;
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
2015-07-16 11:27:14 +00:00
.gallery-thumb-wrap {
2015-09-23 07:01:54 +00:00
overflow-y: hidden;
overflow-x: hidden;
list-style: none;
margin: 0 auto;
padding: 10px 0;
text-align: center;
white-space: nowrap;
position: absolute;
left: 50%;
bottom: 0;
-webkit-transition: .3s all;
transition: .3s all;
2015-07-16 11:27:14 +00:00
}
.gallery-item {
2015-09-23 07:01:54 +00:00
margin-right: 1em;
display: inline-block;
2015-07-16 11:27:14 +00:00
}
.gallery-item.active {
2015-09-23 07:01:54 +00:00
border-radius: 2px;
border-radius: 0.125rem;
border: 5px solid #fff;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb {
2015-09-23 07:01:54 +00:00
width: 50px;
height: 50px;
opacity: .5;
-webkit-transition: .3s opacity;
transition: .3s opacity;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb:hover {
2015-09-23 07:01:54 +00:00
opacity: 1;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-container {
2015-09-23 07:01:54 +00:00
height: 80px;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background: #1b1b1b;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-navs {
2015-09-23 07:01:54 +00:00
display: none;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-navs.show {
2015-09-23 07:01:54 +00:00
display: block;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-nav {
2015-09-23 07:01:54 +00:00
position: absolute;
cursor: pointer;
font-size: 1.4rem;
color: rgba(255, 255, 255, .7);
background: #222;
height: 80px;
line-height: 80px;
width: 50px;
text-align: center;
z-index: 900;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-nav:hover {
2015-09-23 07:01:54 +00:00
color: #fff;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-prev {
2015-09-23 07:01:54 +00:00
left: 0;
2015-07-16 11:27:14 +00:00
}
.gallery-thumb-next {
2015-09-23 07:01:54 +00:00
right: 0;
2015-07-16 11:27:14 +00:00
}
.active .gallery-thumb {
2015-09-23 07:01:54 +00:00
opacity: 1;
}
.gallery-img-desc {
color: #000;
line-height: 1.7;
padding: 1rem 1.5rem;
font-family: 'Roboto', sans-serif;
font-size: 0.8125rem;
position: fixed;
top: 4rem;
left: 0;
right: 0;
margin: auto;
border-radius: 2px;
width: 90%;
background-color: #bdbdbd;
opacity: 0;
-webkit-transition: .3s all;
transition: .3s all;
z-index: 1000;
}
.gallery-img-desc p {
overflow: hidden;
height: 90px;
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
.gallery-img-desc:empty {
display: none;
}
.gallery-img-desc.active {
opacity: 1;
}
2015-07-16 11:27:14 +00:00
/* White theme */
.theme-white #gallery-theater-stage > .gallery {
2015-09-23 07:01:54 +00:00
background-color: #fffdf7;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-actions {
2015-09-23 07:01:54 +00:00
background-color: #eee;
border: 1px solid #ddd;
}
.theme-white .gallery-toggle-desc.active {
color: #ff4444;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-theme-switch {
2015-09-23 07:01:54 +00:00
border-right: 1px solid #ddd;
border-left: 1px solid #ddd;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-thumb-toggle,
.theme-white .gallery-thumb-toggle:before,
.theme-white .gallery-thumb-toggle:after {
2015-09-23 07:01:54 +00:00
color: #777;
border-color: #aaa;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-thumb-container {
2015-09-23 07:01:54 +00:00
background-color: #e2e2e2;
border-top: 1px solid #c7c7c7;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-actions-btn {
2015-09-23 07:01:54 +00:00
color: #777;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-actions-btn:hover {
2015-09-23 07:01:54 +00:00
color: #ff4444;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-item.active {
2015-09-23 07:01:54 +00:00
border-color: #ff4444;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-thumb-nav {
2015-09-23 07:01:54 +00:00
color: #777;
background-color: #eee;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-thumb-prev {
2015-09-23 07:01:54 +00:00
border-right: 1px solid #c7c7c7;
2015-07-16 11:27:14 +00:00
}
2015-09-23 07:01:54 +00:00
2015-07-16 11:27:14 +00:00
.theme-white .gallery-thumb-next {
2015-09-23 07:01:54 +00:00
border-left: 1px solid #c7c7c7;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-thumb-nav:hover {
2015-09-23 07:01:54 +00:00
color: #ff4444;
}
.theme-white .gallery-img-desc {
background-color: #eee;
2015-07-16 11:27:14 +00:00
}
.theme-white .gallery-loader {
2015-09-23 07:01:54 +00:00
background-color: #777;
2015-07-16 11:27:14 +00:00
}
.theme-white .spinner > div {
2015-09-23 07:01:54 +00:00
color: #ff4444;
2015-07-16 11:27:14 +00:00
}
@media screen and (max-width: 768px) {
2015-09-23 07:01:54 +00:00
.gal-prev {
-webkit-transform: translate(-101%, -50%);
transform: translate(-101%, -50%);
}
.gal-next {
-webkit-transform: translate(101%, -50%);
transform: translate(101%, -50%);
}
.gallery-thumb-toggle {
bottom: 50px;
left: 0;
color: #fff;
width: 100%;
text-align: center;
-webkit-transition: .1s all;
transition: .1s all;
}
.gallery-thumb-toggle.up {
bottom: 96px;
}
.gallery-thumb-toggle:before {
content: "";
position: absolute;
top: 50%;
left: 10%;
margin: auto;
width: 38%;
border-top: 1px solid rgba(255, 255, 255, .2);
height: 1px;
}
.gallery-thumb-toggle:after {
content: "";
position: absolute;
top: 50%;
right: 10%;
margin: auto;
width: 38%;
border-top: 1px solid rgba(255, 255, 255, .2);
height: 1px;
}
.gallery-thumb-container {
bottom: -1000px;
-webkit-transition: .1s all;
transition: .1s all;
}
.gallery-thumb-container.show {
bottom: 0;
}
2015-07-16 11:27:14 +00:00
}
2019-01-17 01:52:34 +00:00
/* CSS for button */
@media(max-width: 769px){
.gallery .gallery-thumb-toggle{
display: none;
}
}
/* 相本裡的左右控制鍵 */
#theaterPlayButton,#theaterStopButton{
left:30%;
}
#theaterStopButton{
-webkit-text-stroke: 0.02em #ffbb35;
text-shadow: 0em 0em 0.2em #ff0000;
}
2019-01-17 01:52:34 +00:00
.theaterButton{
position: absolute;
text-align: center;
width: 35%;
bottom: 1.8em;
2019-01-17 01:52:34 +00:00
background-color: transparent;
border: none;
color: white;
padding: 0.4em 1em;
2019-01-17 01:52:34 +00:00
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 2.2rem;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
-webkit-text-stroke: 1px #06a2ff;
text-shadow: 0em 0em 0.2em #8F7;
2019-01-17 01:52:34 +00:00
}
#theaterNextButton{
right:0;
}
#theaterPreviousButton{
left:0;
}