summaryrefslogtreecommitdiff
path: root/src/components/SideBar.module.css
blob: b78d731a17cd134e637973ec900b8ed509b5a0ef (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
.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) {
    padding: 0;
  }
  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: 8px 20px;

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

  svg {
    color: var(--color-icon);
  }
}

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

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

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

.themeSwitchContainer {
  --sz: 50px;

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

  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--sz);
  height: var(--sz);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  svg {
    display: block;
    color: var(--color-icon);
  }
}