]> git.r.bdr.sh - rbdr/r.bdr.sh/blame_incremental - css/style.css
Constrain the link size
[rbdr/r.bdr.sh] / css / style.css
... / ...
CommitLineData
1html {
2 scroll-behavior: smooth;
3}
4
5body {
6 font-size: 1em;
7 font: -apple-system-body;
8 font-family: "Hoefler Text", "Times New Roman", serif;
9 font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
10 line-height: 1.6;
11 letter-spacing: 0.02em;
12 text-align: justify;
13}
14
15aside {
16 clear: both;
17}
18
19::selection {
20 color: #00f;
21 background-color: #e8e8e8;
22}
23
24@media only screen and (min-width: 500px) {
25 body {
26 overflow-x: auto;
27 }
28
29 .columned {
30 width: max-content;
31 }
32
33 .columned .h2:not(:only-child) {
34 float: left;
35 margin: 0 40px;
36 }
37
38 .columned .h2:not(:only-child) h2 {
39 width: 14.6em;
40 }
41
42 .columned .h2:not(:only-child) .h3,
43 .columned .h2:not(:only-child) li,
44 .columned .h2:not(:only-child) p {
45 width: 24em;
46 }
47
48 .columned .h2:not(:only-child) pre { width: 25em }
49}
50
51.columned .h2:first-of-type pre {
52 line-height: 1;
53}
54
55blockquote, p, article > div { max-width: 45em }
56pre { max-width: 55em }
57blockquote {
58 border-left: 4px solid #ccc;
59 padding-left: 10px;
60}
61
62br { display: none }
63pre {
64 font-family: courier, monospace;
65 font-size: 0.875em;
66 background-color: #eee;
67 overflow-x: auto;
68}
69
70canvas {
71 width: 64px;
72 height: 64px;
73 display: inline-block;
74 background-color: #000;
75 border: 1px solid #000;
76}
77
78@media (prefers-color-scheme: dark) {
79 body {
80 color: #fff;
81 background: #000;
82 }
83
84 canvas {
85 background-color: #fff;
86 border: 1px solid #fff;
87 }
88
89 a {
90 color: #5dc1fd;
91 display: inline-block;
92 min-height: 48px;
93 }
94
95 a:visited {
96 color: #ed6eff;
97 }
98
99 pre {
100 background-color: #222;
101 }
102}