New and updates styles
This commit is contained in:
parent
67f50a01b1
commit
3d10b122ea
4 changed files with 34 additions and 6 deletions
|
|
@ -1 +1,19 @@
|
||||||
/* A blank block because there is *always* a button */
|
.button {
|
||||||
|
color: var(--button-text, var(--color-dark));
|
||||||
|
background-color: var(--button-bg, var(--color-light));
|
||||||
|
border: 2px solid var(--button-border, var(--color-dark));
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
display: inline-block;
|
||||||
|
font: inherit;
|
||||||
|
padding: 0.3em 1em;
|
||||||
|
font-weight: 700;
|
||||||
|
transition-property: background-color, border;
|
||||||
|
transition-duration: var(--transition-duration);
|
||||||
|
transition-timing-function: var(--transition-timing);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover {
|
||||||
|
--button-bg: var(--color-dark);
|
||||||
|
--button-text: var(--color-light);
|
||||||
|
--button-border: var(--color-dark);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@
|
||||||
margin-top: var(--space-s);
|
margin-top: var(--space-s);
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose :is(ul:not(.grid), ol:not(.grid)) {
|
.prose :when(ul:not(.grid), ol:not(.grid)) {
|
||||||
padding-inline-start: var(--space-s);
|
padding-inline-start: var(--space-s);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,3 +64,15 @@ textarea,
|
||||||
select {
|
select {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Adding cursor style to interactive elements */
|
||||||
|
button,
|
||||||
|
[type='button'],
|
||||||
|
[type='reset'],
|
||||||
|
[type='submit'],
|
||||||
|
[type='image'],
|
||||||
|
[type='checkbox'],
|
||||||
|
[type='radio'],
|
||||||
|
summary {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,8 @@
|
||||||
:root {
|
:root {
|
||||||
--gutter: var(--space-s-m);
|
--gutter: var(--space-s-m);
|
||||||
--border-radius: 0.5rem;
|
--border-radius: 0.5rem;
|
||||||
--transition-base: 250ms ease;
|
--transition-duration: 250ms;
|
||||||
--transition-movement: 200ms linear;
|
--transition-timing: ease;
|
||||||
--transition-fade: 200ms ease;
|
|
||||||
--transition-bounce: 500ms cubic-bezier(0.5, 0.05, 0.2, 1.5);
|
|
||||||
--wrapper-width: clamp(16rem, 93vw, 85rem);
|
--wrapper-width: clamp(16rem, 93vw, 85rem);
|
||||||
--tracking: -0.05ch;
|
--tracking: -0.05ch;
|
||||||
--tracking-s: -0.075ch;
|
--tracking-s: -0.075ch;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue