Шаблон:PageButton/styles.css: различия между версиями
Admin (обсуждение | вклад) import TemplateStyles CSS |
Admin (обсуждение | вклад) PageButton: нормальный размер иконок (Тайпан) |
||
| Строка 59: | Строка 59: | ||
.pagebutton-image img { | .pagebutton-image img { | ||
padding: 0.5em; | padding: 0.5em; | ||
min-width: 72px; | |||
min-height: 72px; | |||
max-width: 96px; | |||
max-height: 96px; | |||
width: auto; | |||
height: auto; | |||
object-fit: contain; | |||
image-rendering: pixelated; | |||
} | } | ||
Текущая версия от 20:29, 6 августа 2026
.pagebutton {
position: relative;
display: inline-flex;
flex-direction: column;
overflow: hidden;
outline: 1px solid #c9d4e4;
border-radius: 6px;
transition-property: box-shadow, outline-color, transform;
transition-duration: 0.3s;
transition-timing-function: ease;
z-index: 1;
}
.pagebutton:hover {
box-shadow: 0 0.2rem 0.4rem #7a90b8;
transform: translateY(-0.25rem);
transition-timing-function: ease;
z-index: 2;
}
.pagebutton-image {
flex: 1;
display: inline-flex;
justify-content: center;
background-color: #e8eef7;
transition-property: background-color;
transition-duration: 0.3s;
}
.pagebutton-image a {
transition-property: opacity;
transition-duration: 0.15s;
}
.pagebutton:active .pagebutton-image a {
transition-duration: 0s;
}
.pagebutton-image a,
.pagebutton-image span {
display: inline-flex;
justify-content: center;
width: 100%;
}
.pagebutton-image img {
padding: 0.5em;
min-width: 72px;
min-height: 72px;
max-width: 96px;
max-height: 96px;
width: auto;
height: auto;
object-fit: contain;
image-rendering: pixelated;
}
.pagebutton-text {
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
height: calc(1.25rem + 1px);
font-weight: bold;
white-space: nowrap;
background-color: #666666;
color: #fff !important;
border-top: 1px solid #666666;
transition-property: background-color, border;
transition-duration: 0.3s;
}
.pagebutton-text a {
color: #fff !important;
}
.pagebutton-text a:before {
content: '';
position: absolute;
top:0;right:0;bottom:0;left:0;
}