Sha256: dab2a375f599bcc03abac7e367c7ef0c573d30c554f1c868b32a30e61a3cee06
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
@use "katalyst/tables"; @use "button"; table { --tag-color: var(--site-primary-light); :where(th.selection, td.selection) { width: 2rem; } .selection:has(input[type="checkbox"]) { position: relative; label { position: absolute; top: 0; left: 0; bottom: 0; right: 0; display: grid; grid-template-areas: "input"; align-items: center; justify-content: flex-start; margin: 0 2px; input { position: absolute; -webkit-appearance: none; top: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; border: none !important; z-index: 1; cursor: pointer; } &::before, &::after { content: ""; grid-area: input; border-color: var(--site-text-color); border-style: solid; } &::before { border-width: 2px; width: 1rem; height: 1rem; } &::after { width: 0; border-width: 0.25rem; margin: 0.25rem; opacity: 0; } } } .selection:has(input[type="checkbox"]:focus) { label::before { outline: 2px solid #fd0; outline-offset: 0; box-shadow: inset 0 0 0 1px; } } .selection:has(input[type="checkbox"]:indeterminate) { label::after { border-top-width: 1px; border-bottom-width: 1px; opacity: 1; } } .selection:has(input[type="checkbox"]:checked) { label::after { opacity: 1; } } } .tables--selection--form { p { margin-bottom: 0.5rem; } button { @extend %button-base; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katalyst-koi-4.9.2 | app/assets/stylesheets/koi/base/_tables.scss |