1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/grid/photo/photo.grid.gallery.component.css

118 lines
2.1 KiB
CSS
Raw Normal View History

img {
2017-07-16 02:23:02 +08:00
width: inherit;
height: inherit;
2016-06-17 17:25:15 +08:00
2017-07-16 02:23:02 +08:00
-webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
-moz-animation: fadein 2s; /* Firefox < 16 */
-ms-animation: fadein 2s; /* Internet Explorer */
-o-animation: fadein 2s; /* Opera < 12.1 */
animation: fadein 2s;
2018-05-16 09:30:41 +08:00
vertical-align: unset;
2016-06-17 17:25:15 +08:00
}
@keyframes fadein {
2017-07-16 02:23:02 +08:00
from {
opacity: 0;
}
to {
opacity: 1;
}
2016-06-17 17:25:15 +08:00
}
/* Firefox < 16 */
@-moz-keyframes fadein {
2017-07-16 02:23:02 +08:00
from {
opacity: 0;
}
to {
opacity: 1;
}
2016-06-17 17:25:15 +08:00
}
/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
2017-07-16 02:23:02 +08:00
from {
opacity: 0;
}
to {
opacity: 1;
}
2016-06-17 17:25:15 +08:00
}
/* Internet Explorer */
@-ms-keyframes fadein {
2017-07-16 02:23:02 +08:00
from {
opacity: 0;
}
to {
opacity: 1;
}
2016-05-16 00:52:07 +08:00
}
.info {
2018-03-31 03:30:30 +08:00
background-color: transparent;
color: white;
font-size: medium;
2018-05-08 03:42:32 +08:00
display: table-caption;
2018-03-31 03:30:30 +08:00
position: relative;
padding: 5px;
2017-07-16 02:23:02 +08:00
margin-top: 0;
2016-05-16 00:52:07 +08:00
2017-07-16 02:23:02 +08:00
transition: margin .3s ease-out, background-color .3s ease-out;
-moz-transition: margin .3s ease-out, background-color .3s ease-out;
-webkit-transition: margin .3s ease-out, background-color .3s ease-out;
-o-transition: margin .3s ease-out, background-color .3s ease-out;
2018-05-16 09:30:41 +08:00
-ms-transition: margin .3s ease-out, background-color .3s ease-out;
2016-05-16 00:52:07 +08:00
}
.photo-container {
2017-07-16 02:23:02 +08:00
width: inherit;
height: inherit;
overflow: hidden;
2016-05-16 00:52:07 +08:00
}
.photo-name {
2017-07-16 02:23:02 +08:00
display: inline-block;
2016-05-16 00:52:07 +08:00
}
.photo-position {
2017-07-16 02:23:02 +08:00
display: inline-block;
float: right;
2016-05-16 00:52:07 +08:00
}
a {
2017-07-16 02:23:02 +08:00
color: white;
2016-05-16 00:52:07 +08:00
}
.photo-keywords {
2017-07-16 02:23:02 +08:00
margin-top: 5px;
font-size: small;
text-align: right;
display: inline-block;
width: 100%;
2016-05-16 00:52:07 +08:00
}
2018-11-23 02:12:10 +08:00
2019-01-14 03:18:18 +08:00
.video-indicator {
2018-11-23 02:12:10 +08:00
font-size: large;
2018-11-23 04:00:25 +08:00
padding: 5px;
2018-11-23 02:12:10 +08:00
position: absolute;
transform: translate(-100%);
white-space: nowrap;
2018-11-23 04:00:25 +08:00
border-bottom-left-radius: 15px !important;
background-color: rgba(0, 0, 0, 0.5);
color: white;
transition: background-color .3s ease-out;
2019-01-14 03:18:18 +08:00
-moz-transition: background-color .3s ease-out;
2018-11-23 04:00:25 +08:00
-webkit-transition: background-color .3s ease-out;
2019-01-14 03:18:18 +08:00
-o-transition: background-color .3s ease-out;
-ms-transition: background-color .3s ease-out;
2018-11-23 04:00:25 +08:00
}
2019-01-14 03:18:18 +08:00
.photo-container:hover .video-indicator {
2018-11-23 04:00:25 +08:00
background-color: rgba(0, 0, 0, 0.8);
2018-11-23 02:12:10 +08:00
}
2019-01-14 03:18:18 +08:00
.photo-keywords .oi-person{
margin-right: 2px;
}