[Operator] Perbaikan Laman Jadwal
This commit is contained in:
@@ -186,6 +186,53 @@
|
||||
border-block-start: 1px solid var(--color-edge);
|
||||
}
|
||||
|
||||
/* Sakelar (button role="switch"): keadaan dari aria-checked; hanya knob (transform) yang dianimasikan */
|
||||
.switch {
|
||||
position: relative;
|
||||
flex: none;
|
||||
inline-size: 2.75rem;
|
||||
block-size: 1.5rem;
|
||||
padding: 0;
|
||||
border: 1px solid var(--color-edge);
|
||||
border-radius: 999px;
|
||||
background: var(--color-paper-3);
|
||||
cursor: pointer;
|
||||
}
|
||||
.switch__knob {
|
||||
position: absolute;
|
||||
inset-block-start: 50%;
|
||||
inset-inline-start: 0.125rem;
|
||||
inline-size: 1.125rem;
|
||||
block-size: 1.125rem;
|
||||
border-radius: 50%;
|
||||
background: var(--color-surface);
|
||||
box-shadow: 0 1px 2px color-mix(in oklab, var(--color-ink) 25%, transparent);
|
||||
transform: translateY(-50%);
|
||||
transition: transform var(--dur-short) var(--ease-out);
|
||||
}
|
||||
.switch[aria-checked="true"] { background: var(--color-accent); border-color: var(--color-accent); }
|
||||
.switch[aria-checked="true"] .switch__knob { background: var(--color-accent-ink); transform: translate(1.25rem, -50%); }
|
||||
.switch:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
|
||||
.switch:disabled { cursor: wait; opacity: 0.6; }
|
||||
@media (prefers-reduced-motion: reduce) { .switch__knob { transition: none; } }
|
||||
@media (forced-colors: active) { .switch[aria-checked="true"] { background: Highlight; border-color: Highlight; } .switch__knob { background: Canvas; } }
|
||||
|
||||
/* Daftar bersakelar di modal Lihat: nama + keterangan di kiri, sakelar di kanan */
|
||||
.switch-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
|
||||
.switch-list__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-xs); }
|
||||
.switch-list__item + .switch-list__item { border-block-start: var(--rule-hair) solid var(--color-rule); }
|
||||
.switch-list__text { display: grid; gap: 0.125rem; min-inline-size: 0; }
|
||||
.switch-list__name { font-weight: 600; }
|
||||
.switch-list__meta { font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); }
|
||||
|
||||
/* Baris yang sedang berlaku (mis. tahun ajaran periode kuliah aktif): arsir aksen lembut, teks aksen, garis aksen di tepi awal */
|
||||
.table tbody tr.table__row--active > * {
|
||||
background: var(--color-accent-soft);
|
||||
color: var(--color-accent-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.table tbody tr.table__row--active > :first-child { box-shadow: inset 3px 0 0 var(--color-accent); }
|
||||
|
||||
@media (hover: hover) {
|
||||
.table tbody tr:hover { background: color-mix(in oklab, var(--color-ink) 4%, transparent); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user