diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-07 22:54:27 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-07 22:54:27 +0200 |
| commit | 4bd651b9e32c568d86b30463858c20ef290d8c07 (patch) | |
| tree | 825e17e6b8d44d72fce01b014f4b79ae52f77d93 /src/components/molecules/buttons/heading-button.module.scss | |
| parent | 06396f8e942c58254ee4e87f610d3e33197e0d73 (diff) | |
chore: add a HeadingButton component
Diffstat (limited to 'src/components/molecules/buttons/heading-button.module.scss')
| -rw-r--r-- | src/components/molecules/buttons/heading-button.module.scss | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/components/molecules/buttons/heading-button.module.scss b/src/components/molecules/buttons/heading-button.module.scss new file mode 100644 index 0000000..d068001 --- /dev/null +++ b/src/components/molecules/buttons/heading-button.module.scss @@ -0,0 +1,41 @@ +@use "@styles/abstracts/functions" as fun; + +.icon { + transition: all 0.25s ease-in-out 0s; +} + +.wrapper { + display: flex; + flex-flow: row nowrap; + align-items: center; + justify-content: space-between; + gap: var(--spacing-md); + width: 100%; + padding: 0; + position: sticky; + top: 0; + background: inherit; + border: none; + border-top: fun.convert-px(2) solid var(--color-primary-dark); + border-bottom: fun.convert-px(2) solid var(--color-primary-dark); + cursor: pointer; + + &:hover, + &:focus { + .icon { + background: var(--color-primary-light); + color: var(--color-fg-inverted); + transform: scale(1.25); + + &::before, + &::after { + background: var(--color-bg); + } + } + } +} + +.heading { + background: none; + padding: var(--spacing-2xs) 0; +} |
