-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
201 lines (171 loc) · 6.54 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/*
This CSS is heavily inspired on Fomantic UI, because I really like how it looks,
but I wanted something minimal for my personal site, and not using a whole
framework for a static page.
The dark theme is based on the glourious Ultimate Dark Neo theme for VS Code:
https://github.com/rubjo/ultimate-dark-neo-vs-code/
*/
:root {
--hl-color: #2185D0;
--link-visited-color: #145587;
--shadow-color: #d4d4d5;
/* This one needs to be RGB */
--face-color: 0, 0, 0;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
:root {
--hl-color: #99c794;
--link-visited-color: #A7ADBA;
--shadow-color: #9b9b9b;
/* This one needs to be RGB */
--face-color: 255, 255, 255;
}
body {
background: #373a3f;
color: #d8dee9;
}
}
body {
font-family: 'Lato', 'Helvetica Neue', 'Roboto', sans-serif;
text-align: center;
max-width: 1000px;
margin: auto;
}
a {
color: var(--hl-color);
text-decoration: none;
}
a:hover {
color: var(--hl-color);
text-decoration: underline;
}
a:visited {
color: var(--link-visited-color)
}
header {
margin-top: 2em;
}
footer {
border-top: 0.5px solid gray;
margin-top: 5em;
margin-bottom: 2em;
}
nav {
display: flex;
flex-direction: row;
/* justify-content: center; */
justify-content: flex-end;
align-items: baseline;
flex-wrap: wrap;
gap: 2em;
margin: auto;
margin-top: 1em;
max-width: 95%;
}
.subheader {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: baseline;
column-gap: 0.5em;
margin-bottom: 0.5em;
}
.subheader img {
height: 1em;
vertical-align: baseline;
}
.profile-image {
/* I take the 600px from Gravatar and scale it down with CSS because the resolution is aweful when asking for the 300px version */
max-width: 300px;
border: 1px solid black;
box-shadow: 0 1px 3px 0 var(--shadow-color), 0 0 0 1px var(--shadow-color);
border-radius: 50%;
justify-content: center;
}
@media (prefers-color-scheme: dark) {
.profile-image {
border-color: white;
}
}
.email-button {
display: inline-block;
margin: 2em;
box-shadow: 0 1px 3px 0 var(--shadow-color), 0 0 0 1px var(--shadow-color);
background-color: rgba(var(--face-color), 0.01);
border: .1px solid var(--hl-color);
border-radius: 5px;
padding: 0.5em 0.7em;
text-decoration: none;
color: var(--hl-color);
text-transform: uppercase;
}
.email-button:hover {
background-color: rgba(var(--face-color), 0.05);
}
.email-button:active {
background-color: rgba(var(--face-color), 0.1);
}
a.email-button:hover {
text-decoration: none;
}
.email-button .icon {
margin-right: 1em;
}
/* fancy horizontal ruler insiperd on the one from Fomantic UI*/
.separator {
text-transform: uppercase;
display: table;
white-space: nowrap;
width: 100%;
}
.separator::before {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABaAAAAACCAYAAACuTHuKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1OThBRDY4OUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1OThBRDY4QUNDMTYxMUU0OUE3NUVGOEJDMzMzMjE2NyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjU5OEFENjg3Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU5OEFENjg4Q0MxNjExRTQ5QTc1RUY4QkMzMzMyMTY3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VU513gAAADVJREFUeNrs0DENACAQBDBIWLGBJQby/mUcJn5sJXQmOQMAAAAAAJqt+2prAAAAAACg2xdgANk6BEVuJgyMAAAAAElFTkSuQmCC);
background-position: right 1em top 50%;
background-repeat: no-repeat;
content: '';
display: table-cell;
width: 50%;
}
.separator::after {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABaAAAAACCAYAAACuTHuKAAAAGXRFWHRTb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aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VU513gAAADVJREFUeNrs0DENACAQBDBIWLGBJQby/mUcJn5sJXQmOQMAAAAAAJqt+2prAAAAAACg2xdgANk6BEVuJgyMAAAAAElFTkSuQmCC);
background-position: left 1em top 50%;
background-repeat: no-repeat;
content: '';
display: table-cell;
width: 50%;
}
.cards {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.card {
display: flex;
flex-direction: column;
justify-content: center;
vertical-align: middle;
border-radius: 5px;
box-sizing: content-box;
box-shadow: 0 1px 3px 0 var(--shadow-color), 0 0 0 1px var(--shadow-color);
margin: 1em;
}
.card:hover {
box-shadow: 0 1px 3px 0 var(--hl-color), 0 0 0 1px var(--hl-color);
}
.card img {
flex: 1;
max-width: 250px;
padding: 0;
background-color: rgba(var(--face-color), 0.05);
border-radius: 5px 5px 0 0;
}
a.card {
text-decoration: none;
}
.card .content {
margin-top: .5em;
margin-bottom: .5em;
border-radius: 0 0 5px 5px;
}