caio.co/de/caca


Let go of font sizes and line heights 💬 by Caio 2 months ago (log)
It became pretty obvious that my lame attempt at taming these things
with little css failed when I plugged into a different screen

If the browser settings are sane, this should still look readable

Blob caca/theme/base.html

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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>{% block title %}caio's code asylum{% endblock title %}</title>
  <link rel="icon"
    href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍄</text></svg>">
  {% block head %}{% endblock head %}
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    * {
      box-sizing: border-box;
    }

    /* derived from https://ultimatemotherfuckingwebsite.com/ bugs and ugly are mine */
    body {
      font-family: sans-serif;
      max-width: 88ch;
      padding: 2.5rem 1.75rem;
      word-wrap: break-word;
      tab-size: 4;
    }

    section,
    aside,
    footer {
      margin: 2.5rem auto;
    }

    ul,
    ol {
      margin-top: 0;
      margin-bottom: 1.5rem;
    }

    summary {
      list-style-type: none;
    }

    /* loudsigh */
    summary::-webkit-details-marker {
      display: none;
    }

    img {
      max-width: 100%;
    }

    .idle {
      margin-left: 0.4rem;
      display: block;
    }

    .listing {
      column-count: 3;
      column-width: 26ch;
    }

    .listing>article {
      margin-left: 1rem;
      overflow: hidden;
    }

    nav>ol {
      list-style-type: none;
      padding-left: 0;
      display: inline;
    }

    nav>ol>li {
      display: inline;
    }

    nav>li>a {
      display: block;
    }

    nav>ol>li>a::after {
      content: '/';
    }

    a.nodec,
    a.nodec:visited {
      text-decoration: none;
      color: #000;
    }

    .chunk {
      margin-bottom: 1rem;
    }

    .mb1 {
      margin-bottom: 1rem;
    }

    .wrap {
      white-space: pre-wrap;
    }

    .text {
      font-family: sans-serif;
    }

    .code {
      font-family: monospace;
    }

    .nowrap {
      white-space: nowrap;
    }

    .pre {
      white-space: pre;
    }

    .inline {
      display: inline;
    }

    .minus {
      background-color: #E7CCCF;
    }

    .plus {
      background-color: #D8E7CE;
    }

    blockquote {
      border-left: 2px lightgray solid;
      padding-left: 0.5rem;
    }

    article#tip {
      border-left: 2px lightgray solid;

      details {
        padding-left: 0.5rem;
      }
    }

    @media(max-width: 86ch) {
      #readme {
        pre {
          overflow: auto;
        }
      }
    }

    .line-numbers {
      display: block;
      text-align: right;
      font-family: monospace;
      max-width: 4rem;
      margin-right: 0.5rem;
      border-right: 2px lightgray solid;
      padding-right: 0.5rem;
    }

    .blob-content>pre {
      font-family: monospace;
      margin: 0;
    }
  </style>
</head>

<body>
  <header>
    {% block header %}
    {% endblock header %}
  </header>
  <main>
    {% block main %}
    {% endblock main %}
  </main>
  <footer>
      <hr>
      <small>served by <a href="https://caio.co/de/caca/">caio's code asylum</a></small>
  </footer>
</body>


</html>