react-published-images-list
Version:
A list of the most recent images registered with Open Publish.
131 lines (111 loc) • 1.97 kB
CSS
* {
box-sizing: border-box;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
background-color: #eee;
}
#example {
width: 575px;
margin: 0 auto;
}
ol {
list-style-type: none;
margin: 0;
padding: 0;
}
.opendoc-image {
position: relative;
visibility: hidden;
opacity: 0;
transition: opacity 100ms ease-in-out;
}
.opendoc-image.loaded {
opacity: 1;
visibility: visible;
}
.opendoc-image img {
width: 100%;
}
.opendoc-image:hover button.tip {
opacity: 1;
}
.opendoc-image button.tip {
transition: opacity 100ms ease-in-out;
opacity: 0.5;
position: absolute;
bottom: 0;
right: 0;
margin: 30px;
}
button.tip img {
width: 25px;
height: 23px;
margin: 2px;
}
.opendoc-image:hover .info-container {
opacity: 1;
}
.opendoc-image .info-container {
position: absolute;
transition: opacity 100ms ease-in-out;
opacity: 0;
bottom: 0;
left: 0;
padding: 15px;
width: 100%;
}
.opendoc-image .info {
padding: 15px;
background:
linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0.5)
);
width: 100%;
}
.opendoc-image:hover .created-container {
opacity: 1;
}
.opendoc-image .created-container {
color: white;
text-shadow: 0 1px 0 black;
position: absolute;
transition: opacity 100ms ease-in-out;
opacity: 0;
top: 0;
left: 0;
padding: 15px;
width: 100%;
}
.opendoc-image .created {
padding: 15px;
background:
linear-gradient(
to top,
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0.3)
);
width: 100%;
}
.opendoc-image .created a {
color: white;
text-decoration: none;
}
.opendoc-image .created .time {
margin-left: 10px;
}
.opendoc-image .info h4 {
display: inline-block;
color: white;
text-shadow: 0 1px 0 black;
margin-left: 10px;
}
.opendoc-image .info img {
image-rendering: crisp-edges;
width: 30px;
}