Add utility-first CSS layer and expand component library
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
:where(button:disabled, input:disabled, select:disabled, textarea:disabled) { cursor: not-allowed; }
|
||||
:where(img, picture, video, canvas, svg) { display: block; max-width: 100%; }
|
||||
:where(img, video) { height: auto; }
|
||||
:where(a) { color: var(--frost-color-accent); }
|
||||
:where(a) { color: var(--frost-color-link); }
|
||||
:where(a:hover) { color: var(--frost-color-link-hover); }
|
||||
:where(button) { color: inherit; }
|
||||
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) { margin-block: 0; }
|
||||
:where(h1, h2, h3, h4, h5, h6) {
|
||||
@@ -36,6 +37,8 @@
|
||||
:where(h1) { font-size: clamp(2rem, 5vw, 3.5rem); }
|
||||
:where(h2) { font-size: var(--frost-font-size-xl); }
|
||||
:where(code, kbd, pre) { font-family: var(--frost-font-mono); }
|
||||
:where(code, kbd) { padding: 0.1em 0.3em; border-radius: var(--frost-radius-sm); background: var(--frost-color-code-bg); color: var(--frost-color-code-text); }
|
||||
:where(pre) { overflow: auto; padding: var(--frost-space-4); border: 1px solid var(--frost-color-border); border-radius: var(--frost-radius-md); background: var(--frost-color-code-bg); color: var(--frost-color-code-text); }
|
||||
:where(table) { border-collapse: collapse; border-spacing: 0; }
|
||||
:where(th, td) { text-align: start; }
|
||||
:where(::selection) { background: var(--frost-color-selection); color: var(--frost-color-on-accent); }
|
||||
|
||||
Reference in New Issue
Block a user