aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/images/icons/hamburger-icon/hamburger-icon.module.scss
blob: 8b8ad7e711bd59dcd7900cfd4b12351b94717b27 (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
40
41
42
43
44
45
@use "../../../../../styles/abstracts/functions" as fun;

.wrapper {
  display: flex;
  align-items: center;
  aspect-ratio: 1/1;
  position: relative;
}

.icon {
  width: 100%;

  &,
  &::before,
  &::after {
    display: block;
    height: 20%;
    background: var(--color-primary-lighter);
    background-image: linear-gradient(
      to right,
      var(--color-primary-light) 0%,
      var(--color-primary-lighter) 100%
    );
    border: fun.convert-px(1) solid var(--color-primary-darker);
    border-radius: fun.convert-px(4);
    transition:
      all 0.25s ease-in-out 0s,
      transform 0.4s ease-in 0s;
  }

  &::before,
  &::after {
    content: "";
    position: absolute;
    inset-inline: 0;
  }

  &::before {
    top: 3%;
  }

  &::after {
    bottom: 3%;
  }
}