summaryrefslogtreecommitdiff
path: root/src/components/SideBar.module.scss
blob: 4bd2e60d43a08e4fac97168de0ced1c328f87cfb (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.root {
  background: var(--color-bg-sidebar);
  min-width: 150px;
  position: relative;
}

.logoPlaceholder {
  height: 15px;
  @media (max-width: 768px) {
    display: none;
  }
}

.rows {
  @media (max-width: 768px) {
    display: flex;
    justify-content: space-between;
    overflow: auto;
  }
}

/* a router link */
.row {
  color: var(--color-text);
  text-decoration: none;

  display: flex;
  align-items: center;
  padding: 6px 16px;
  @media (--breakpoint-not-small) {
    padding: 8px 20px;
  }

  @media (max-width: 768px) {
    flex-direction: column;
  }

  svg {
    color: var(--color-icon);
    width: 22px;
    height: 22px;

    @media (--breakpoint-not-small) {
      width: 24px;
      height: 24px;
    }
  }
}

.rowActive {
  background: var(--color-sb-active-row-bg);

  @media (max-width: 768px) {
    background: none;
    border-bottom: 2px solid #387cec;
  }
}

.label {
  padding-left: 14px;
  font-size: 0.75em;
  @media (max-width: 768px) {
    padding-left: 0;
    padding-top: 5px;
  }

  @media (--breakpoint-not-small) {
    font-size: 1em;
  }
}

.footer {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .footer {
    display: none;
  }
}

.iconWrapper {
  --sz: 40px;

  width: var(--sz);
  height: var(--sz);
  display: flex;
  justify-content: center;
  align-items: center;

  outline: none;
  padding: 5px;
  color: var(--color-text);
  border-radius: 100%;
  border: 1px solid transparent;
}
.iconWrapper:hover {
  opacity: 0.6;
}
.iconWrapper:focus {
  border-color: var(--color-focus-blue);
}