]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - css/style.css
Add a padding
[rbdr/r.bdr.sh] / css / style.css
1 html {
2 scroll-behavior: smooth;
3 }
4
5 body {
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
15 aside {
16 clear: both;
17 padding-top: 2em;
18 }
19
20 ::selection {
21 color: #00f;
22 background-color: #e8e8e8;
23 }
24
25 @media only screen and (min-width: 500px) {
26 body {
27 overflow-x: auto;
28 }
29
30 .columned {
31 width: max-content;
32 padding: 0 0 0 66px;
33 }
34
35 .columned .h2:not(:only-child) {
36 float: left;
37 margin: 0 40px;
38 }
39
40 .columned .h2:not(:only-child) h2 {
41 width: 14.6em;
42 }
43
44 .columned .h2:not(:only-child) .h3,
45 .columned .h2:not(:only-child) li,
46 .columned .h2:not(:only-child) p {
47 width: 24em;
48 }
49
50 .columned .h2:not(:only-child) pre { width: 25em }
51
52 header {
53 float: left;
54 margin-top: 1.2em;
55 }
56 }
57
58 .columned .h2:first-of-type pre {
59 line-height: 1;
60 }
61
62 blockquote, p, article > div {
63 margin: 0 0.3em;
64 max-width: 45em
65 }
66 pre { max-width: 55em }
67 blockquote {
68 border-left: 4px solid #ccc;
69 padding-left: 10px;
70 }
71
72 br { display: none }
73 h1, h2, h3 { font-weight: normal }
74 h1 { font-size: 1em }
75 h2 { font-size: 1.65em }
76 h3 { font-size: 1.25em }
77 pre {
78 font-family: courier, monospace;
79 font-size: 0.875em;
80 background-color: #eee;
81 overflow-x: auto;
82 padding: 1em;
83 }
84
85 canvas {
86 width: 64px;
87 height: 64px;
88 display: block;
89 background-color: #000;
90 border: 1px solid #000;
91 }
92
93 @media (prefers-color-scheme: dark) {
94 body {
95 color: #fff;
96 background: #000;
97 }
98
99 canvas {
100 background-color: #fff;
101 border: 1px solid #fff;
102 }
103
104 a {
105 color: #5dc1fd;
106 display: inline-block;
107 min-height: 48px;
108 }
109
110 a:visited {
111 color: #ed6eff;
112 }
113
114 pre {
115 background-color: #222;
116 }
117 }