Commit dcf0186e16

dcf0186e16b6ac8f0e00a3aeb9734421ce548177

parent: 70abefc0a6

Unsigned

cmc <hello@cleberg.net> · 2023-12-03 05:27 UTC

feat: update site theme and minify css

Layout: unified · split

static/styles.css +126 −118
@@ -1,169 +1,177 @@
1@media (prefers-reduced-motion:no-preference) { 1@media (prefers-reduced-motion: no-preference) {
2 :root { 2 :root {
3 scroll-behavior: smooth; 3 scroll-behavior: smooth;
4 } 4 }
5} 5}
6 6
7body { 7body {
8 background-color: hsl(0, 0%, 100%); 8 background-color: #282828;
9 color: hsl(0, 0%, 5%); 9 color: #ebdbb2;
10 font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; 10 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
11 font-size: 1rem; 11 font-size: 1rem;
12 line-height: 1.5; 12 line-height: 1.5;
13 max-width: 45em; 13 max-width: 45em;
14 margin: 0 auto; 14 margin: 0 auto;
15 padding: 0 1rem; 15 padding: 0 1rem;
16} 16}
17 17
18a, a:visited { 18nav,
19 color: hsl(240, 100%, 35%); 19footer {
20 text-decoration: none; 20 border-color: #ebdbb2;
21} 21}
22 22
23a:hover { 23h1 {
24 background-color: hsl(240, 100%, 35%); 24 color: #458588;
25 color: hsl(0, 0%, 100%);
26} 25}
27 26
28#preamble { 27h2 {
29 padding: 1rem 0; 28 color: #d79921;
30} 29}
31 30
32#preamble nav a { 31h3 {
33 margin-right: 0.5rem; 32 color: #b16286;
34} 33}
35 34
36#postamble { 35h4 {
37 border-top: 1px solid #000; 36 color: #cc241d;
38 margin-top: 1rem;
39} 37}
40 38
41img { 39h1::before {
42 width: 100%; 40 content: "* ";
43} 41}
44 42
45table { 43h2::before {
46 border-collapse: collapse; 44 content: "** ";
47} 45}
48 46
49thead, th, tr, td { 47h3::before {
50 border: 1px solid hsl(0, 100%, 5%); 48 content: "*** ";
51 padding: 0.25rem;
52} 49}
53 50
54pre > code, time, code { 51h4::before {
55 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; 52 content: "**** ";
56 font-size: 1rem;
57} 53}
58 54
59pre { 55a,
60 padding: 0.5rem; 56a:visited {
61 margin: 0.5rem 0; 57 color: #689d6a;
62 border: 1px solid #0d0d0d; 58 text-decoration: underline;
63 overflow-x: auto;
64} 59}
65 60
66:not(pre)>code { 61a:hover {
67 background-color: hsl(240, 100%, 85%); 62 background-color: #689d6a;
68 border: 1px solid 63 color: #282828;
69 hsl(240, 100%, 85%);
70 border-radius: 0;
71 color: hsl(0, 0%, 5%);
72 padding: 0
73 0.25rem;
74} 64}
75 65
76aside { 66#preamble {
77 background-color: hsl(0, 0%, 85%); 67 padding: 1rem 0;
78 padding: 1rem;
79} 68}
80 69
81blockquote { 70#preamble nav a {
82 background-color: hsl(0, 0%, 85%); 71 margin-right: 0.5rem;
83 border-left: 5px solid hsl(240, 100%, 35%);
84 color: hsl(0, 0%, 5%);
85 padding: 1rem;
86 margin: 1rem 0;
87} 72}
88 73
89blockquote p { 74#postamble {
90 margin: 0; 75 border-top: 1px solid #000;
76 margin-top: 1rem;
91} 77}
92 78
93.footnote-definition { 79img {
94 display: flex; 80 width: 100%;
95 justify-content: flex-start;
96 align-items: top;
97 margin: 1rem 0;
98} 81}
99 82
100.footnote-definition sup { 83table {
101 font-size: inherit; 84 border-collapse: collapse;
102 top: 0; 85 color: #ebdbb2;
103 line-height: inherit; 86 border-color: #665c54;
104 padding-right: .5rem;
105} 87}
106 88
107.footnote-definition sup::after { 89thead,
108 content: "."; 90th,
91tr,
92td {
93 border: 1px solid #665c54;
94 padding: 0.25rem;
109} 95}
110 96
111.footnote-definition p { 97pre > code,
112 display: inline-block; 98time,
113 margin: 0; 99code {
100 font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
101 font-size: 1rem;
114} 102}
115 103
116@media (prefers-color-scheme: dark) { 104pre {
117 body { 105 margin: 0.5rem 0;
118 background-color: hsl(0, 0%, 5%); 106 overflow-x: auto;
119 color: hsl(0, 0%, 75%); 107}
120 }
121 108
122 nav, footer { 109pre::before,
123 border-color: hsl(0, 0%, 75%); 110pre::after {
124 } 111 background-color: #504945;
112 display: block;
113 white-space: pre;
114}
125 115
126 h1, h2, h3, h4, h5, h6 { 116pre::before {
127 color: hsl(0, 0%, 85%); 117 content: "#+BEGIN_SRC";
128 } 118}
129 119
130 a, a:visited { 120pre::after {
131 color: hsl(120, 100%, 45%); 121 content: "#+END_SRC";
132 } 122}
133 123
134 a:hover { 124:not(pre) > code {
135 background-color: hsl(120, 100%, 45%); 125 color: #d79921;
136 color: hsl(0, 0%, 5%); 126}
137 }
138 :not(pre)>code {
139 background-color: hsl(120, 100%, 35%);
140 border: 1px solid hsl(120, 100%, 35%);
141 border-radius: 0;
142 color: hsl(0, 0%, 5%);
143 padding: 0 0.25rem;
144 }
145 127
146 aside { 128aside {
147 background-color: hsl(0, 0%, 15%); 129 background-color: #504945;
148 padding: 1rem; 130 padding: 1rem;
149 } 131}
150 132
151 blockquote { 133blockquote {
152 background-color: hsl(0, 0%, 15%); 134 margin: 1rem 0;
153 border-left: 5px solid hsl(120, 100%, 25%); 135}
154 color: hsl(0, 0%, 85%);
155 }
156 136
157 pre { 137blockquote p {
158 border: 1px solid hsl(0, 0%, 35%); 138 margin: 0;
159 } 139}
160 140
161 table { 141blockquote::before,
162 color: hsl(0, 0%, 75%); 142blockquote::after {
163 border-color: hsl(0, 0%, 35%); 143 background-color: #504945;
164 } 144 display: block;
145 white-space: pre;
146}
165 147
166 thead, th, tr, td { 148blockquote::before {
167 border: 1px solid hsl(0, 0%, 35%); 149 content: "#+BEGIN_QUOTE";
168 } 150}
151
152blockquote::after {
153 content: "#+END_QUOTE";
154}
155
156.footnote-definition {
157 display: flex;
158 justify-content: flex-start;
159 align-items: top;
160 margin: 1rem 0;
161}
162
163.footnote-definition sup {
164 font-size: inherit;
165 top: 0;
166 line-height: inherit;
167 padding-right: 0.5rem;
168}
169
170.footnote-definition sup::after {
171 content: ".";
172}
173
174.footnote-definition p {
175 display: inline-block;
176 margin: 0;
169} 177}
static/styles.min.css added +1
@@ -0,0 +1 @@
1@media(prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{background-color:#282828;color:#ebdbb2;font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:1rem;line-height:1.5;max-width:45em;margin:0 auto;padding:0 1rem}nav,footer{border-color:#ebdbb2}h1{color:#458588}h2{color:#d79921}h3{color:#b16286}h4{color:#cc241d}h1::before{content:"* "}h2::before{content:"** "}h3::before{content:"*** "}h4::before{content:"**** "}a,a:visited{color:#689d6a;text-decoration:underline}a:hover{background-color:#689d6a;color:#282828}#preamble{padding:1rem 0}#preamble nav a{margin-right:.5rem}#postamble{border-top:1px solid #000;margin-top:1rem}img{width:100%}table{border-collapse:collapse;color:#ebdbb2;border-color:#665c54}thead,th,tr,td{border:1px solid #665c54;padding:.25rem}pre>code,time,code{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:1rem}pre{margin:.5rem 0;overflow-x:auto}pre::before,pre::after{background-color:#504945;display:block;white-space:pre}pre::before{content:"#+BEGIN_SRC"}pre::after{content:"#+END_SRC"}:not(pre)>code{color:#d79921}aside{background-color:#504945;padding:1rem}blockquote{margin:1rem 0}blockquote p{margin:0}blockquote::before,blockquote::after{background-color:#504945;display:block;white-space:pre}blockquote::before{content:"#+BEGIN_QUOTE"}blockquote::after{content:"#+END_QUOTE"}.footnote-definition{display:flex;justify-content:flex-start;align-items:top;margin:1rem 0}.footnote-definition sup{font-size:inherit;top:0;line-height:inherit;padding-right:.5rem}.footnote-definition sup::after{content:"."}.footnote-definition p{display:inline-block;margin:0}\ No newline at end of file