diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-13 16:53:24 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-13 16:53:24 +0100 |
| commit | 22d5ffa155080037a32a64814002b987bddce3b4 (patch) | |
| tree | 6f158c36c043d4a3fd822688a4f51e94e8d9810f /src/components/Buttons | |
| parent | 291a4fa29bb7fcbd1e0f298ff27bd0c774ff0cd0 (diff) | |
chore: increase toolbar buttons size
On small screen, they was too small I think. I also change some
styles like focus state to keep consistency between all elements in
toolbar. Also, I was not fan of the rotate effect.
Diffstat (limited to 'src/components/Buttons')
| -rw-r--r-- | src/components/Buttons/Buttons.module.scss | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/components/Buttons/Buttons.module.scss b/src/components/Buttons/Buttons.module.scss index fca8013..2a6daca 100644 --- a/src/components/Buttons/Buttons.module.scss +++ b/src/components/Buttons/Buttons.module.scss @@ -1,5 +1,6 @@ @use "@styles/abstracts/functions" as fun; @use "@styles/abstracts/mixins" as mix; +@use "@styles/abstracts/placeholders"; .btn { display: block; @@ -176,19 +177,28 @@ } .toolbar { - display: block; - width: var(--btn-size); - height: var(--btn-size); - padding: 0; + --draw-border-thickness: #{fun.convert-px(5)}; + --icon-size: 100%; + + display: flex; + flex-flow: row nowrap; + place-items: center; + width: var(--btn-size, 100%); + height: var(--btn-size, 100%); + padding: var(--spacing-2xs); background: none; border: none; font-size: var(--font-size-md); + &:hover, &:focus { - outline: var(--color-primary-light) solid fun.convert-px(3); + --draw-border-color1: var(--color-primary-light); + --draw-border-color2: var(--color-primary-lighter); + + @extend %draw-borders; } - @include mix.media("screen") { + /* @include mix.media("screen") { @include mix.dimensions("md") { &:hover, &:focus { @@ -196,7 +206,7 @@ transition: all 0.8s ease-in-out 0s; } } - } + } */ } .icon { @@ -213,8 +223,8 @@ .back { display: flex; place-content: center; - width: var(--btn-size); - height: var(--btn-size); + width: var(--icon-size); + height: var(--icon-size); position: absolute; top: 0; right: 0; |
