aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/css/base/navbar.css
blob: 497429c6a90965b05ff5ea7ec8fe27d44caa44e7 (plain) (blame)
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
.switch {
  position: relative;
  height: 2em;
  width: 5em;
  cursor: pointer;
}

.switch-outer {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 2em;
  transition: background-color 0.3s ease-out;
}

.switch.dark .switch-outer {
  background-color: #22272E;
}

.switch.light .switch-outer {
  background-color: #3f61d9;
}

.switch-inner {
  width: 95%;
  top: 50%;
  border-radius: 2em;
  transition: background-color 0.2s ease-out;
}

.switch.light .switch-inner {
  background-color: #7289da;
}
.switch.dark .switch-inner {
  background-color: #1b2137;
}

.knob {
  position: absolute;
  height: 75%;
  width: 37.5%;
  top: 50%;
  transform: translate(0%, -65%);
  border-radius: 10em;
  transition: all 0.5s ease-out;
}

.knob.dark {
  background-color: #586282;
  margin: 6% auto auto 8%;
}

.knob.light {
  background-color: #364c94;
  margin: 6% auto auto 56%;
}

.theme-icon {
  position: absolute !important;
  color: white;
  --ggs: 1;
  opacity: 100%;
  transition: opacity 0.3s ease-out;
  bottom: auto;
}

.theme-icon.light {
  left: 15%;
  top: 20%
}

.theme-icon.dark {
  right: 15%;
  top: 20%
}

.switch.dark .theme-icon.light {
  opacity: 0;
}

.switch.light .theme-icon.dark {
  opacity: 0;
}