Шаблон:PageButton/styles.css: различия между версиями
м Отмена версии 10263, сделанной Burenka. . (обсуждение) Метки: отмена отменено |
мНет описания правки Метка: отменено |
||
| Строка 65: | Строка 65: | ||
.pagebutton-text { | .pagebutton-text { | ||
display: contents; | |||
display: | } | ||
.pagebutton-text a { | |||
display: flex; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
text-align: center; | |||
font-weight: bold; | font-weight: bold; | ||
width: 100%; | |||
height: 100%; | |||
line-height: 1.1rem; | |||
padding: 0 0.5rem; | |||
color: var(--color-text-darker); | |||
} | } | ||
| Строка 87: | Строка 85: | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background: transparent; | |||
} | } | ||
Версия от 07:53, 24 июля 2025
.pagebutton {
--pagebutton-transition: calc(var(--transition-time) * 2);
--color-tmp-100: var(--tmp-100);
--color-tmp-75: var(--tmp-75);
--color-tmp-50: var(--tmp-50);
--color-tmp-25: var(--tmp-25);
--color-tmp-10: var(--tmp-10);
user-select: none;
position: relative;
display: inline-flex;
flex-direction: column;
overflow: hidden;
outline: 1px outset var(--color-tmp-25);
border-radius: var(--border-radius-small);
transition-property: box-shadow, outline-color, transform;
transition-duration: var(--pagebutton-transition);
transition-timing-function: var(--linear-bounce);
z-index: 1;
}
.pagebutton:hover {
--pagebutton-transition: var(--transition-time);
--color-tmp-100: var(--hover-100, var(--tmp-100));
--color-tmp-75: var(--hover-75, var(--tmp-75));
--color-tmp-50: var(--hover-50, var(--tmp-50));
--color-tmp-25: var(--hover-25, var(--tmp-25));
--color-tmp-10: var(--hover-10, var(--tmp-10));
box-shadow: 0 0.2rem 0.4rem var(--color-tmp-75);
transform: translateY(-0.25rem);
transition-timing-function: ease;
z-index: 2;
}
.pagebutton-image {
flex: 1;
display: inline-flex;
justify-content: center;
background-color: var(--color-tmp-10);
transition-property: background-color;
transition-duration: var(--pagebutton-transition);
}
.pagebutton-image a {
transition-property: filter;
transition-duration: var(--transition-time);
}
.pagebutton:active .pagebutton-image a {
filter: drop-shadow(0 0 6px var(--color-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 {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-weight: bold;
width: 100%;
height: 100%;
line-height: 1.1rem;
padding: 0 0.5rem;
color: var(--color-text-darker);
}
.pagebutton-text a:before {
content: '';
position: absolute;
inset: 0;
background: transparent;
}