-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
139 lines (117 loc) · 2.94 KB
/
style.css
File metadata and controls
139 lines (117 loc) · 2.94 KB
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
129
130
131
132
133
134
135
136
137
138
139
html,
body {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
font-family: Verdana, Geneva, Tahoma, sans-serif;
--light-background: #121212;
--dark-background: rgb(99, 99, 99);
--light-text: black;
--dark-text: white;
}
canvas {
width: 100%;
height: 100%;
}
#animationButtons {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
#animationButtons>* {
margin: 0 0.5rem;
display: block;
}
#animationButtons>*:not(:last-child) {
margin-bottom: 0.5rem !important;
}
#animationButtons button {
width: 100px;
font-size: 1rem;
/* Schriftgröße der Buttons = Standardschriftgröße im Browser*/
cursor: pointer;
/* Mauszeiger ändert sich wenn dieser über den Buttons steht */
padding: 0.5em 1em;
/* Vertikale Horizontale ==> Größe und Abstand des Rahmens (jedes Buttens) richtet sich nach der Schriftgröße*/
background-color: rgb(0, 0, 0);
/* Hintergrundfarbe der Buttons*/
color: white;
/* Schriftfarbe der Buttons*/
border-radius: 0.5em;
/* Radius Buttonrand/Grenze */
border: 0.2em solid var(--light-text);
/* Rand: 2Pixel, eine Linie, Schwarz*/
transition: background .4s, color .4s;
}
#animationButtons.light button {
background-color: var(--dark-background);
border-color: var(--dark-background);
}
#animationButtons button:hover {
/* Hover-Effekt ==> Button ändert Design wenn der Cursor drüber steht*/
color: rgb(0, 0, 0);
/* Schriftfarbe der Buttons*/
background-color: white;
/* Hintergrundfarbe der Buttons*/
}
#animationButtons .switch {
position: relative;
display: inline-block;
width: 41px;
height: 24px;
}
#animationButtons .switch input {
opacity: 0;
width: 0;
height: 0;
}
#animationButtons .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--light-text);
transition: .4s;
}
#animationButtons .slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 2px;
bottom: 2px;
background-color: var(--dark-text);
transition: .4s;
}
#animationButtons input:checked+.slider {
background-color: var(--dark-background);
}
#animationButtons input:checked+.slider:before {
transform: translateX(16px);
}
#animationButtons .slider {
border-radius: 34px;
}
#animationButtons .slider:before {
border-radius: 50%;
}
#animationButtons .slider::after {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 45px;
content: 'Day';
}
#animationButtons input:checked+.slider::after{
content: 'Night';
color: var(--dark-text);
}
#animationButtons small {
color: var(--light-text);
}
#animationButtons.light small {
color: var(--dark-text);
}