szurubooru/public_html/css/post-list.css

175 lines
2.8 KiB
CSS
Raw Normal View History

2014-10-07 21:15:26 +02:00
.post-list {
2014-09-17 18:34:57 +02:00
text-align: center;
}
2014-10-10 14:02:28 +02:00
.post-list form button {
2014-10-11 22:44:07 +02:00
margin-left: 0.25em;
2014-10-10 14:02:28 +02:00
}
2014-10-07 21:15:26 +02:00
.post-list .search {
2014-10-01 22:22:43 +02:00
margin-bottom: 1em;
2014-10-10 14:02:28 +02:00
text-align: left;
2014-10-01 22:22:43 +02:00
}
2014-10-07 21:15:26 +02:00
.post-list .search input {
2014-10-01 22:22:43 +02:00
max-width: 20em;
}
2014-10-10 14:02:28 +02:00
.post-list .search .mass-tag-wrapper {
float: right;
}
.post-list .search .mass-tag-wrapper p {
display: inline;
margin-right: 1em;
}
2014-10-01 22:22:43 +02:00
2014-10-13 13:07:14 +02:00
.post-list ul {
2014-10-10 14:02:28 +02:00
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
2014-09-17 18:34:57 +02:00
list-style-type: none;
padding: 0;
margin: 0;
2014-10-10 14:02:28 +02:00
}
.post-list ul.posts .post-small {
margin: 0;
padding: 0;
2014-09-17 18:34:57 +02:00
}
2014-10-09 23:46:32 +02:00
.post-small {
position: relative;
}
2014-10-04 14:06:44 +02:00
.post-small a {
2014-10-10 14:02:28 +02:00
display: block;
margin: 0.2em;
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-10-04 14:06:44 +02:00
.post-small img {
2014-09-17 18:34:57 +02:00
display: block;
2014-10-05 11:05:34 +02:00
border: 0;
background: white;
2014-09-20 10:55:39 +02:00
}
2014-10-04 14:06:44 +02:00
.post-small a:focus,
.post-small a:hover {
2014-10-11 22:44:07 +02:00
background: #64C2ED;
border-color: #64C2ED;
box-shadow: 0 0 0 2px #64C2ED;
2014-09-20 10:55:39 +02:00
outline: 0;
}
2014-10-04 14:06:44 +02:00
.post-small a:focus img,
.post-small a:hover img {
2014-10-11 22:44:07 +02:00
opacity: .8 !important;
2014-09-17 18:34:57 +02:00
}
2014-10-04 14:06:44 +02:00
.post-small a .info {
2014-09-28 11:33:25 +02:00
display: none;
2014-10-04 14:06:44 +02:00
text-align: center;
2014-09-28 11:33:25 +02:00
position: absolute;
bottom: 0;
left: 0;
right: 0;
2014-10-11 22:44:07 +02:00
background: #64C2ED;
2014-09-28 11:33:25 +02:00
color: black;
}
2014-10-04 14:06:44 +02:00
.post-small a .info ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.post-small a .info li {
2014-09-28 11:33:25 +02:00
display: inline-block;
margin: 0.1em 0.5em;
2014-10-04 14:06:44 +02:00
padding: 0;
2014-09-28 11:33:25 +02:00
}
2014-10-04 14:06:44 +02:00
.post-small a:focus .info,
.post-small a:hover .info {
2014-09-28 11:33:25 +02:00
display: block;
}
2014-10-11 22:44:07 +02:00
.post-small: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;
}
2014-10-11 22:44:07 +02:00
.post-small: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;
}
2014-10-11 22:44:07 +02:00
.post-small.post-type-youtube a::after {
font-size: 13px;
content: 'youtube';
}
2014-10-11 22:44:07 +02:00
.post-small.post-type-video a::after {
content: 'video';
}
2014-10-11 22:44:07 +02:00
.post-small.post-type-flash a::after {
content: 'flash';
}
2014-10-09 23:46:32 +02:00
.post-small .action {
display: none;
position: absolute;
z-index: 3;
left: 0;
right: 0;
top: 50%;
bottom: 0;
2014-10-11 22:44:07 +02:00
pointer-events: none;
2014-10-09 23:46:32 +02:00
}
.post-small .action button {
padding: 0.5em 1em;
height: 1em;
line-height: 1em;
display: block;
margin: -1em auto 0 auto;
box-sizing: content-box;
opacity: .7;
2014-10-11 22:44:07 +02:00
box-shadow: none;
pointer-events: auto;
}
.post-small .action button:focus {
box-shadow: 0 0 0 2px #64C2ED inset !important;
2014-10-09 23:46:32 +02:00
}
.tagged .action button,
.untagged .action button {
border: 1px solid black;
font-weight: bold;
2014-10-11 22:44:07 +02:00
text-shadow: none;
2014-10-09 23:46:32 +02:00
}
2014-10-11 22:44:07 +02:00
.untagged .action button::before {
2014-10-09 23:46:32 +02:00
background: red;
2014-10-11 22:44:07 +02:00
}
.untagged .action button {
2014-10-09 23:46:32 +02:00
color: white;
}
2014-10-11 22:44:07 +02:00
.tagged .action button::before {
2014-10-09 23:46:32 +02:00
background: lime;
}
2014-10-11 22:44:07 +02:00
.tagged .action button {
color: black;
2014-10-09 23:46:32 +02:00
}