Шаблон:Pervnext/styles.css
Материал из Wormix Station
Дополнительные действия
.template-prevnext {
margin: 1rem 0;
padding: 0.25rem;
background-color: #0a1014;
border: 1px solid #27292d;
border-radius: 8px;
font-size: 0.875rem;
line-height: 1.375;
display: grid;
align-items: center;
grid-template-areas: 'prev current next';
grid-template-columns: minmax( max-content, 1fr ) minmax( max-content, 1fr ) minmax( max-content, 1fr );
}
.template-prevnext__prev,
.template-prevnext__next {
position: relative;
border-radius: 4px;
display: flex;
align-items: center;
gap: 0.75rem;
}
.template-prevnext__prev,
.template-prevnext__current,
.template-prevnext__next {
padding: 0.5rem;
}
.template-prevnext__prev {
grid-area: prev;
}
.template-prevnext__current {
grid-area: current;
text-align: center;
}
.template-prevnext__next {
grid-area: next;
justify-content: flex-end;
text-align: end;
}
.template-prevnext__link:hover {
background-color: rgba(255, 255, 255, 0.04);
}
.template-prevnext__link:hover > .template-prevnext__icon {
opacity: 0.74;
}
.template-prevnext__prev:hover > .template-prevnext__icon {
transform: translateX( -2px );
}
.template-prevnext__next:hover > .template-prevnext__icon {
transform: translateX( 2px );
}
.template-prevnext__link:active {
background-color: rgba(255, 255, 255, 0.04);
}
.template-prevnext__link:active > .template-prevnext__icon {
opacity: 1;
}
.template-prevnext__icon {
opacity: 0.6;
transition: transform 250ms ease;
}
.template-prevnext__icon img {
filter: invert(1) hue-rotate(180deg);
}
.template-prevnext__title {
color: #f5f9fb;
font-weight: 500;
}
.template-prevnext__link .template-prevnext__title {
color: var(--accent-color-base);
}
.template-prevnext__link--new .template-prevnext__title {
color: var(--accent-color-base);
}
.template-prevnext__desc {
color: #92acba;
font-size: 0.75rem;
}
.template-prevnext__linkoverlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.template-prevnext__linkoverlay > a {
display: block;
font-size: 0;
height: 100%;
}
@media screen and ( max-width: 639px ) {
.template-prevnext {
grid-template-areas:
'current current'
'prev next';
grid-template-columns: auto;
}
.template-prevnext__current {
border-bottom: 1px solid #27292d;
}
}