aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Toolbar/Toolbar.module.scss
blob: df1ad7e7a2a853a40a66d166b0ce4b0d6aa57efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
    }
  }
}