aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/buttons/main-nav-button.module.scss
blob: bc1ed19148f3e9db483cbbb333f6a698b48c8fb0 (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
@use "@styles/abstracts/functions" as fun;

.checkbox {
  position: absolute;
  top: calc(#{fun.convert-px(50)} / 2);
  left: calc(#{fun.convert-px(50)} / 2);
  opacity: 0;
  cursor: pointer;
}

.label {
  display: block;
  cursor: pointer;

  .icon {
    &__wrapper {
      --icon-size: #{fun.convert-px(50)};
    }

    &--active {
      background: transparent;
      border: transparent;

      &::before {
        top: 0;
        transform-origin: 50% 50%;
        transform: rotate(-45deg);
      }

      &::after {
        bottom: 0;
        transform-origin: 50% 50%;
        transform: rotate(45deg);
      }
    }
  }
}