diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-20 15:18:49 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-20 15:23:27 +0100 |
| commit | f7b08ee862e62b9f8764303f1fef733f210a7138 (patch) | |
| tree | 1273bc8d85a5d3205310f5a26005cc79d1dc3a50 /src/components/Toolbar/Toolbar.module.scss | |
| parent | fa6adedc42e9c6ec39cc30df16b54900c220b094 (diff) | |
chore: add a toolbar component
Diffstat (limited to 'src/components/Toolbar/Toolbar.module.scss')
| -rw-r--r-- | src/components/Toolbar/Toolbar.module.scss | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/components/Toolbar/Toolbar.module.scss b/src/components/Toolbar/Toolbar.module.scss new file mode 100644 index 0000000..df1ad7e --- /dev/null +++ b/src/components/Toolbar/Toolbar.module.scss @@ -0,0 +1,39 @@ +@use "@styles/abstracts/functions" as fun; +@use "@styles/abstracts/mixins" as mix; + +.wrapper { + --toolbar-size: #{fun.convert-px(60)}; + --btn-size: #{fun.convert-px(50)}; + + display: flex; + flex-flow: row wrap; + align-items: center; + justify-content: space-around; + width: 100%; + height: var(--toolbar-size); + position: fixed; + bottom: 0; + left: 0; + z-index: 5; + background: var(--color-bg); + box-shadow: 0 fun.convert-px(-1) fun.convert-px(3) 0 var(--color-shadow); + + @include mix.media("screen") { + @include mix.dimensions(null, "2xs", "height") { + --toolbar-size: #{fun.convert-px(50)}; + --btn-size: #{fun.convert-px(42)}; + } + + @include mix.dimensions("sm") { + justify-content: flex-end; + gap: var(--spacing-md); + width: auto; + background: inherit; + box-shadow: none; + position: relative; + left: unset; + margin-right: unset; + transform: unset; + } + } +} |
