gallery/style/index.css

107 lines
1.5 KiB
CSS
Raw Normal View History

2020-07-17 06:29:13 -04:00
@import url(base.css);
body {
width: 40em;
}
2020-07-19 06:22:02 -04:00
.gallery-list, .link-list {
2020-07-17 06:29:13 -04:00
display: grid;
2020-07-17 09:52:13 -04:00
align-items: center;
2020-07-19 06:22:02 -04:00
--gap: 0.05em;
grid-gap: var(--gap);
background: var(--text);
2020-07-17 06:29:13 -04:00
margin: 0;
padding: 0;
font-size: 150%;
font-weight: 600;
}
2020-07-19 06:22:02 -04:00
.gallery-list {
grid-template-columns: repeat(2, 50%);
}
.link-list {
grid-template-columns: 100%;
}
.gallery-list + .link-list {
padding-top: var(--gap);
}
main a {
2020-07-17 06:29:13 -04:00
display: block;
font-weight: inherit;
color: var(--text);
padding: 0.5em;
}
2020-07-19 06:22:02 -04:00
main a:hover {
2020-07-17 06:29:13 -04:00
text-decoration: none;
}
2020-07-19 06:22:02 -04:00
main li {
2020-07-17 06:29:13 -04:00
list-style: none;
text-align: center;
2020-07-17 09:52:13 -04:00
height: 100%;
display: flex;
align-items: center;
justify-content: center;
2020-07-17 06:29:13 -04:00
}
2020-07-19 06:22:02 -04:00
.gallery-list li {
background: var(--green);
2020-07-17 06:29:13 -04:00
}
2020-07-19 06:22:02 -04:00
li.nsfw {
background: var(--red);
2020-07-17 06:29:13 -04:00
}
2020-07-19 06:22:02 -04:00
.link-list li {
background: var(--yellow);
2020-07-17 06:29:13 -04:00
}
2020-07-17 09:52:13 -04:00
.nsfw a::after {
2020-07-18 05:47:50 -04:00
content: url(18_plus.svg);
display: inline-block;
width: 1em; height: 1em;
2020-07-17 06:29:13 -04:00
padding-left: 0.15em;
2020-07-18 05:47:50 -04:00
vertical-align: -0.1em;
}
footer {
margin: 1.5em auto 0;
font-style: italic;
}
#mutstd-note {
display: flex;
align-items: center;
justify-content: center;
}
#peace-sign {
display: block;
height: 2em;
padding-left: 0.5em;
transform: rotate(20deg);
2020-07-17 09:52:13 -04:00
}
@media (hover) and (prefers-reduced-motion: no-preference) {
2020-07-19 06:22:02 -04:00
main a:hover {
2020-07-17 09:52:13 -04:00
transform: scale(110%);
transition: transform 0.25s ease-in-out;
}
}
@media (pointer: coarse) {
2020-07-19 06:22:02 -04:00
main {
2020-07-17 09:52:13 -04:00
font-size: 300%;
}
.nsfw a::after {
vertical-align: baseline;
}
2020-07-17 06:29:13 -04:00
}