Mudanças entre as edições de "Usuário:Himmel"
Ir para navegação
Ir para pesquisar
| Linha 1: | Linha 1: | ||
{ | /* --- WRAPPER --- */ | ||
.weapon-toggle-wrapper { | |||
display: flex; | |||
align-items: center; | |||
gap: 10px; | |||
margin: 15px 0; | |||
font-size: 16px; | |||
font-weight: bold; | |||
color: #fff; | |||
} | |||
/* --- SWITCH --- */ | |||
.weapon-switch { | |||
position: relative; | |||
display: inline-block; | |||
width: 55px; | |||
height: 28px; | |||
} | |||
.weapon-switch input { | |||
display: none; | |||
} | |||
.weapon-slider { | |||
position: absolute; | |||
cursor: pointer; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
bottom: 0; | |||
background-color: #555; | |||
transition: 0.3s; | |||
border-radius: 34px; | |||
} | |||
.weapon-slider:before { | |||
position: absolute; | |||
content: ""; | |||
height: 22px; | |||
width: 22px; | |||
left: 3px; | |||
bottom: 3px; | |||
background-color: white; | |||
transition: 0.3s; | |||
border-radius: 50%; | |||
} | |||
/* LIGADO */ | |||
.weapon-switch input:checked + .weapon-slider { | |||
background-color: #4aa3ff; /* azul bonito */ | |||
} | |||
.weapon-switch input:checked + .weapon-slider:before { | |||
transform: translateX(26px); | |||
} | |||
Edição das 11h56min de 25 de novembro de 2025
/* --- WRAPPER --- */ .weapon-toggle-wrapper {
display: flex; align-items: center; gap: 10px; margin: 15px 0; font-size: 16px; font-weight: bold; color: #fff;
}
/* --- SWITCH --- */ .weapon-switch {
position: relative; display: inline-block; width: 55px; height: 28px;
}
.weapon-switch input {
display: none;
}
.weapon-slider {
position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: 0.3s; border-radius: 34px;
}
.weapon-slider:before {
position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%;
}
/* LIGADO */ .weapon-switch input:checked + .weapon-slider {
background-color: #4aa3ff; /* azul bonito */
}
.weapon-switch input:checked + .weapon-slider:before {
transform: translateX(26px);
}