source: public/css/custom.css@ 7dd59e3

Last change on this file since 7dd59e3 was 7922fc9, checked in by Mikhail Kirillov <w96k@…>, on Oct 30, 2024 at 7:28:16 PM

Delete unused css rule

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