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

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

Материал из Celadon | Wiki Shiptest
мНет описания правки
Метка: отменено
мНет описания правки
 
(не показано 36 промежуточных версий этого же участника)
Строка 1: Строка 1:
.button {
.button {  
     display: flex;
     display: inline-flex;
     flex-direction: column;
     flex-direction: column;
    align-items: center;
overflow: hidden;
    justify-content: center;
    padding: 10px;
    margin: 5px;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
     border-radius: 4px;
     border-radius: 4px;
    cursor: pointer;
     transition: all 0.3s ease;
     transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
     position: relative;
     position: relative;
     overflow: hidden;
     outline: 1px outset;
}
}


.button:hover {
.button:hover {
    background-color: #fff;
     box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
     box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.8);
     border-color: #ffcc00;
     border-color: #ffcc00;
    transform: translateY(-2px);
}
}


.button-img {
.button-img {
     margin-bottom: 8px;
     flex: 1;
     transition: all 0.3s ease;
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 {
.button-img:hover {
     transform: scale(1.1);
     transform: scale(1.1);
     filter: brightness(1.2) drop-shadow(0 0 3px rgba(255, 215, 0, 0.6));
     filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}
}


.button-text {
.button-text {
     font-weight: bold;
overflow: hidden;
     transition: all 0.2s ease;
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:hover {
.button-text a:before {
    color: #202122;
content: '';
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
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;
}