update base styles
This commit is contained in:
parent
b0fb890ad0
commit
6cedd33c1c
3 changed files with 34 additions and 21 deletions
|
|
@ -76,7 +76,7 @@ textarea {
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
block-size: 2ex;
|
block-size: 0.6lh;
|
||||||
inline-size: auto;
|
inline-size: auto;
|
||||||
flex: none;
|
flex: none;
|
||||||
}
|
}
|
||||||
|
|
@ -87,21 +87,12 @@ strong {
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
|
border: none;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
width: 10%;
|
width: 10%;
|
||||||
margin-block: var(--space-m-l);
|
margin-block: var(--flow-space, var(--space-m-l));
|
||||||
margin-inline-start: 0;
|
margin-inline-start: 0;
|
||||||
background-color: var(--color-bg-accent-2);
|
background-color: var(--color-bg-accent-2);
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: currentcolor;
|
|
||||||
text-decoration-thickness: 0.08em;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
|
|
@ -109,12 +100,33 @@ figcaption {
|
||||||
font-size: var(--size-step-min-1);
|
font-size: var(--size-step-min-1);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-block-end: var(--space-xs);
|
padding-block-end: var(--space-xs);
|
||||||
border-bottom: 1px solid var(--color-bg-accent);
|
border-bottom: var(--stroke);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration-thickness: 0.15ex;
|
||||||
|
text-underline-offset: 0.2ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:not([class]):hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:focus {
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:focus-visible {
|
:focus-visible {
|
||||||
outline: 3px solid;
|
outline: 3px solid var(--focus-color, currentColor);
|
||||||
outline-offset: 0.3ch;
|
outline-offset: var(--focus-offset, 0.3ch);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* reduce focus offset for Firefox
|
||||||
|
*/
|
||||||
|
@supports (-moz-appearance: none) {
|
||||||
|
:root {
|
||||||
|
--focus-offset: 0.08em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
|
|
|
||||||
|
|
@ -56,14 +56,14 @@ ol[role='list'] {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Padding for lists */
|
|
||||||
[role='list'] {
|
[role='list'] {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Anchor styles */
|
/* Anchor styles */
|
||||||
a:not([class]) {
|
a {
|
||||||
text-decoration-skip-ink: auto;
|
text-decoration-skip-ink: auto;
|
||||||
|
color: currentColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Image styles */
|
/* Image styles */
|
||||||
|
|
@ -100,7 +100,6 @@ textarea {
|
||||||
resize: block;
|
resize: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Textarea height */
|
|
||||||
textarea:not([rows]) {
|
textarea:not([rows]) {
|
||||||
min-height: 10em;
|
min-height: 10em;
|
||||||
}
|
}
|
||||||
|
|
@ -153,7 +152,7 @@ html:has(dialog[open]:modal) {
|
||||||
|
|
||||||
/* Reduced motion */
|
/* Reduced motion */
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
html:focus-within {
|
:focus-within {
|
||||||
scroll-behavior: auto;
|
scroll-behavior: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@
|
||||||
--transition-duration: 250ms;
|
--transition-duration: 250ms;
|
||||||
--transition-timing: ease;
|
--transition-timing: ease;
|
||||||
--wrapper-width: 85rem;
|
--wrapper-width: 85rem;
|
||||||
--tracking: -0.05ch;
|
--tracking: -0.04ch;
|
||||||
--tracking-s: -0.075ch;
|
--tracking-s: -0.075ch;
|
||||||
--tracking-wide: 0.05ch;
|
--tracking-wide: 0.04ch;
|
||||||
|
--stroke: 1px solid var(--color-bg-accent);
|
||||||
|
|
||||||
--gradient-rainbow: linear-gradient(90deg, #cf4662 10%, #fbbe25 30%, #62c95c 50%, #08bccb 75%, #a977d5 90%);
|
--gradient-rainbow: linear-gradient(90deg, #cf4662 10%, #fbbe25 30%, #62c95c 50%, #08bccb 75%, #a977d5 90%);
|
||||||
--gradient-conic: conic-gradient(
|
--gradient-conic: conic-gradient(
|
||||||
|
|
@ -26,6 +27,7 @@
|
||||||
|
|
||||||
--color-light: var(--color-gray-100);
|
--color-light: var(--color-gray-100);
|
||||||
--color-dark: var(--color-gray-900);
|
--color-dark: var(--color-gray-900);
|
||||||
|
--color-mid: var(--color-gray-400);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Light theme */
|
/* Light theme */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue