gallery/style/index.css
2021-04-16 23:48:55 +02:00

75 lines
1.1 KiB
CSS

@import url(base.css);
body {
width: 40em;
}
.gallery-list {
display: grid;
grid-template-columns: repeat(2, 50%);
align-items: center;
margin: 0;
padding: 0;
font-size: 150%;
font-weight: 600;
}
.gallery-list a {
display: block;
font-weight: inherit;
color: var(--text);
padding: 0.5em;
}
.gallery-list a:hover {
text-decoration: none;
}
.gallery-list li {
list-style: none;
text-align: center;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: var(--green);
}
.gallery-list li:nth-child(2n) {
border-left: 2px solid hsla(0, 0%, 100%, 30%);
}
.gallery-list li:nth-child(2n+1) {
border-right: 2px solid hsla(0, 0%, 100%, 30%);
}
.gallery-list .nsfw {
background: var(--red);
}
.nsfw a::after {
content: url(18_plus.png);
padding-left: 0.15em;
vertical-align: middle;
}
@media (hover) and (prefers-reduced-motion: no-preference) {
.gallery-list a:hover {
transform: scale(110%);
transition: transform 0.25s ease-in-out;
}
}
@media (pointer: coarse) {
.gallery-list {
font-size: 300%;
}
.nsfw a::after {
vertical-align: baseline;
}
}