Шаблон:PageButton/styles.css: различия между версиями
Aylong (обсуждение | вклад) мНет описания правки |
Aylong (обсуждение | вклад) мНет описания правки |
||
Строка 7: | Строка 7: | ||
position: relative; | position: relative; | ||
margin: 0.25em; | margin: 0.25em; | ||
outline: 1px outset var(-- | outline: 1px outset var(--tmp-25); | ||
border-radius: var(--border-radius-small); | border-radius: var(--border-radius-small); | ||
transition-property: box-shadow, transform; | transition-property: box-shadow, transform; | ||
Строка 16: | Строка 16: | ||
.pagebutton:hover { | .pagebutton:hover { | ||
box-shadow: 0 0.2rem 0.4rem var(-- | box-shadow: 0 0.2rem 0.4rem var(--tmp-75); | ||
transform: translateY(-0.25rem); | transform: translateY(-0.25rem); | ||
transition-duration: var(--transition-time); | transition-duration: var(--transition-time); | ||
Строка 26: | Строка 26: | ||
display: inline-flex; | display: inline-flex; | ||
justify-content: center; | justify-content: center; | ||
background-color: var(-- | background-color: var(--tmp-10); | ||
} | } | ||
Строка 35: | Строка 35: | ||
.pagebutton:active .pagebutton-image a { | .pagebutton:active .pagebutton-image a { | ||
filter: drop-shadow(0 0 6px var(-- | filter: drop-shadow(0 0 6px var(--tmp-75)); | ||
transition-duration: 0s; | transition-duration: 0s; | ||
} | } | ||
Строка 62: | Строка 62: | ||
font-weight: bold; | font-weight: bold; | ||
white-space: nowrap; | white-space: nowrap; | ||
background-color: hsl(from var(-- | background-color: hsl(from var(--tmp-75) h var(--adjust-s) var(--adjust-bg-l)); | ||
color: var(--color-white) !important; | color: var(--color-white) !important; | ||
border-top: 1px solid hsl(from var(-- | border-top: 1px solid hsl(from var(--tmp-75) h var(--adjust-s) var(--adjust-bd-l)); | ||
} | } | ||
Версия от 10:11, 2 июня 2025
.pagebutton {
user-select: none;
position: relative;
display: inline-flex;
flex-direction: column;
overflow: hidden;
position: relative;
margin: 0.25em;
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;
}