1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /**
- * @name imageview.css
- * @author Tobias Reich
- * @copyright 2014 by Tobias Reich
- */
- #imageview {
- position: fixed;
- display: none;
- width: 100%;
- min-height: 100%;
- background-color: rgba(10,10,10,.98);
- transition: background-color .3s;
- }
- /* Modes ------------------------------------------------*/
- #imageview.view {
- background-color: inherit;
- }
- #imageview.full {
- background-color: rgba(0,0,0,1);
- }
- /* ImageView ------------------------------------------------*/
- #imageview #image {
- position: absolute;
- top: 60px;
- right: 30px;
- bottom: 30px;
- left: 30px;
- background-repeat: no-repeat;
- background-position: 50% 50%;
- background-size: contain;
- transition: top .3s, right .3s, bottom .3s, left .3s, margin-top .3s, opacity .2s, transform .3s cubic-bezier(0.51,.92,.24,1.15);
- animation-name: zoomIn;
- animation-duration: .3s;
- animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
- }
- #imageview #image.small {
- top: 50%;
- right: auto;
- bottom: auto;
- left: 50%;
- }
- #imageview #image.full {
- top: 0px;
- right: 0px;
- bottom: 0px;
- left: 0px;
- }
- /* 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;
- transition: opacity .2s;
- }
- #imageview .arrow_wrapper:hover a {
- opacity: .2;
- }
- #imageview .arrow_wrapper a#previous {
- left: 20px;
- }
- #imageview .arrow_wrapper a#next {
- right: 20px;
- }
|