diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-04 15:06:29 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:14:41 +0100 |
| commit | e97325a2c174a87c29593d1b42b9a1cc1eaf11af (patch) | |
| tree | 8bc2f9bd386512350ef596729dae1a9b14b7f3fd /src/components/molecules/buttons/help-button/help-button.module.scss | |
| parent | 9eeb49155e2e74df4d5cb2833da20669b85fafe5 (diff) | |
refactor(components): rewrite HelpButton component
Diffstat (limited to 'src/components/molecules/buttons/help-button/help-button.module.scss')
| -rw-r--r-- | src/components/molecules/buttons/help-button/help-button.module.scss | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/molecules/buttons/help-button/help-button.module.scss b/src/components/molecules/buttons/help-button/help-button.module.scss new file mode 100644 index 0000000..2dbba69 --- /dev/null +++ b/src/components/molecules/buttons/help-button/help-button.module.scss @@ -0,0 +1,24 @@ +@use "../../../../styles/abstracts/functions" as fun; +@use "../../../../styles/abstracts/mixins" as mix; + +.btn { + padding: fun.convert-px(7); + + @include mix.pointer("fine") { + padding: fun.convert-px(4); + } + + &[aria-pressed="true"] { + background: var(--color-primary-dark); + border-color: var(--color-primary-dark); + box-shadow: fun.convert-px(1) fun.convert-px(1) 0 0 var(--color-shadow); + + .icon { + :global { + path { + fill: var(--color-fg-inverted); + } + } + } + } +} |
