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