2014-01-22 10:12:51 +00:00
|
|
|
/**
|
|
|
|
* @name imageview.css
|
|
|
|
* @author Tobias Reich
|
|
|
|
* @copyright 2014 by Tobias Reich
|
|
|
|
*/
|
|
|
|
|
|
|
|
#imageview {
|
|
|
|
position: fixed;
|
|
|
|
display: none;
|
|
|
|
width: 100%;
|
|
|
|
min-height: 100%;
|
2014-03-26 19:49:00 +00:00
|
|
|
background-color: rgba(10,10,10,.98);
|
2014-01-22 10:12:51 +00:00
|
|
|
|
|
|
|
-webkit-transition: background-color .3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Modes ------------------------------------------------*/
|
|
|
|
#imageview.view {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
#imageview.full {
|
2014-03-26 19:49:00 +00:00
|
|
|
background-color: rgba(0,0,0,1);
|
2014-01-22 10:12:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ImageView ------------------------------------------------*/
|
|
|
|
#imageview #image {
|
|
|
|
position: absolute;
|
|
|
|
top: 60px;
|
|
|
|
right: 30px;
|
|
|
|
bottom: 30px;
|
|
|
|
left: 30px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-size: contain;
|
|
|
|
|
2014-03-25 14:22:04 +00:00
|
|
|
-webkit-transition: top .3s, right .3s, bottom .3s, left .3s, margin-top .3s;
|
|
|
|
-moz-transition: top .3s, right .3s, bottom .3s, left .3s, margin-top .3s;
|
|
|
|
transition: top .3s, right .3s, bottom .3s, left .3s, margin-top .3s;
|
2014-01-22 10:12:51 +00:00
|
|
|
|
|
|
|
-webkit-animation-name: zoomIn;
|
|
|
|
-webkit-animation-duration: .3s;
|
2014-03-16 18:23:23 +00:00
|
|
|
-webkit-animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
|
2014-01-22 10:12:51 +00:00
|
|
|
-moz-animation-name: zoomIn;
|
|
|
|
-moz-animation-duration: .3s;
|
2014-03-16 18:23:23 +00:00
|
|
|
-moz-animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
|
2014-01-22 10:12:51 +00:00
|
|
|
animation-name: zoomIn;
|
|
|
|
animation-duration: .3s;
|
2014-03-16 18:23:23 +00:00
|
|
|
animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
|
2014-01-22 10:12:51 +00:00
|
|
|
}
|
2014-03-26 19:49:00 +00:00
|
|
|
#imageview #image.small {
|
|
|
|
top: 50%;
|
|
|
|
right: auto;
|
|
|
|
bottom: auto;
|
|
|
|
left: 50%;
|
|
|
|
}
|
|
|
|
#imageview #image.full {
|
|
|
|
top: 0px;
|
|
|
|
right: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
left: 0px;
|
|
|
|
}
|
2014-01-22 10:12:51 +00:00
|
|
|
|
|
|
|
/* Previous/Next Buttons ------------------------------------------------*/
|
|
|
|
#imageview .arrow_wrapper {
|
|
|
|
position: fixed;
|
|
|
|
width: 20%;
|
|
|
|
height: calc(100% - 60px);
|
|
|
|
top: 60px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
#imageview .arrow_wrapper.previous {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
#imageview .arrow_wrapper.next {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
#imageview .arrow_wrapper a {
|
|
|
|
position: fixed;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -10px;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 50px;
|
|
|
|
text-shadow: 0px 1px 2px #000;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 2;
|
|
|
|
-webkit-transition: opacity .2s;
|
|
|
|
-moz-transition: opacity .2s;
|
|
|
|
transition: opacity .2s;
|
|
|
|
}
|
|
|
|
#imageview .arrow_wrapper:hover a {
|
|
|
|
opacity: .2;
|
|
|
|
}
|
|
|
|
#imageview .arrow_wrapper a#previous {
|
|
|
|
left: 20px;
|
|
|
|
}
|
|
|
|
#imageview .arrow_wrapper a#next {
|
|
|
|
right: 20px;
|
|
|
|
}
|