-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (89 loc) · 1.46 KB
/
Copy pathstyle.css
File metadata and controls
106 lines (89 loc) · 1.46 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
@font-face {
font-family: "Space Mono";
src: url("./fonts/SpaceMono-Regular.ttf") format("truetype");
font-display: swap;
}
* {
box-sizing: border-box;
}
html {
background: #fffff0;
}
body {
min-height: 100vh;
margin: 0;
color: #000;
background: #fffff0;
font-family: "Space Mono", monospace;
line-height: 1.5;
text-align: center;
-webkit-font-smoothing: antialiased;
}
main {
width: min(600px, calc(100% - 32px));
margin: 0 auto;
padding: 3vh 0 32px;
}
.profile {
display: block;
width: 100px;
height: auto;
margin: 0 auto 10px;
border: 1px solid #000;
border-radius: 50%;
}
h1,
p {
margin: 0 0 10px;
}
h1 {
font-size: 1rem;
}
a {
color: inherit;
text-decoration: underline;
text-underline-offset: 0.12em;
}
nav {
width: clamp(300px, 50vw, 600px);
max-width: 100%;
margin: 25px auto 0;
}
ul {
display: grid;
gap: 15px;
margin: 0;
padding: 0;
list-style: none;
}
li a {
display: block;
padding: 10px 16px;
border: 2px solid #f0f0f0;
border-radius: 10px;
text-decoration: none;
transition: border-color 160ms ease, transform 160ms ease;
}
li:nth-child(odd) a {
background: #f0ffff;
}
li:nth-child(even) a {
background: #fff0ff;
}
li a:hover {
border-color: #000;
}
li a:focus-visible {
outline: 2px solid #000;
outline-offset: 3px;
}
@media (hover: hover) {
li a:hover {
transform: translateY(-1px);
}
}
@media (prefers-reduced-motion: reduce) {
li a {
transition: none;
}
}