summaryrefslogtreecommitdiff
path: root/src/components/SideBar.module.css
blob: 2d61c076d0ac46b9d0ee8a94d91dfeddbf5ac530 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.root {
  background: var(--color-bg-sidebar);
  position: relative;
}

.logoLink {
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 0 15px;
  @media (max-width: 768px) {
    display: none;
  }
  color: #2a477a;
  transition: color 0.3s ease-in-out;

  &:hover {
    animation: pulse 0.3s ease-in-out 0s infinite alternate;
  }

  img {
    width: 80px;
    height: 80px;
  }
}

@keyframes pulse {
  0% {
    color: #2a477a;
  }
  100% {
    color: #1f52ac;
  }
}

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

/* 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;
  }
}

.themeSwitchContainer {
  --sz: 40px;

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

  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--sz);
  height: var(--sz);
  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--color-text);

  padding: 5px;
  appearance: none;
  outline: none;
  user-select: none;
  background: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 100%;
  &:focus {
    border-color: var(--color-focus-blue);
  }
}