Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
169 lines (149 loc) · 3.4 KB
/
Copy pathstyle.css
File metadata and controls
169 lines (149 loc) · 3.4 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/* CSS for the body and dark/light mode */
:root {
--bg-color: #F7F7F8; /* Default background color (light mode) */
--text-color: #202123; /* Default text color (light mode) */
}
body {
margin: 0;
overflow: hidden;
font-family: Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
}
/* Dark mode styles */
.dark-mode {
--bg-color: #202123;
--text-color: #F7F7F8;
--button-bg-color: #333;
--button-text-color: #F7F7F8;
--drawing-color: #aaa; /* Customize the color for the drawing */
}
/* Light mode styles */
.light-mode {
--bg-color: #F7F7F8;
--text-color: #202123;
--button-bg-color: #ccc;
--button-text-color: #202123;
--drawing-color: #555; /* Customize the color for the drawing */
}
/* Controls layout and positioning */
.controls {
position: absolute;
padding: 10px;
}
.sliders{
position: fixed;
left: 50px;
top: 40%;
display: flex;
flex-direction: column;
gap: 1.5em;
}
#play-button {
position: fixed;
left: 50%;
bottom: 10%;
transform: translateX(-50%);
}
#dark-mode-toggle {
position: fixed;
top: 50px;
right: 5vw;
background-color: transparent;
color: var(--text-color);
border: none;
font-size: 24px;
cursor: pointer;
background-color: transparent;
border: 2px solid var(--button-text-color);
border-radius: 50%;
}
/* Hide the sun icon when in dark mode and moon icon when in light mode */
.dark-mode .fa-sun,
.light-mode .fa-moon {
display: none;
}
/* Show the sun icon in light mode and moon icon in dark mode */
.light-mode .fa-sun,
.dark-mode .fa-moon {
display: inline;
}
/* Slider styles */
.controls input[type="range"] {
-webkit-appearance: none;
appearance: none;
height: 8px;
background: var(--button-bg-color);
border-radius: 5px;
outline: none;
}
.controls input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: var(--button-text-color);
border-radius: 50%;
cursor: pointer;
}
.controls input[type="range"]::-moz-range-thumb {
/* Firefox */
width: 20px;
height: 20px;
background: var(--button-text-color);
border-radius: 50%;
cursor: pointer;
}
/* Button styles */
.controls button {
padding: 5px 10px;
font-size: 16px;
cursor: pointer;
background-color: var(--button-bg-color);
border: 2px solid var(--button-text-color);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
color: var(--button-text-color);
}
.controls button .fa {
font-size: 20px;
}
.controls button.playing .icon-pause {
display: inline;
}
.controls button.playing .icon-play {
display: none;
}
.controls button:not(.playing) .icon-play {
display: inline;
}
.controls button:not(.playing) .icon-pause {
display: none;
}
.views {
position: fixed;
bottom: 10%;
right: 5vw;
display: flex;
flex-direction: column;
gap: 2em;
}
.title {
font-size: 50px;
font-family: 'Brush Script MT', cursive;
position: fixed;
top: 5%;
left: 50px;
}
.title p{
font-size: 20px;
}
.title p a{
color: var(--text-color);
cursor: pointer;
z-index: 1003;
}