source: at-w96k/public/css/custom.css@ 1f1a1c8

Last change on this file since 1f1a1c8 was 1f1a1c8, checked in by Mikhail Kirillov <w96k@…>, on Jul 28, 2022 at 12:17:51 AM

Change toc padding

  • Property mode set to 100644
File size: 6.7 KB
Line 
1body {
2 padding: 0 1em 1em 1em;
3 background: #f0f0f0;
4}
5
6article,
7#footnotes {
8 max-width: calc(60ch + 4em);
9 margin: var(--universal-padding);
10 padding: 1em;
11 background: #fefefe;
12 box-shadow: 0 2px 2px rgba(0,0,0,.35);
13 position: relative;
14 border-radius: var(--universal-border-radius);
15 border: 1px solid #cfcfcf;
16}
17
18article p {
19 word-break: break-word;
20 hyphens: auto;
21 /* text-align: justify; */
22}
23
24.footdef {
25 margin-bottom: 0;
26}
27
28article h2 {
29 margin-top: 0;
30 padding: 0;
31}
32
33.navbar {
34 border: 0;
35 padding: 0 calc(var(--universal-padding) * 2.5);
36 position: relative;
37 top: 1em;
38 z-index: 999;
39}
40
41.navbar .button {
42 text-transform: none;
43 background: #fefefe;
44 box-shadow: 0 -3px 0 rgba(0,0,0,.15), 1px -1px 0px rgba(0,0,0,.15), -1px -1px 0px rgba(0,0,0,.15);
45 border-radius: 0.15em 0.15em 0 0;
46 text-decoration: underline;
47 color: var(--a-link-color);
48 padding: 4px 12px;
49 margin: 6px;
50}
51
52/* 16:9 */
53.video {
54 padding-top: 56.25%;
55 position: relative;
56 width: calc(100% - 1em);
57}
58
59iframe {
60 width: 100%;
61 min-height: 445px;
62 top: 0;
63 left: 0;
64 bottom: 0;
65 right: 0;
66}
67
68.cover {
69 margin: 0.5em 0;
70 border: 1px solid rgba(0,0,0,.3);
71 border-radius: 0.1em;
72}
73
74#youmu {
75 position: relative;
76 top: 1em;
77 margin-bottom: -0.5em;
78 max-width: 400px;
79 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
80}
81
82#preamble {
83 max-width: calc(60ch + 6em);
84 margin: var(--universal-margin);
85}
86
87#postamble {
88 margin: var(--universal-margin);
89 max-width: calc(60ch + 7em);
90}
91
92#meta p {
93 text-align: right;
94}
95
96#copyright p {
97
98}
99
100@media screen and (max-width: 768px) {
101 #postamble, #meta {
102 text-align: center;
103 }
104}
105
106hr {
107 background: rgba(0,0,0,.05) !important;
108 height: 0.5rem !important;
109 margin: 1px !important;
110}
111
112@media screen and (max-width: 120ch) {
113 #table-of-contents {
114 display: none !important;
115 }
116}
117
118#table-of-contents {
119 display: block;
120 z-index: 1050;
121 font-size: 12pt;
122 position: fixed;
123 left: 75ch;
124 top: calc(var(--universal-margin) + 2.6rem);
125 background: #fefefe;
126 line-height: 12pt;
127 box-shadow: 0 2px 2px rgba(0,0,0,.35);
128 max-height: calc(100% - 2 * (var(--universal-margin) + 0.5em) - 9em);
129 overflow: auto;
130 max-width: 30ch;
131 border-radius: var(--universal-border-radius);
132 border: 1px solid #cfcfcf;
133}
134
135#table-of-contents * {
136 padding: none;
137}
138
139#table-of-contents h2 {
140 font-size: 13pt;
141 margin: var(--universal-margin);
142 margin-top: calc(2 * var(--universal-margin));
143 font-weight: 400;
144 padding: .05em .5em;
145}
146
147#text-table-of-contents ul {
148 margin: 0 0 0 1em;
149}
150
151#text-table-of-contents > ul {
152 margin: 0 1em 0 2em;
153}
154
155#text-table-of-contents ul li {
156 font-size: 11pt;
157 width: 100%;
158}
159
160#table-of-contents #text-table-of-contents {
161 display: block;
162 text-align: left;
163 max-width: 35ch;
164}
165
166#table-of-contents li {
167 clear:both
168}
169
170.licenses {
171 text-align: center;
172 margin-top: 0.3em !important;
173}
174
175.licenses a:not(:first-child) {
176 margin-left: 0.5em;
177}
178
179.inline li {
180 display: inline-flex;
181}
182
183table {
184 overflow-x: hidden !important;
185}
186
187table th, table td {
188 padding: var(--universal-padding);
189}
190
191.org-left {
192 text-align: left !important;
193}
194
195dl {
196 padding: 0 calc(var(--universal-padding) + 1em);
197}
198
199nav * {
200 padding: 0.1em 0;
201}
202
203.abstract {
204 background: var(--nav-hover-back-color);
205 border-radius: 0.05em;
206 margin: 0 -1em;
207 padding: 0.25em 1em;
208}
209
210pre {
211 border: 1px solid #ccc;
212 box-shadow: none;
213 padding: 8pt;
214 overflow: auto;
215 margin: var(--universal-margin);
216 border-radius: var(--universal-border-radius);
217}
218
219figure {
220 text-align: center;
221}
222
223.org-svg {
224 width: auto;
225 max-width: 100%;
226}
227
228.asciicast {
229 text-align: center;
230}
231
232.iuse {
233
234}
235
236.iuse img {
237 height: 3em;
238}
239
240/* Style for WEBRING */
241.org-webring {
242 position: relative;
243}
244
245.org-webring .org-webring-articles {
246 display: flex;
247 flex-flow: column;
248 margin: 0 0.25em;
249}
250.org-webring .org-webring-article-title {
251 font-size: 1em;
252 padding: 0;
253 margin: 0 0.75em 0 0.75em;
254 border-radius: 0.25em;
255 max-height: 40ch;
256}
257.org-webring .org-webring-article {
258 position: relative;
259 flex-basis: 45%;
260 display: flex;
261 flex-direction: column;
262 margin: 0 0.5em;
263 transition: 0.3s;
264 opacity: 1;
265 overflow: hidden;
266 /* border-radius: 3px; */
267 /* border-left: 3px solid rgba(0,0,0,.4); */
268}
269
270.org-webring .org-webring-article:before {
271 content: "•";
272 position: absolute;
273 left: 0;
274 top: 0;
275 margin-left: -0.125em;
276 font-size: 1.1em;
277}
278
279.org-webring .org-webring-article:hover {
280 opacity: 1;
281}
282
283.org-webring .org-webring-article-pinned {
284 position: relative;
285 flex: 1 1 auto;
286 flex-basis: 100%;
287 display: flex;
288 flex-direction: column;
289 margin: 0 0.5rem;
290 padding: 0.5rem;
291 border: 0.15rem black solid;
292 border-color: black;
293 transition: 0.3s;
294 opacity: 1;
295}
296.org-webring .org-webring-article-pinned:hover {
297 opacity: 1;
298 background-color: #fefefe;
299}
300.org-webring .org-webring-article-pinned-symbol{
301 position: absolute;
302 top: 0.2rem;
303 right: 0.5rem;
304}
305.org-webring .org-webring-article-summary {
306 font-size: 0.8rem;
307 flex: 1 1 0;
308 display: none;
309}
310.org-webring .org-webring-attribution {
311 text-align: right;
312 font-size: 0.8rem;
313 padding-right: 0.5em;
314 color: #666;
315 display: none;
316}
317.org-webring .org-webring-article-date {
318 text-align: center;
319 display: none;
320}
321.org-webring .org-webring-article-source {
322 text-align: center;
323 display: none;
324}
325.org-webring .org-webring-timestamp {
326 color: #666;
327 display: none;
328}
329@media screen and (max-width: 600px) {
330 .org-webring .org-webring-articles {
331 display: flex;
332 flex-direction: column;
333 }
334}
335@media screen and (max-width: 600px) {
336 .org-webring .org-webring-article {
337 flex: 1 1 auto;
338 flex-basis: 100%;
339 display: flex;
340 flex-direction: column;
341 margin: 0 0.5rem;
342 margin-bottom: 0.5rem;
343 }
344 .org-webring .org-webring-article-pinned {
345 position: relative;
346 flex: 1 1 auto;
347 flex-basis: 100%;
348 display: flex;
349 flex-direction: column;
350 margin: 0 0.5rem;
351 margin-bottom: 0.5rem;
352 border: 0.15rem black solid;
353 border-color: black;
354 transition: 0.3s;
355 opacity: 1;
356 }
357}
358
359.org-webring > h4 {
360 display: none;
361}
362
363video {
364 max-width: 100%;
365 max-height: 40em;
366 display: block;
367 margin: 0 auto;
368}
369
370#content {
371 margin: 0 !important;
372}
373
374audio {
375 display: block;
376 width: calc(100% - var(--universal-padding) * 2);
377 margin: 0 var(--universal-padding);
378}
379
380ul ul {
381 margin: 0;
382}
383
384table tr td:nth-child(1) {
385 width: 20%;
386}
Note: See TracBrowser for help on using the repository browser.