~wuz/wuz.sh

ref: 0046f7008ba44c4fda09dd57a96b976eebadd47c wuz.sh/_includes/styles/components/color-switch.scss -rw-r--r-- 822 bytes
0046f700 — Conlin Durbin Fix colors and garden 10 months ago
                                                                                
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
.color-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.color-switch {
  outline: none;
  display: inline-flex;
  align-items: center;
  background: none;
  font-size: 20px;
  padding: 2px 0;
  position: relative;
  border: 0;
  /* border-bottom: 3px solid transparent; */
  cursor: pointer;
}

.color-switch:focus {
  border-bottom-color: #191b2a;
}

.color-switch:before {
  content: "🌎";
  display: block;
  /* height: 15px; */
  /* width: 15px; */
  position: absolute;
  top: 2px;
  /* background-color: #eff0f6; */
  transition: transform 0.2s;
  transform: translateX(0px);
}

body.dark-mode .color-switch:focus {
  border-bottom-color: #eff0f6;
}

body.dark-mode .color-switch:before {
  /* background-color: #191b2a; */
  transform: translateX(100%);
}