Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:ButtonPage/Button.css: различия между версиями

Материал из Celadon | Wiki Shiptest
мНет описания правки
мНет описания правки
 
(не показано 40 промежуточных версий этого же участника)
Строка 1: Строка 1:
.button {
.button {  
     display: inline-block;
     display: inline-flex;
     padding: 8px 16px;
     flex-direction: column;
    background-color: #f8f9fa;
overflow: hidden;
    border: 1px solid #a2a9b1;
     border-radius: 4px;
     border-radius: 2px;
    cursor: pointer;
     transition: all 0.3s ease;
     transition: all 0.3s ease;
     position: relative;
     position: relative;
     text-align: center;
     outline: 1px outset;
    vertical-align: middle;
    line-height: 1.4;
}
}


.button:hover {
.button:hover {
    background-color: #fff;
     box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
     box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
     border-color: #ffcc00;
     border-color: #ffcc00;
Строка 20: Строка 15:


.button-img {
.button-img {
     vertical-align: middle;
     flex: 1;
     margin-right: 4px;
display: inline-flex;
    transition: transform 0.3s ease;
justify-content: center;
     width: 100%;
}
 
.button-img a,
.button-img span {
display: inline-flex;
justify-content: center;
width: 100%;
}
}


Строка 28: Строка 31:
     transform: scale(1.1);
     transform: scale(1.1);
     filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
     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;
}