Шаблон:ButtonPage/Button.css: различия между версиями
Материал из Celadon | Wiki Shiptest
Дополнительные действия
Новая страница: «.button{ display: inline-block; padding: 0; border: none; background: none; cursor: pointer; transition: all 0.3s ease; border-radius: 5px; } .button:hover{ box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }» Метка: Создано заново |
мНет описания правки |
||
| (не показана 41 промежуточная версия этого же участника) | |||
| Строка 1: | Строка 1: | ||
.button{ | .button { | ||
display: inline- | display: inline-flex; | ||
flex-direction: column; | |||
overflow: hidden; | |||
border-radius: 4px; | |||
transition: all 0.3s ease; | |||
transition: all 0.3s ease; | position: relative; | ||
outline: 1px outset; | |||
} | } | ||
.button:hover{ | |||
box-shadow: 0 0 | .button:hover { | ||
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; | |||
width: 100%; | |||
} | |||
.button-img a, | |||
.button-img span { | |||
display: inline-flex; | |||
justify-content: center; | |||
width: 100%; | |||
} | |||
.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(1.25rem + 1px); | |||
align-items: center; | |||
justify-content: center; | |||
font-weight: bold; | |||
white-space: nowrap; | |||
border-top: 1px solid; | |||
} | |||
.button-text a { | |||
color: #fff; | |||
} | |||
.button-text a:before { | |||
content: ''; | |||
position: absolute; | |||
inset: 0; | |||
} | } | ||
Текущая версия от 00:40, 6 сентября 2025
.button {
display: inline-flex;
flex-direction: column;
overflow: hidden;
border-radius: 4px;
transition: all 0.3s ease;
position: relative;
outline: 1px outset;
}
.button:hover {
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;
width: 100%;
}
.button-img a,
.button-img span {
display: inline-flex;
justify-content: center;
width: 100%;
}
.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(1.25rem + 1px);
align-items: center;
justify-content: center;
font-weight: bold;
white-space: nowrap;
border-top: 1px solid;
}
.button-text a {
color: #fff;
}
.button-text a:before {
content: '';
position: absolute;
inset: 0;
}