szurubooru/public_html/css/post-list.css

81 lines
1.4 KiB
CSS
Raw Normal View History

2014-09-17 18:34:57 +02:00
#post-list {
text-align: center;
}
#post-list .wrapper {
display: inline-block;
margin: 0 auto;
}
#post-list ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
2014-09-20 10:55:39 +02:00
#post-list .posts li a {
2014-09-17 18:34:57 +02:00
display: block;
margin: 0.4em;
2014-09-20 10:55:39 +02:00
border: 1px solid #999;
z-index: 1;
position: relative;
2014-09-17 18:34:57 +02:00
}
2014-09-20 10:55:39 +02:00
#post-list .posts li img {
2014-09-17 18:34:57 +02:00
display: block;
2014-09-20 10:55:39 +02:00
}
#post-list .posts li a:focus,
#post-list .posts li a:hover {
background: #afe;
border-color: #5da;
box-shadow: 0 0 0 2px #5da;
outline: 0;
}
#post-list .posts li a:focus img,
#post-list .posts li a:hover img {
opacity: .9;
2014-09-17 18:34:57 +02:00
}
#post-list .posts li:not(.post-type-image) a:before {
display: block;
content: '';
z-index: 2;
position: absolute;
top: 0;
right: 0;
width: 0;
height: 0;
border-top: 50px solid red;
border-left: 50px solid transparent;
}
#post-list .posts li:not(.post-type-image) a:after {
display: block;
content: '...';
z-index: 3;
position: absolute;
top: -35px; /* 50 * sqrt(2) / 2 */
right: -35px;
width: 71px; /* 50 * sqrt(2) */
height: 71px;
line-height: 122px; /* 71 * 2 - 11 (font-size) - padding */
transform: rotate(45deg);
color: white;
font-size: 15px;
}
#post-list .posts li.post-type-youtube a:after {
font-size: 13px;
content: 'youtube';
}
#post-list .posts li.post-type-video a:after {
content: 'video';
}
#post-list .posts li.post-type-flash a:after {
content: 'flash';
}