Шаблон:ButtonPage/Button.css: различия между версиями
Материал из Celadon | Wiki Shiptest
Дополнительные действия
мНет описания правки |
мНет описания правки |
||
| Строка 19: | Строка 19: | ||
display: inline-flex; | display: inline-flex; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
| Строка 29: | Строка 27: | ||
.button-text { | .button-text { | ||
overflow: hidden; | |||
display: inline-flex; | |||
height: calc(1rem + 1px); | |||
align-items: center; | |||
justify-content: center; | |||
font-weight: bold; | |||
white-space: nowrap; | |||
} | } | ||
Версия от 02:23, 1 сентября 2025
.button { display: inline-flex;
flex-direction: column;
overflow: hidden;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 2px;
transition: all 0.3s ease;
position: relative;
}
.button:hover {
background-color: #fff;
box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
border-color: #ffcc00;
}
.button-img {
flex: 1;
display: inline-flex;
justify-content: center;
}
.button-img:hover {
transform: scale(1.1);
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}
.button-text {
overflow: hidden;
display: inline-flex;
height: calc(1rem + 1px);
align-items: center;
justify-content: center;
font-weight: bold;
white-space: nowrap;
}