Шаблон:PageButton/styles.css: различия между версиями
Aylong (обсуждение | вклад) мНет описания правки |
Aylong (обсуждение | вклад) мНет описания правки |
||
Строка 6: | Строка 6: | ||
overflow: hidden; | overflow: hidden; | ||
position: relative; | position: relative; | ||
outline: 1px outset var(--tmp-25); | outline: 1px outset var(--tmp-25); | ||
border-radius: var(--border-radius-small); | border-radius: var(--border-radius-small); |
Версия от 10:43, 2 июня 2025
.pagebutton {
user-select: none;
position: relative;
display: inline-flex;
flex-direction: column;
overflow: hidden;
position: relative;
outline: 1px outset var(--tmp-25);
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(--tmp-75);
transform: translateY(-0.25rem);
transition-duration: var(--transition-time);
transition-timing-function: ease;
z-index: 2;
}
.pagebutton-image {
display: inline-flex;
justify-content: center;
background-color: var(--tmp-10);
}
.pagebutton-image a {
transition-property: filter;
transition-duration: var(--transition-time);
}
.pagebutton:active .pagebutton-image a {
filter: drop-shadow(0 0 6px var(--tmp-75));
transition-duration: 0s;
}
.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(--tmp-75) h var(--adjust-s) var(--adjust-bg-l));
color: var(--color-white) !important;
border-top: 1px solid hsl(from var(--tmp-75) h var(--adjust-s) var(--adjust-bd-l));
}
.pagebutton-text a:before {
content: '';
position: absolute;
inset: 0;
}