mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
82 lines
1.2 KiB
CSS
82 lines
1.2 KiB
CSS
/* Headers */
|
|
.headers__input {
|
|
height: 3rem;
|
|
padding: 0 1rem;
|
|
line-height: 1.5rem;
|
|
border-radius: 0.5rem;
|
|
border: 1px solid var(--neutral-content);
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
background-color: var(--header-bg);
|
|
}
|
|
}
|
|
|
|
/* Checkbox */
|
|
.checkbox-accent {
|
|
accent-color: var(--accent);
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Toggle */
|
|
.toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: relative;
|
|
cursor: pointer;
|
|
width: 36px;
|
|
height: 20px;
|
|
background-color: #ccc;
|
|
-webkit-transition: 0.4s;
|
|
transition: 0.4s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 14px;
|
|
width: 14px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
-webkit-transition: 0.4s;
|
|
transition: 0.4s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
input:focus + .slider {
|
|
box-shadow: 0 0 1px var(--accent);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
-webkit-transform: translateX(16px);
|
|
-ms-transform: translateX(16px);
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|