source: public/css/custom.css@ 3c72e49

Last change on this file since 3c72e49 was d1d01c6, checked in by w96k <w96k@…>, on Apr 2, 2023 at 3:20:19 PM

Update blog

  • Property mode set to 100644
File size: 4.5 KB
Line 
1:root {
2 --universal-margin: 0.5rem;
3 --universal-padding: 0.5rem;
4 --universal-border-radius: 0.2rem;
5 --a-link-color: blue;
6 --a-visited-color: #551A8B;
7}
8
9:link { color: #0000EE; }
10:visited { color: #551A8B; }
11
12html {
13 font-family: sans-serif;
14}
15
16body {
17 padding: 0.5em;
18 background: #f0f0f0;
19}
20
21article,
22#footnotes,
23#content > :not(article):not(#table-of-contents) {
24 max-width: calc(60ch);
25 margin: var(--universal-padding);
26 padding: calc(var(--universal-padding) * 2);
27 background: #fefefe;
28 box-shadow: 0 1px 0px rgba(0,0,0,.1);
29 position: relative;
30 border-radius: var(--universal-border-radius);
31 border: 1px solid #cfcfcf;
32}
33
34article p {
35 word-break: break-word;
36 hyphens: auto;
37}
38
39.footdef {
40 margin-bottom: 0;
41}
42
43article h2 {
44 margin-top: 0;
45 padding: 0;
46}
47
48.navbar {
49 display: flex;
50 flex-direction: row;
51 border: 0;
52 position: relative;
53 z-index: 999;
54
55 /* top: calc(var(--universal-padding) - 2px); */
56}
57
58.navbar a {
59 text-transform: none;
60 background: #fefefe;
61 border: 1px solid rgba(0,0,0,.25);
62 box-shadow: 0 1px 0px rgba(0,0,0,.1);
63 border-radius: var(--universal-border-radius);
64 text-decoration: underline;
65 color: var(--a-link-color);
66 padding: 4px 12px;
67 margin-right: 6px;
68 flex-shrink: 0;
69}
70
71.navbar a:visited {
72 color: purple;
73}
74
75#youmu {
76 position: relative;
77 top: 1em;
78 margin-bottom: -0.5em;
79 max-width: 400px;
80 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
81}
82
83#preamble, #postamble {
84 overflow-x: scroll;
85}
86
87#preamble {
88 max-width: calc(60ch + 6em);
89 margin: var(--universal-margin);
90}
91
92#postamble {
93 margin: var(--universal-margin);
94 max-width: calc(76ch);
95 display: flex;
96 flex-direction: row;
97 justify-content: space-between;
98 font-size: 10pt;
99}
100
101#postamble p {
102 margin-top: 0;
103}
104
105#postamble ul {
106 display: flex;
107 list-style: square;
108 margin: 0;
109 padding-left: 0;
110}
111
112@media only screen and (max-width: 500px) {
113 #postamble ul {
114 flex-direction: column;
115 }
116
117 #postamble ul li:first-child {
118 list-style: square !important;
119 }
120}
121
122#postamble ul li {
123 margin: 0 0.75em;
124 margin: 0 1ch;
125}
126
127#postamble ul li:first-child {
128 list-style: none;
129}
130
131#meta p {
132 text-align: right;
133}
134
135@media screen and (max-width: 120ch) {
136 #table-of-contents {
137 display: none !important;
138 }
139}
140
141#table-of-contents {
142 display: block;
143 z-index: 1050;
144 position: fixed;
145 left: 70ch;
146 background: #fefefe;
147 box-shadow: 0 1px 0px rgba(0,0,0,.1);
148 border-radius: var(--universal-border-radius);
149 border: 1px solid #cfcfcf;
150 max-height: calc(100% - 3 * (var(--universal-margin) + 0.5em) - 5em);
151 overflow: auto;
152 max-width: 35ch;
153 padding-right: 2em;
154}
155
156#table-of-contents * {
157 padding: none;
158}
159
160#table-of-contents h2 {
161 font-size: 12pt;
162 margin: var(--universal-margin);
163 margin-top: calc(2 * var(--universal-margin));
164 font-weight: 400;
165 padding: .05em .5em;
166}
167
168#text-table-of-contents ul li {
169 font-size: 11pt;
170 width: 100%;
171}
172
173.licenses {
174 text-align: center;
175 margin-top: 0.3em !important;
176}
177
178.licenses a:not(:first-child) {
179 margin-left: 0.5em;
180}
181
182nav * {
183 padding: 0.1em 0;
184}
185
186.abstract {
187 background: var(--nav-hover-back-color);
188 border-radius: 0.05em;
189 margin: 0 -1em;
190 padding: 0.25em 1em;
191}
192
193pre {
194 border: 1px solid #ccc;
195 box-shadow: none;
196 padding: 8pt;
197 overflow: auto;
198 margin: var(--universal-margin);
199 border-radius: var(--universal-border-radius);
200}
201
202.figure {
203 text-align: center;
204}
205
206.org-svg {
207 width: auto;
208 max-width: 100%;
209}
210
211.asciicast {
212 text-align: center;
213}
214
215img {
216 max-width: 100%;
217 border-radius: var(--universal-border-radius);
218}
219
220video {
221 max-width: 100%;
222 max-height: 40em;
223 display: block;
224 margin: 0 auto;
225}
226
227#content {
228 margin: 0 !important;
229}
230
231audio {
232 display: block;
233 width: calc(100% - var(--universal-padding) * 2);
234 margin: 0 var(--universal-padding);
235}
236
237table tr td:nth-child(1) {
238 width: 20%;
239}
240
241a {
242 text-decoration: underline;
243}
244
245a:hover {
246 text-decoration: underline;
247 background: #ddd;
248}
249
250a:active {
251 color: purple;
252 background: #ccc;
253}
254
255.abstract {
256 background: rgba(0,0,0,.1);
257}
258
259/* Org-mode */
260.done {color: green;}
261.todo {color: red;}
262
263dt {
264 font-weight: bold;
265}
266
267dt::before {
268 content: "• ";
269}
270
271.org-dl dd, article p {
272 margin-top: var(--universal-margin);
273 margin-bottom: var(--universal-margin);
274}
275
276sup::before { content: "[" }
277sup::after { content: "]" }
278.footpara { display: inline }
Note: See TracBrowser for help on using the repository browser.