about/static/css/plugin-webring.css

173 lines
3.0 KiB
CSS

.webring-section .plugin-header {
box-shadow: none;
border: none;
}
.webring-nav {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
width: 100%;
gap: 8px;
padding: 0;
background: transparent;
}
.webring-prev,
.webring-home,
.webring-next {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 40px;
padding: 0 16px;
border-radius: 10px;
border: 1px solid var(--edge-0);
background: transparent;
color: var(--ink);
font-weight: 600;
font-size: 13px;
line-height: 1;
white-space: nowrap;
min-width: 0;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
text-decoration: none;
cursor: pointer;
user-select: none;
transition: border-color .15s ease, background .15s ease;
}
.webring-prev:hover,
.webring-next:hover {
border-color: var(--edge-1);
background: rgba(255, 255, 255, .02);
}
.webring-home {
background: var(--accent);
color: #fff;
border-color: transparent;
font-weight: 700;
}
.webring-home:hover {
background: color-mix(in oklch, var(--accent) 90%, white);
}
.webring-prev,
.webring-next {
flex: 1 1 0;
max-width: 40%;
}
.webring-home {
flex: 0 0 auto;
min-width: 100px;
}
.webring-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.webring-prev img,
.webring-home img,
.webring-next img,
.webring-prev svg,
.webring-home svg,
.webring-next svg {
width: 16px;
height: 16px;
flex-shrink: 0;
object-fit: contain;
}
@media (min-width: 1440px) {
.webring-nav {
gap: 10px;
}
.webring-prev,
.webring-home,
.webring-next {
height: 44px;
font-size: 14px;
padding: 0 20px;
}
}
@media (max-width: 900px) {
.webring-prev,
.webring-home,
.webring-next {
height: 38px;
font-size: 12px;
padding: 0 12px;
}
}
@media (max-width: 520px) {
.webring-nav {
gap: 6px;
}
.webring-prev,
.webring-next {
padding: 0 10px;
height: 36px;
font-size: 11px;
}
.webring-home {
padding: 0 12px;
height: 36px;
min-width: 80px;
}
}
@media (max-width: 380px) {
.webring-prev .webring-text,
.webring-next .webring-text {
display: none;
}
.webring-prev::after {
content: "←";
font-weight: 900;
}
.webring-next::after {
content: "→";
font-weight: 900;
}
}
@media (prefers-color-scheme: light) {
.webring-prev,
.webring-next {
background: transparent;
border-color: var(--edge-1);
color: var(--ink);
}
.webring-prev:hover,
.webring-next:hover {
background: rgba(0, 0, 0, .02);
border-color: var(--edge-2);
}
.webring-home {
background: var(--accent);
color: #fff;
}
.webring-home:hover {
background: color-mix(in oklch, var(--accent) 90%, black);
}
}