-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
182 lines (177 loc) · 3.32 KB
/
style.css
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
170
171
172
173
174
175
176
177
178
179
180
181
182
/* global */
:root {
--white:#fff;
--lightest:#F3EFCC;
--light:#ECE7B4;
--dark:#406343;
--darkest:#32502E;
--lightgray:#555;
--darkgray:#333;
--darkergray:#222;
--black:#000;
}
* {
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color:var(--darkgray);
}
html {
min-height:100%;
}
body {
background: var(--darkest); /* fallback */
background:
linear-gradient(135deg,
var(--darkgray) 0%,
var(--dark) 35%,
var(--darkgray) 100%);
margin:0px;
}
/* Scrollbar customization */
* {
scrollbar-width: thin;
scrollbar-color: #fff;
}
/* Works on Chrome/Edge/Safari */
*::-webkit-scrollbar {
width: 12px;
}
*::-webkit-scrollbar-track {
background: #2D333B;
}
*::-webkit-scrollbar-thumb {
background-color: #848484;
border-radius: 20px;
}
a {
text-decoration: none;
color:var(--darkest);
font-weight: bold;
}
.nav {
width:100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
}
/* responsive */
@media(max-width:768px) {
.nav:nth-child(1) {
display:block;
}
div.container.flex div.nav h1 {
margin:1px 0px 10px 0px;
text-align: center;
}
button#newCanvas {
display:block;
margin:0 auto;
}
#themeSwitchButton {
position:fixed;
bottom:0;
right:0;
left:auto;
margin:3px;
box-shadow: 0.1px 0.1px 3px rgb(255 255 255 / 70%);
}
}
.container {
background-color:var(--lightest);
border-radius:1em;
max-width:1100px;
min-height:50vh;
margin:10px auto;
box-shadow:0px 0px 20px rgba(0,0,0,0.2);
padding:10px;
}
.flex {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap:20px;
}
canvas {
width:100%;
height:100%;
border-radius:50%;
border:3px solid var(--light);
}
h1 {
margin:0 0 0 20px;
letter-spacing: 0.1em;
}
button#newCanvas {
max-width: 140px;
max-height: 40px;
padding: 10px 10px;
cursor: pointer;
background: var(--dark);
border: none;
border-radius: 4px;
color: var(--lightest);
transition: background-color 200ms ease-in-out;
letter-spacing: 0.2em;
margin:0 auto;
}
button#newCanvas:hover {
background-color: var(--darkest);
}
button.themeSwitch {
cursor: pointer;
margin: 0em;
border:0;
border-radius:50%;
height:50px;
width:50px;
background: var(--darkgray);
box-shadow:1px 1px 3px rgba(0,0,0,0.7);
margin-right: 0;
margin-left: auto;
}
button.themeSwitch img {
transition: filter 200ms ease-in-out;
width:100%;
}
button.themeSwitch img:hover {
filter:invert(1);
}
/* dark mode */
.dark-mode {
background: var(--darkergray); /* fallback */
background:
linear-gradient(135deg,
var(--darkgray) 0%,
var(--black) 35%,
var(--darkgray) 100%);
}
.dark-mode .container.flex {
background:var(--darkergray);
box-shadow:0px 0px 20px rgba(255,255,255,0.2);
}
.dark-mode h1 {
color:var(--lightest);
}
a {
text-decoration: none;
color:var(--light);
font-weight: bold;
}
.dark-mode canvas {
border:3px solid var(--darkest);
}
.dark-mode button#newCanvas {
background: var(--darkest);
color: var(--lightest);
}
.dark-mode button#newCanvas:hover {
background-color: var(--dark);
}
.dark-mode button.themeSwitch {
background:var(--lightgray);
}
.dark-mode button.themeSwitch img {
filter:invert(1);
}
.dark-mode button.themeSwitch img:hover {
filter:invert(0);
}