2017-03-18 07:11:53 +08:00
|
|
|
a {
|
2017-07-16 02:23:02 +08:00
|
|
|
position: relative;
|
2017-03-18 07:11:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.photo-container {
|
2017-07-16 02:23:02 +08:00
|
|
|
border: 2px solid #333;
|
2017-07-16 00:25:29 +08:00
|
|
|
width: 180px;
|
|
|
|
height: 180px;
|
2017-07-16 02:23:02 +08:00
|
|
|
background-color: #bbbbbb;
|
2017-03-18 07:11:53 +08:00
|
|
|
}
|
2017-07-16 02:23:02 +08:00
|
|
|
|
2017-03-18 07:11:53 +08:00
|
|
|
.no-image {
|
|
|
|
|
2017-07-16 02:23:02 +08:00
|
|
|
color: #7f7f7f;
|
2017-07-21 05:00:49 +08:00
|
|
|
font-size: 80px;
|
|
|
|
top: calc(50% - 40px);
|
|
|
|
left: calc(50% - 40px);
|
2017-03-18 07:11:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.photo {
|
2017-07-16 02:23:02 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
2017-03-18 07:11:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
2017-07-16 02:23:02 +08:00
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
text-align: left;
|
2017-03-18 07:11:53 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
2017-07-16 02:23:02 +08:00
|
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
|
|
color: white;
|
|
|
|
font-size: medium;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
padding: 5px;
|
|
|
|
width: 100%;
|
2017-03-18 07:11:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a:hover .info {
|
2017-07-16 02:23:02 +08:00
|
|
|
background-color: rgba(0, 0, 0, 0.8);
|
2017-03-18 07:11:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a:hover .photo-container {
|
2017-07-16 02:23:02 +08:00
|
|
|
border-color: #000;
|
2017-07-16 00:25:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.directory-name {
|
|
|
|
width: 180px;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2018-11-02 17:40:09 +08:00
|
|
|
|
|
|
|
/* transforming photo, based on exif orientation*/
|
|
|
|
.photo-orientation-1 {
|
|
|
|
}
|
|
|
|
.photo-orientation-2 {
|
|
|
|
transform: rotateY(180deg);
|
|
|
|
}
|
|
|
|
.photo-orientation-3 {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
.photo-orientation-4 {
|
|
|
|
transform: rotate(180deg) rotateY(180deg);
|
|
|
|
}
|
|
|
|
.photo-orientation-5 {
|
|
|
|
transform: rotate(270deg) rotateY(180deg);
|
|
|
|
}
|
|
|
|
.photo-orientation-6 {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
.photo-orientation-7 {
|
|
|
|
transform: rotate(90deg) rotateY(180deg);
|
|
|
|
}
|
|
|
|
.photo-orientation-8 {
|
|
|
|
transform: rotate(270deg);
|
|
|
|
}
|