You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
1.9 KiB
CSS

* {
box-sizing: border-box;
}
html {
width: 300px;
}
body,
html {
font-family: "Sora";
margin: 0px;
padding: 8px;
color: #333;
}
button {
height: 30px;
width: 30px;
outline: none;
border-radius: 2px;
cursor: pointer;
background: white;
border: 1px solid #b6c2e2;
}
button.active {
background-color: #1834e9;
}
button.current {
box-shadow: 0 0 0 2px white, 0 0 0 4px black;
}
header {
display: flex;
justify-content: space-between;
}
h1 {
color: #1834e9;
font-weight: bold;
font-size: 24px;
margin: 0;
}
#selected-list {
margin: 0;
margin-top: 32px;
padding: 0;
list-style: none;
}
.category + .category {
border-top: 1px solid #eef1f8;
}
#preferences {
width: auto;
font-weight: 600;
background: none;
padding: 0;
margin-top: 16px;
border: none;
color: #1834e9;
}
.button {
position: relative;
margin-left: auto;
}
#label {
font-size: 9px;
position: absolute;
bottom: -16px;
left: 0;
white-space: pre-line;
}
.category {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 12px 0;
}
.category .title {
margin: 0;
}
.switch {
position: relative;
display: inline-block;
width: 30px;
height: 17px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #eef1f8;
border: 1px solid #b6c2e2;
transition: 0.4s;
}
.slider:before {
position: absolute;
content: "";
height: 13px;
width: 13px;
left: 2px;
bottom: 1px;
background-color: white;
transition: 0.4s;
}
input:checked + .slider {
background-color: #1834e9;
}
input:focus + .slider {
box-shadow: 0 0 1px #b6c2e2;
}
input:checked + .slider:before {
-webkit-transform: translateX(12px);
-ms-transform: translateX(12px);
transform: translateX(12px);
}
/* Rounded sliders */
.slider.round {
border-radius: 17px;
}
.slider.round:before {
border-radius: 50%;
}