-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
117 lines (101 loc) · 2.19 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
:root {
--fg: #000;
--bg: #fff;
--border: 0.2em solid var(--fg);
}
@media (prefers-color-scheme: dark) {
:root {
--fg: #fff;
--bg: #000;
}
}
body {
color: var(--fg);
background-color: var(--bg);
fill: var(--fg);
margin: 0 auto;
max-width: 52em;
padding: 1em;
font-family: 'Eczar', serif;
font-size: 1.2em;
line-height: 1.6;
overflow-y: scroll;
}
h1 {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 2.5rem;
margin: 0;
}
p {
font-family: 'Eczar', serif;
font-size: 1rem;
font-weight: 400;
line-height: 1.6;
margin: 1em 0;
}
code {
font-size: 1.3em;
font-family: 'Space Grotesk', sans-serif;
font-weight: 400;
}
a {
color: inherit;
fill: inherit;
text-decoration: underline; /* Keep links underlined */
border-bottom: none; /* Remove bottom border from previous design */
transition: color 0.3s ease;
}
a:hover {
color: var(--bg);
fill: var(--bg);
background-color: var(--fg);
text-decoration: underline; /* Maintain underlining on hover */
}
span.line {
display: inline-block;
font-family: 'Eczar', serif;
font-weight: 500;
}
span.nowrap {
white-space: nowrap;
}
header nav {
display: flex;
justify-content: center;
align-items: center; /* Vertically centers nav items */
}
.nav-home a {
border: 0.3em solid var(--bg);
margin: 0.7em;
display: block;
}
.nav-home a img {
display: block;
width: 3em;
height: auto;
transition: opacity 0.3s ease; /* Smooth transition effect */
}
.nav-home a:hover img {
content: url('/nj-white-bg.png'); /* Path to the hover image */
}
.nav-items {
display: flex;
justify-content: center; /* Centers the links horizontally */
align-items: center; /* Vertically centers the links */
gap: 1em; /* Adds spacing between the links */
padding: 1em 0; /* Adds vertical padding */
}
.nav-items a {
font-family: 'Space Grotesk', sans-serif;
font-weight: 600;
font-size: 1.1rem;
display: flex;
align-items: center; /* Centers text vertically inside links */
justify-content: center; /* Centers text horizontally */
text-decoration: underline; /* Explicitly underline nav links */
}
footer span.line {
font-family: 'Eczar', serif;
font-weight: 500;
}