Commit 54d9fe35c7

54d9fe35c7eab5caa7634b391d07eba76804fdc5

parent: 698b2656ee

Unsigned

cmc <hello@cleberg.net> · 2025-11-22 22:49 UTC

minor redesign

Layout: unified · split

theme/static/styles.css +220 −37
@@ -3,7 +3,7 @@
33 --bg-light: #f0f0f0;
44 --fg: #1b2229;
55 --fg-light: #383a42;
6 --link: #014980;
6 --link: #0f62fe;
77 --code: #8c2117;
88}
99
@@ -11,83 +11,150 @@ body {
1111 background-color: var(--bg);
1212 color: var(--fg-light);
1313 font-family: Menlo, Consolas, Monaco, Adwaita Mono, Liberation Mono, Lucida Console, monospace;
14 font-size: 0.9rem;
15 line-height: 1.5;
14 font-size: 0.85rem;
15 line-height: 1.4;
1616 margin: 0 auto;
1717 max-width: 45em;
1818 padding: 1.5rem;
1919}
2020
21a {
22 padding: 0 0.15rem;
21a,
22a:active {
23 color: var(--link);
24}
25
26a[href]:not([href^="#"]):not([href^="/"]):not([href*="cleberg.net"]) {
27 display: inline;
28}
29
30a[href]:not([href^="#"]):not([href^="/"]):not([href*="cleberg.net"])::before {
31 background-color: var(--bg);
32 color: var(--fg);
33 content: "[";
34 display: inline-block;
35 padding-right: 0.15em;
36 pointer-events: none;
37 position: relative;
2338 text-decoration: none;
39 z-index: 1;
2440}
2541
26a,a:active {
27 color: var(--link);
42a[href]:not([href^="#"]):not([href^="/"]):not([href*="cleberg.net"])::after {
43 background-color: var(--bg);
44 color: var(--fg);
45 content: "]";
46 display: inline-block;
47 padding-left: 0.15em;
48 pointer-events: none;
49 position: relative;
50 text-decoration: none;
51 z-index: 1;
2852}
2953
30a:hover {
31 background-color: var(--link);
32 color: var(--bg);
54h1,
55h2,
56h3,
57h4,
58h5,
59h6,
60nav,
61time,
62code,
63pre,
64.metadata-block {
65 font-family: Menlo, Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;
3366}
3467
35h1,h2,h3,h4,h5,h6 {
68h1,
69h2,
70h3,
71h4,
72h5,
73h6 {
3674 color: var(--fg);
37 font-size: 1rem;
38 text-transform: uppercase;
75 font-size: 0.85rem;
76 font-weight: bold;
77 margin-bottom: 1rem;
78 margin-top: 1rem;
79}
80
81h1 {
82 font-size: 0.85rem;
3983}
4084
4185.skip-link {
42 position: absolute;
86 height: 1px;
4387 left: -10000px;
88 overflow: hidden;
89 position: absolute;
4490 top: auto;
4591 width: 1px;
46 height: 1px;
47 overflow: hidden;
4892}
4993
5094.skip-link:focus {
95 height: auto;
5196 position: static;
5297 width: auto;
53 height: auto;
5498}
5599
56100nav {
57 align-items: center;
58 display: flex;
59 justify-content: space-around;
60 width: 100%;
101 align-items: center;
102 display: flex;
103 justify-content: space-around;
104 margin: 3rem 0;
105 width: 100%;
61106}
62107
63108nav ul {
64 display: flex;
65 list-style-type: none;
66 margin: 0;
67 padding: 0;
68 width: 100%;
109 display: flex;
110 list-style-type: none;
111 margin: 0;
112 padding: 0;
113 width: 100%;
69114}
70115
71116nav ul li {
72117 height: 100%;
73118 margin-bottom: 0.5rem;
74 margin-right: 0.5rem;
75 text-align: center;
119 margin-right: 1rem;
120 text-align: center;
76121}
77122
78blockquote,
79.reply-link {
123.context-box {
124 background-color: var(--bg-light);
125 color: var(--fg);
126 display: grid;
127 font-size: 0.85rem;
128 grid-template-columns: auto 1fr;
129 gap: 0.5rem 1rem;
130 margin-bottom: 3rem;
131 margin-top: 3rem;
132 padding: 1rem;
133}
134
135.context-label {
136 color: var(--link);
137 font-weight: bold;
138 text-transform: uppercase;
139}
140
141blockquote {
80142 background-color: var(--bg-light);
81143 border-left: 8px solid var(--link);
82144 margin: 1rem 0;
83145 padding: 0.5rem 1rem;
84146}
85147
86blockquote p,
87.reply-link p {
148blockquote p {
88149 margin: 0;
89150}
90151
152.reply-link {
153 border: 1px dotted var(--fg-light);
154 margin-top: 3rem;
155 padding: 0.5rem 1rem;
156}
157
91158img {
92159 border-style: none;
93160 width: 100%;
@@ -99,18 +166,20 @@ table {
99166 width: 100%;
100167}
101168
102colgroup, thead, tbody {
169colgroup,
170thead,
171tbody {
103172 border: 1px dotted var(--fg);
104173}
105174
106175pre,
107176pre>code,
108177code {
109 font-size: 0.9rem;
178 font-size: 0.85rem;
110179}
111180
112181pre {
113 border: 1px dotted var(--fg);
182 background-color: var(--bg-light);
114183 margin: 0.5rem 0;
115184 overflow-x: auto;
116185 padding: 0.5rem;
@@ -132,11 +201,125 @@ time {
132201
133202.post time {
134203 flex-shrink: 0;
204 font-size: 0.85rem;
135205 margin-right: 1rem;
136206}
137207
208article {
209 border-bottom: 1px dotted var(--fg-light);
210 margin-bottom: 3rem;
211 padding-bottom: 3rem;
212}
213
214p {
215 margin-top: 0.5rem;
216 margin-bottom: 1rem;
217}
218
138219footer {
139 margin: 1rem 0;
220 margin: 3rem 0;
221}
222
223#table-of-contents {
224 border: 1px dotted var(--fg-light);
225 font-family: Menlo, Consolas, Monaco, "Liberation Mono", monospace;
226 font-size: 0.85rem;
227 margin-bottom: 3rem;
228 margin-top: 3rem;
229 max-width: 100%;
230 padding: 3rem;
231}
232
233#table-of-contents h2 {
234 border: none;
235 font-family: inherit;
236 font-size: 0.85rem;
237 text-transform: none;
238 font-weight: normal;
239 margin-bottom: 1rem;
240 margin-top: 0;
241 padding: 0;
242}
243
244#text-table-of-contents ul {
245 list-style: none;
246 padding-left: 0;
247 margin: 0;
248}
249
250#text-table-of-contents ul ul {
251 padding-left: 2ch;
252}
253
254#text-table-of-contents li a {
255 align-items: baseline;
256 display: flex;
257 padding: 0.2rem 0;
258}
259
260#text-table-of-contents li a::after {
261 background-image: radial-gradient(circle, var(--fg-light) 1px, transparent 1px);
262 background-position: 0 bottom;
263 background-repeat: repeat-x;
264 background-size: 8px 100%;
265 border-bottom: none;
266 content: "";
267 flex-grow: 1;
268 height: 4px;
269 margin-left: 1ch;
270 opacity: 0.6;
271 padding-left: 1ch;
272 text-align: right;
273}
274
275#text-table-of-contents li a:hover {
276 background-color: transparent;
277 color: var(--link);
278}
279
280#text-table-of-contents ul {
281 list-style: none;
282 margin: 0;
283 padding-left: 0;
284}
285
286#text-table-of-contents ul ul {
287 margin-top: 0.2rem;
288 padding-left: 3ch;
289}
290
291.outline-2 ul li {
292 list-style: none;
293}
294
295.outline-2 ul li::before {
296 color: var(--fg-light);
297 content: "- ";
298}
299
300.outline-2 {
301
302 p,
303 ul,
304 ol,
305 blockquote,
306 pre {
307 margin-left: 3ch;
308 }
309
310 blockquote p {
311 margin-left: 0;
312 }
313}
314
315.recent-posts {
316 h2 {
317 margin-bottom: 1.5rem;
318 }
319
320 p {
321 margin-top: 1.5rem;
322 }
140323}
141324
142325@media (prefers-color-scheme: dark) {
@@ -148,4 +331,4 @@ footer {
148331 --link: #67C0FF;
149332 --code: #FF6C6B;
150333 }
151}
334}
\ No newline at end of file
theme/templates/base.html +7 −7
@@ -22,17 +22,17 @@
2222 </div>
2323 <nav aria-label="Site Navigation">
2424 <ul>
25 <li><a href="/">/home</a></li>
26 <li><a href="/about/">/about</a></li>
27 <li><a href="/blog/">/blog</a></li>
28 <li><a href="/services/">/services</a></li>
25 <li><a href="/">Home</a></li>
26 <li><a href="/about/">About</a></li>
27 <li><a href="/blog/">Blog</a></li>
28 <li><a href="/services/">Services</a></li>
2929 </ul>
3030 </nav>
3131 <main id="main">{% block main %}{% endblock %}</main>
3232 <footer>
33 <a href="https://stats.uptimerobot.com/OwOWs7HU0z">status</a> &middot;
34 <a href="https://git.cleberg.net/cleberg.net.git">source</a> &middot;
35 <a href="/feed.xml">rss</a>
33 <a href="https://stats.uptimerobot.com/OwOWs7HU0z">Status</a> &middot;
34 <a href="https://git.cleberg.net/cleberg.net.git">Source</a> &middot;
35 <a href="/feed.xml">RSS</a>
3636 </footer>
3737</body>
3838</html>
theme/templates/index.html +7 −11
@@ -1,17 +1,13 @@
11{% extends "base.html" %} {% block main %}
2<section>
3 <h1>christian cleberg</h1>
4 <blockquote>
5 <b>shouganai</b>
6 <br>[sho-ga-n-eye] | しょうがない
7 <br><br>
8 <i>it is what it is</i>
9 </blockquote>
2<section class="context-box">
3 <span class="context-label">User:</span> <span>Christian Cleberg &lt;hello@cleberg.net&gt;</span>
4 <span class="context-label">Context:</span> <span>Technology Assurance Manager</span>
5 <span class="context-label">Status:</span> <span>Active</span>
106</section>
11<section>
7<section class="recent-posts">
128 <h2>Recent Posts</h2>
139 <!-- BEGIN_POSTS -->
1410 <!-- END_POSTS -->
15 <p><a href="/blog/">all posts &rarr;</a></p>
11 <p><a href="/blog/">All Posts &rarr;</a></p>
1612</section>
17{% endblock %}
13{% endblock %}
\ No newline at end of file
theme/templates/post.html +4 −7
@@ -8,13 +8,10 @@
88<meta property="og:description" content="{{ project_description }}" />
99{% endif %} {% endblock %} {% block main %}
1010<article>
11 <section class="post-metadata">
12 <h1>{{ post.title }}</h1>
13 {% if post.date is defined %}
14 <time datetime='{{ post.date|strftime("%Y-%m-%d") }}'
15 >{{ post.date|strftime("%Y-%m-%d %H:%M:%S") }}</time
16 >
17 {% endif %}
11 <section class="context-box">
12 <span class="context-label">Title:</span> <span>{{ post.title }}</span>
13 <span class="context-label">Date:</span> <span><time datetime='{{ post.date|strftime("%Y-%m-%d") }}'>{{ post.date|strftime("%Y-%m-%d %H:%M:%S") }}</time></span>
14 <span class="context-label">Description:</span> <span>{{ post.description }}</span>
1815 </section>
1916 <section>{{ post.html | safe }}</section>
2017 <div class="reply-link"><a href="mailto:hello@cleberg.net">Reply via email &rarr;</a></div>