Skip to content

Commit d96e439

Browse files
committed
Update Font & Styles
1 parent bbe5c19 commit d96e439

11 files changed

+66
-27
lines changed

public/css/styles.css

Lines changed: 62 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
@font-face {
2-
font-family: 'Liberation Mono';
3-
src: url('/fonts/liberation-mono/LiberationMono.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono.woff') format('woff');
2+
font-family: "Liberation Sans";
3+
src: url("/fonts/liberation-sans/LiberationSans-Regular.woff2") format("woff2"), url("/fonts/liberation-sans/LiberationSans-Regular.woff") format("woff");
44
font-weight: 400;
55
font-style: normal;
66
font-display: swap
77
}
88
@font-face {
9-
font-family: 'Liberation Mono';
10-
src: url('/fonts/liberation-mono/LiberationMono-Italic.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-Italic.woff') format('woff');
9+
font-family: "Liberation Sans";
10+
src: url("/fonts/liberation-sans/LiberationSans-Italic.woff2") format("woff2"), url("/fonts/liberation-sans/LiberationSans-Italic.woff") format("woff");
1111
font-weight: 400;
1212
font-style: italic;
1313
font-display: swap
1414
}
1515
@font-face {
16-
font-family: 'Liberation Mono';
17-
src: url('/fonts/liberation-mono/LiberationMono-Bold.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-Bold.woff') format('woff');
16+
font-family: "Liberation Sans";
17+
src: url("/fonts/liberation-sans/LiberationSans-Bold.woff2") format("woff2"), url("/fonts/liberation-sans/LiberationSans-Bold.woff") format("woff");
1818
font-weight: 700;
1919
font-style: normal;
2020
font-display: swap
2121
}
2222
@font-face {
23-
font-family: 'Liberation Mono';
24-
src: url('/fonts/liberation-mono/LiberationMono-BoldItalic.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-BoldItalic.woff') format('woff');
23+
font-family: "Liberation Sans";
24+
src: url("/fonts/liberation-sans/LiberationSans-BoldItalic.woff2") format("woff2"), url("/fonts/liberation-sans/LiberationSans-BoldItalic.woff") format("woff");
2525
font-weight: 700;
2626
font-style: italic;
2727
font-display: swap
@@ -38,18 +38,32 @@
3838
}
3939

4040
:root {
41-
font-size: 110%;
42-
letter-spacing: -0.5px;
41+
font-size: 105%;
42+
letter-spacing: -0.25px;
4343
line-height: 1.3;
44-
font-family: "Liberation Mono", monospace;
44+
font-family: "Liberation Sans", serif;
4545
tab-size: 2;
46+
47+
--fg: #000;
48+
--bg: #F8F8F0;
49+
--link-fg: #00B;
50+
--hr: #000;
51+
}
52+
53+
@media (prefers-color-scheme: dark) {
54+
:root {
55+
--fg: #FFF;
56+
--bg: #111;
57+
--link-fg: #56A8FF;
58+
--hr: #FFF;
59+
}
4660
}
4761

4862
body {
49-
color: #000;
50-
background: #FFF;
51-
margin: 1rem auto 3rem auto;
52-
padding: 0 0.75rem;
63+
color: var(--fg);
64+
background: var(--bg);
65+
margin: 1rem auto;
66+
padding: 0;
5367
max-width: 600px;
5468
}
5569

@@ -89,19 +103,39 @@ li p {
89103
margin: 0 !important;
90104
}
91105

92-
a, a:visited {
93-
color: #00B;
94-
text-decoration-color: #00B !important;
106+
a:not(button a), a:visited:not(button a) {
107+
color: var(--link-fg);
108+
text-decoration-color: var(--link-fg) !important;
95109
line-height: 1.5 !important;
96110
text-decoration: underline;
97111
text-underline-offset: 0.17rem;
98112
}
99-
a:hover {
113+
a:hover:not(button a) {
114+
text-decoration: none;
115+
}
116+
117+
button {
118+
border: none;
119+
outline: none;
120+
cursor: pointer;
121+
color: #FFF;
122+
background: linear-gradient(#0062CB, #004085);
123+
border-radius: 0.15rem;
124+
padding: 0;
125+
}
126+
button:hover {
127+
background: linear-gradient(#42d100, #309800);
128+
}
129+
130+
button a {
131+
color: inherit;
100132
text-decoration: none;
133+
display: block;
134+
padding: 0.25rem 0.3rem;
101135
}
102136

103137
hr {
104-
border-top: 1px solid #000;
138+
border-top: 1px solid var(--hr);
105139
}
106140

107141
img {
@@ -125,14 +159,19 @@ pre code {
125159
padding: 0 !important;
126160
}
127161
code:not(pre code) {
128-
color: #000 !important;
162+
color: var(--fg) !important;
129163
font-weight: bold;
130164
}
131165

132-
body > nav > a:not(:first-of-type) {
166+
body > nav {
167+
margin-bottom: 1rem;
168+
}
169+
body > nav > button:not(:first-of-type) {
133170
margin-left: 1ch;
134171
}
135-
172+
body > header > h1 {
173+
margin-top: 0;
174+
}
136175
body > header > div > time {
137176
display: inline;
138177
font-size: 0.9rem;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ last_modified_at
66

77
csprite (Pronounced see-sprite) is a free & easy to use pixel art editor.
88

9-
![csprite-preview](/media/csprite-preview.png)
9+
<img src="/media/csprite-preview.png" style="border: 1px solid #333;" />

src/template.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
</head>
1616
<body>
1717
<nav>
18-
<a href="/">Home</a>
19-
<a href="/download.html">Download</a>
20-
<a href="/wiki.html">Wiki</a>
18+
<button><a href="/">Home</a></button>
19+
<button><a href="/download.html">Download</a></button>
20+
<button><a href="/wiki.html">Wiki</a></button>
2121
</nav>
2222
<header>
2323
<h1>{{title}}</h1>

0 commit comments

Comments
 (0)