Created
June 20, 2017 04:59
-
-
Save shaojunda/b3bec678c6417e58c4103d54dd2c0a41 to your computer and use it in GitHub Desktop.
imageViewer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#imageViewer { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background: rgba(0, 0, 0, 0.94); | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
z-index: 5; | |
} | |
#imageViewer .close { | |
position: absolute; | |
bottom: 90px; | |
width: 40px; | |
height: 40px; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
opacity: 1; | |
} | |
.picContainer { | |
width: 100%; | |
display: flex; | |
flex-direction: column; | |
} | |
.framePicContainerOne { | |
-moz-border-image: url("/images/frame_big_1.png") 20 20 round; /* Old Firefox */ | |
-webkit-border-image: url("/images/frame_big_1.png") 20 20 round; /* Safari and Chrome */ | |
-o-border-image: url("/images/frame_big_1.png") 20 20 round; /* Opera */ | |
padding: 16px; | |
} | |
.framePicContainerTwo { | |
-moz-border-image: url("/images/frame_big_2.png") 20 20 round; /* Old Firefox */ | |
-webkit-border-image: url("/images/frame_big_2.png") 20 20 round; /* Safari and Chrome */ | |
-o-border-image: url("/images/frame_big_2.png") 20 20 round; /* Opera */ | |
padding: 16px; | |
} | |
.framePicContainerThree { | |
-moz-border-image: url("/images/frame_big_3.png") 20 20 round; /* Old Firefox */ | |
-webkit-border-image: url("/images/frame_big_3.png") 20 20 round; /* Safari and Chrome */ | |
-o-border-image: url("/images/frame_big_3.png") 20 20 round; /* Opera */ | |
padding: 16px; | |
} | |
.picsize { | |
margin-top: 9px; | |
margin-right: 10px; | |
align-self: flex-end; | |
} | |
#imageViewer p { | |
color: #09419E; | |
} | |
#imageViewer > div.title { | |
position: absolute; | |
top: 25px; | |
} | |
#imageViewer div.photographer { | |
position: absolute; | |
bottom: 25px; | |
} | |
#loaderContainer { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
background: rgba(0, 0, 0, 0.94); | |
z-index: 9; | |
} | |
#loaderContainer .loader { | |
display: block; | |
border: 5px solid #f3f3f3; /* Light grey */ | |
border-top: 5px solid #555; /* Blue */ | |
border-radius: 50%; | |
width: 50px; | |
height: 50px; | |
animation: spin 1s linear infinite; | |
} | |
@keyframes spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} | |
.frame > img { | |
width: 113px; | |
height: 70px; | |
padding: 8px; | |
} | |
.frameContainer { | |
display: flex; | |
} |
synzhang
commented
Jun 20, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment