26 lines
2.6 KiB
CSS
26 lines
2.6 KiB
CSS
.severity-scale{min-width:0;margin-top:2px}
|
|
.severity-scale__top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}
|
|
.severity-scale__value{color:#263b30;font-size:1.15rem;font-weight:800;line-height:1.2}
|
|
.severity-scale--unset .severity-scale__value{color:#58675e;font-size:.82rem;font-weight:600}
|
|
.severity-scale__clear{min-width:44px;min-height:36px;padding:4px 8px;border:0;border-radius:7px;background:transparent;color:#235943;font:600 .78rem 'DM Sans',system-ui,sans-serif;text-decoration:underline;cursor:pointer}
|
|
.severity-scale__clear:hover{background:#e7f0e9}
|
|
.severity-scale__clear:focus-visible{outline:3px solid #235943;outline-offset:2px}
|
|
.severity-scale__track{position:relative;height:48px;display:flex;align-items:center}
|
|
.severity-scale__segments{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:3px;width:100%;height:24px;pointer-events:none}
|
|
.severity-scale__segment{border:1px solid #aebbb0;border-radius:4px;background:#e8ede8;transition:background-color .12s ease,transform .12s ease}
|
|
.severity-scale__segment.is-filled{border-color:var(--severity-colour);background:var(--severity-colour)}
|
|
.severity-scale__segment.is-current{transform:scaleY(1.3);box-shadow:0 0 0 2px #fff,0 0 0 4px #263b30}
|
|
.field input.severity-scale__range,.checkin-form .field input.severity-scale__range{position:absolute;inset:0;width:100%;height:48px;min-height:48px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;opacity:0;cursor:pointer;touch-action:pan-y}
|
|
.severity-scale__track:focus-within{outline:3px solid #235943;outline-offset:3px;border-radius:5px}
|
|
.severity-scale__ends{display:flex;justify-content:space-between;color:#56645b;font-size:.72rem;font-weight:700}
|
|
body[data-theme=dark] .severity-scale__value{color:#edf5ef}
|
|
body[data-theme=dark] .severity-scale--unset .severity-scale__value,body[data-theme=dark] .severity-scale__ends{color:#b5c5b9}
|
|
body[data-theme=dark] .severity-scale__clear{color:#b8e2c4}
|
|
body[data-theme=dark] .severity-scale__clear:hover{background:#33463a}
|
|
body[data-theme=dark] .severity-scale__segment{border-color:#6c7b70;background:#38463c}
|
|
body[data-theme=dark] .severity-scale__segment.is-filled{border-color:var(--severity-colour);background:var(--severity-colour)}
|
|
body[data-theme=dark] .severity-scale__segment.is-current{box-shadow:0 0 0 2px #263229,0 0 0 4px #f0f7f1}
|
|
body[data-theme=dark] .severity-scale__track:focus-within,body[data-theme=dark] .severity-scale__clear:focus-visible{outline-color:#b8e2c4}
|
|
@media(max-width:900px){.checkin-period__scores{grid-template-columns:1fr}}
|
|
@media(prefers-reduced-motion:reduce){.severity-scale__segment{transition:none}}
|