-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
223 lines (189 loc) · 3.5 KB
/
styles.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/*
holy FUCK do i hate CSS
*/
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f9f9f9;
color: #121212;
transition: background-color 0.3s, color, 0.3s;
}
body.dark-mode {
background-color: #121212;
color: #f9f9f9;
}
header {
position: relative;
color: #fff;
padding: 2rem 0;
text-align: center;
background: conic-gradient(#00a8db 90deg,
#70ddff 90deg 180deg,
#00a8db 180deg 270deg,
#70ddff 270deg);
background-size: 65px 65px;
animation: moveCheckerboard 5s linear infinite;
}
header.dark-mode {
background: conic-gradient(#444 90deg,
#666 90deg 180deg,
#444 180deg 270deg,
#666 270deg);
}
@keyframes moveCheckerboard {
0% {
background-position: 0 0;
}
100% {
background-position: -65px -65px;
}
}
header .container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 1;
}
header::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
z-index: 0;
}
header .profile-pic img {
width: 150px;
height: 150px;
border-radius: 50%;
border: 5px solid #fff;
}
header h1 {
margin: 1rem 0 0.5rem;
}
header p {
margin: 0.5rem 0 0;
}
section {
/*padding: 2rem;*/
max-width: 800px;
margin: 0 auto;
}
hr {
width: 30%;
border: none;
border-top: 1px solid #ccc;
margin: 1rem auto;
}
h2,
h4 {
text-align: center;
color: #333;
transition: color 0.3s;
}
body.dark-mode h2,
body.dark-mode h4 {
color: #ccc;
/* Color when dark mode is on */
}
.personal-stuff ul {
list-style-type: none;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
flex-direction: column;
align-items: center;
}
.personal-stuff li {
margin: 0.5rem;
/*padding: 0.5rem 1rem;*/
border-radius: 4px;
}
.skills ul {
list-style-type: none;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.skills li {
background: #4caf50;
color: #fff;
margin: 0.5rem;
padding: 0.5rem 1rem;
border-radius: 4px;
}
.work-item {
background: #fff;
margin: 1rem 0;
padding: 0 1rem;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
footer {
background: #333;
color: #fff;
text-align: center;
padding: 2rem 0;
}
footer ul {
list-style-type: none;
padding: 0;
}
footer li {
display: inline;
}
footer a {
color: #fff;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
div.fixed {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}
#dark-mode-toggle {
background-color: #333;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
#dark-mode-toggle:hover {
background-color: #555;
}
body.dark-mode #dark-mode-toggle {
background-color: #f9f9f9;
color: #333;
}
body.dark-mode .work-item {
background: #333;
color: #f9f9f9;
border-color: #444;
transform: background 0.5s, color 0.5s;
}
.work-item a {
color: #007bff;
text-decoration: none;
transition: color 0.3s;
}
body.dark-mode .work-item a {
color: #66b2ff;
}
body.dark-mode .work-item a:hover {
color: #99ccff;
}