add social battery sorting engine

This commit is contained in:
Joren de Graaf
2026-08-11 02:07:27 +02:00
parent 78f7da6be7
commit 8406c60182
7 changed files with 234 additions and 14 deletions
+72
View File
@@ -44,6 +44,78 @@ body {
list-style: none;
}
.social-battery {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
padding: 1rem;
margin-bottom: 1.5rem;
color: #07384d;
background: #d9f4ff;
border-radius: 1rem;
}
.social-battery h2,
.social-battery p {
margin: 0;
}
.social-battery p {
margin-top: .25rem;
}
.social-battery__levels {
display: flex;
gap: .25rem;
}
.social-battery__input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.social-battery__levels label {
display: grid;
place-items: center;
width: 2.25rem;
height: 2.25rem;
cursor: pointer;
color: #4f7280;
border-radius: .5rem;
transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.social-battery__levels label:hover {
color: #07384d;
background: #fff;
transform: translateY(-2px);
}
.social-battery__input:checked + label {
color: #fff;
background: #087aa9;
}
.social-battery__input:focus-visible + label {
outline: 3px solid #07384d;
outline-offset: 2px;
}
@media (max-width: 640px) {
.social-battery {
align-items: flex-start;
flex-direction: column;
}
}
.task-list__item form {
display: flex;
align-items: center;