Шаблон:PageButton/styles.css: различия между версиями
Aylong (обсуждение | вклад) мНет описания правки |
Aylong (обсуждение | вклад) мНет описания правки |
||
Строка 24: | Строка 24: | ||
.pagebutton:active .pagebutton-image img { | .pagebutton:active .pagebutton-image img { | ||
filter: drop-shadow(0 0 6px var(--pagebutton-primary)); | filter: drop-shadow(0 0 6px var(--pagebutton-primary)); | ||
} | } | ||
Версия от 23:42, 28 мая 2025
.pagebutton {
user-select: none;
display: inline-flex;
flex-direction: column;
overflow: hidden;
position: relative;
margin: 0.25em;
outline: 1px outset var(--pagebutton-light);
border-radius: var(--border-radius-small);
transition-property: box-shadow, transform;
transition-duration: calc(var(--transition-time) * 2);
transition-timing-function: var(--linear-bounce);
z-index: 1;
}
.pagebutton:hover {
box-shadow: 0 0.2rem 0.4rem var(--pagebutton-primary);
transform: translateY(-0.25rem);
transition-duration: var(--transition-time);
transition-timing-function: ease;
z-index: 2;
}
.pagebutton:active .pagebutton-image img {
filter: drop-shadow(0 0 6px var(--pagebutton-primary));
}
.pagebutton-image {
display: inline-flex;
justify-content: center;
background-color: var(--pagebutton-transparent);
transition-property: box-shadow;
transition-duration: var(--transition-time);
}
.pagebutton-image a,
.pagebutton-image span {
display: inline-flex;
justify-content: center;
width: 100%;
}
.pagebutton-image img {
padding: 0.5em;
}
.pagebutton-text {
display: contents;
}
.pagebutton-text a {
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
height: calc(1.25rem + 1px);
font-weight: bold;
white-space: nowrap;
background-color: hsl(from var(--pagebutton-primary) h var(--adjust-s) var(--adjust-bg-l));
color: var(--color-white) !important;
border-top: 1px solid hsl(from var(--pagebutton-primary) h var(--adjust-s) var(--adjust-bd-l));
}