-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
93 lines (74 loc) · 1.34 KB
/
main.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
@import "https://www.nerdfonts.com/assets/css/webfont.css";
body {
background-color: white;
color: black;
margin: 1% 20% 1% 20%;
font-family: "sans-serif";
position: relative;
display: inline-block;
/* todo: add a reasonable font-size */
}
header {
text-align: center;
}
footer {
display: flex;
justify-content: space-between;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
font-family: "monospace";
font-size: 10px;
}
#modeToggle {
cursor: pointer;
}
.dark-mode {
background-color: black;
color: white;
}
a {
color: #007acc;
text-decoration: none;
}
a:hover {
color: #3498db;
}
.skill-set {
display: inline-block;
vertical-align: top;
margin-right: 10%;
}
.tooltip-trigger {
position: relative;
}
.tooltip-trigger::after {
/* data */
content: attr(data-tooltip);
/* positioning */
position: absolute;
bottom: 110%;
left: 50%;
transform: translateX(-50%);
/* sizing */
padding: 6px 6px;
border-radius: 8px;
/* text */
font-family: "sans-serif";
font-size: 12px;
white-space: nowrap;
/* for proper animation */
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
/* coloring */
background-color: #000c; /* black with about 75% opacity */
color: #fff;
}
.tooltip-trigger:hover::after {
opacity: 1;
}
.icon-large {
font-size: 20px;
}