By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 css.html

View raw Download
text/html • 4.22 kiB
HTML document, Unicode text, UTF-8 text
        
            
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
<meta charset="UTF-8">
5
<title>css</title>
6
<link rel="stylesheet" href="/static/style.css">
7
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
</head>
9
<body>
10
<header>
11
<a href="#main" id="skip-link">Skip navigation</a>
12
<nav>
13
<ul>
14
<li><a href="/">Home</a></li>
15
<li><a href="/projects">Projects</a></li>
16
<li><a href="/index">Index</a></li>
17
<li><a href="/about">About</a></li>
18
<li><a href="https://roundabout-host.com/roundabout">Roundabout-host</a></li>
19
</ul>
20
<ul>
21
<li><a href="mailto:root@roundabout-host.com" id="mail-link">root@roundabout-host.com</a></li>
22
</ul>
23
</nav>
24
</header>
25
<main id="main">
26
27
<h1>css</h1>
28
29
<div class="topic-posts">
30
31
<article class="content-area">
32
<h2><a href="/articles/font-stacks.html" class="article-title">Proposed system font stacks</a></h2>
33
<div class="home-article-date">2024-12-27</div>
34
<p><p>I've seen <a href="https://modernfontstacks.com/">Modern Font Stacks</a>. I agree that there are many cases
35
where system fonts are fine, but the stacks there have some problems, especially with GNU/Linux
36
devices.
37
</p></p>
38
</article>
39
40
<article class="content-area">
41
<h2><a href="/articles/semantic-css.html" class="article-title">Let's write more semantic CSS</a></h2>
42
<div class="home-article-date">2024-05-18</div>
43
<p><p>You probably wrote something like this at least once in your life:
44
</p><pre data-language="html">&lt;div class="card card--rounded card--primary"&gt;
45
&lt;div class="card__image-container"&gt;
46
&lt;img src="image.jpg" alt="A nice image" class="card__image"&gt;
47
&lt;span class="card__image-caption"&gt;A nice image&lt;/span&gt;
48
&lt;/div&gt;
49
&lt;div class="card__content"&gt;
50
&lt;div class="card__header"&gt;
51
&lt;div class="card__title"&gt;Hello, world!&lt;/div&gt;
52
&lt;/div&gt;
53
&lt;p class="card__text"&gt;
54
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
55
&lt;/p&gt;
56
&lt;/div&gt;
57
&lt;div class="card__footer"&gt;
58
&lt;button class="btn btn--primary btn--raised btn--accent card__button card__button--primary"&gt;Click me!&lt;/button&gt;
59
&lt;button class="btn btn--secondary btn--raised btn--accent card__button card__button--secondary"&gt;Click me!&lt;/button&gt;
60
&lt;/div&gt;
61
&lt;/div&gt;
62
</pre><p>Or this:
63
</p><pre data-language="html">&lt;div class="max-w-sm rounded overflow-hidden shadow-lg"&gt;
64
&lt;div&gt;
65
&lt;img class="w-full" src="image.jpg" alt="A nice image"&gt;
66
&lt;span class="text-gray-500 text-base"&gt;A nice image&lt;/span&gt;
67
&lt;/div&gt;
68
&lt;div class="px-6 py-4"&gt;
69
&lt;div&gt;
70
&lt;div class="font-bold text-xl mb-2"&gt;Hello, world!&lt;/div&gt;
71
&lt;/div&gt;
72
&lt;p class="text-gray-700 text-base"&gt;
73
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
74
&lt;/p&gt;
75
&lt;/div&gt;
76
&lt;div class="px-6 py-4"&gt;
77
&lt;button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"&gt;Click me!&lt;/button&gt;
78
&lt;button class="bg-transparent hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent rounded"&gt;Click me!&lt;/button&gt;
79
&lt;/div&gt;
80
&lt;/div&gt;
81
</pre></p>
82
</article>
83
84
</div>
85
86
</main>
87
<footer>
88
<p>Page generated on Sunday, 4 May 2025 at 15:06:42</p>
89
<p xmlns:cc="http://creativecommons.org/ns#" >This work is marked with <a href="https://creativecommons.org/publicdomain/zero/1.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC0 1.0 Universal</a> (🄍). No rights reserved.</p>
90
<p>Hosted at <a href="https://roundabout-host.com/roundabout">Roundabout-host</a> using the static site service, and generated with <a href="/projects/ampoule.html">Ampoule</a>.</p>
91
<a href="#">Back to top</a>
92
</footer>
93
</body>
94
</html>