source: public/css/custom.css@ 7922fc9

Last change on this file since 7922fc9 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
RevLine 
[7123feb]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
[632f9bc]16body {
[8ff16b8]17 background: #f0f0f0;
[632f9bc]18}
19
[688d021]20article,
[eb2627e]21#footnotes,
22#content > :not(article):not(#table-of-contents) {
[1d577b1]23 max-width: calc(60ch);
[c43e516]24 margin: var(--universal-padding);
[1d577b1]25 padding: calc(var(--universal-padding) * 2);
[632f9bc]26 background: #fefefe;
[7123feb]27 box-shadow: 0 1px 0px rgba(0,0,0,.1);
[632f9bc]28 position: relative;
[35e1834]29 border-radius: var(--universal-border-radius);
[af5a879]30 border: 1px solid #cfcfcf;
[35e1834]31}
32
33article p {
34 word-break: break-word;
35 hyphens: auto;
[632f9bc]36}
37
[688d021]38.footdef {
39 margin-bottom: 0;
40}
41
[c43e516]42article h2 {
[632f9bc]43 margin-top: 0;
44 padding: 0;
45}
46
47.navbar {
[779efbc]48 display: flex;
49 flex-direction: row;
[632f9bc]50 border: 0;
[8ff16b8]51 position: relative;
52 z-index: 999;
[83930f1]53
[7123feb]54 /* top: calc(var(--universal-padding) - 2px); */
[632f9bc]55}
56
[1d577b1]57.navbar a {
[632f9bc]58 text-transform: none;
[8ff16b8]59 background: #fefefe;
[7123feb]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);
[8ff16b8]63 text-decoration: underline;
64 color: var(--a-link-color);
65 padding: 4px 12px;
[7123feb]66 margin-right: 6px;
[83930f1]67 flex-shrink: 0;
[7123feb]68}
69
[b8c66ba]70.navbar a:visited {
[29d69bd]71 color: purple;
[632f9bc]72}
73
74#youmu {
75 position: relative;
76 top: 1em;
[98fbfa4]77 margin-bottom: -0.5em;
78 max-width: 400px;
79 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
[632f9bc]80}
81
82#preamble {
[ba2af33]83 max-width: calc(60ch + 6em);
[632f9bc]84 margin: var(--universal-margin);
85}
86
87#postamble {
88 margin: var(--universal-margin);
[eb2627e]89 max-width: calc(76ch);
[7123feb]90 display: flex;
91 flex-direction: row;
92 justify-content: space-between;
[29d69bd]93 font-size: 10pt;
[632f9bc]94}
95
[29d69bd]96#postamble p {
97 margin-top: 0;
[d829433]98}
99
[adfd46a]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 {
[a9a951e]113 list-style: square !important;
[adfd46a]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
[29d69bd]126#meta p {
127 text-align: right;
[632f9bc]128}
129
[0985524]130@media screen and (max-width: 120ch) {
131 #table-of-contents {
132 display: none !important;
133 }
134}
135
[632f9bc]136#table-of-contents {
[0985524]137 display: block;
[632f9bc]138 z-index: 1050;
139 position: fixed;
[1d577b1]140 left: 70ch;
[632f9bc]141 background: #fefefe;
[1d577b1]142 box-shadow: 0 1px 0px rgba(0,0,0,.1);
[35e1834]143 border-radius: var(--universal-border-radius);
[7e72119]144 border: 1px solid #cfcfcf;
[b8c66ba]145 max-height: calc(100% - 3 * (var(--universal-margin) + 0.5em) - 5em);
[1d577b1]146 overflow: auto;
147 max-width: 35ch;
[eb2627e]148 padding-right: 2em;
[632f9bc]149}
150
151#table-of-contents * {
152 padding: none;
153}
154
155#table-of-contents h2 {
[1d577b1]156 font-size: 12pt;
[35e1834]157 margin: var(--universal-margin);
158 margin-top: calc(2 * var(--universal-margin));
[632f9bc]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 {
[ba2af33]169 text-align: center;
[35e1834]170 margin-top: 0.3em !important;
[632f9bc]171}
172
173.licenses a:not(:first-child) {
174 margin-left: 0.5em;
175}
176
[5acf481]177nav * {
178 padding: 0.1em 0;
179}
[688d021]180
181.abstract {
182 background: var(--nav-hover-back-color);
183 border-radius: 0.05em;
[35e1834]184 margin: 0 -1em;
185 padding: 0.25em 1em;
[688d021]186}
187
[8fe2763]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);
[688d021]195}
[c43e516]196
[c721284]197.figure {
[c43e516]198 text-align: center;
199}
200
201.org-svg {
202 width: auto;
[54096f7]203 max-width: 100%;
[c43e516]204}
[863f5d5]205
206.asciicast {
207 text-align: center;
208}
[9742500]209
[7123feb]210img {
211 max-width: 100%;
212 border-radius: var(--universal-border-radius);
[9742500]213}
[487838e]214
[0ebefc8]215video {
216 max-width: 100%;
[35e1834]217 max-height: 40em;
218 display: block;
219 margin: 0 auto;
[0ebefc8]220}
[03ce98c]221
222#content {
223 margin: 0 !important;
224}
[7bef5b1]225
226audio {
227 display: block;
228 width: calc(100% - var(--universal-padding) * 2);
229 margin: 0 var(--universal-padding);
230}
[8ff16b8]231
232table tr td:nth-child(1) {
233 width: 20%;
234}
[7123feb]235
236a {
237 text-decoration: underline;
238}
239
240a:hover {
241 text-decoration: underline;
242 background: #ddd;
243}
[29d69bd]244
[b8c66ba]245a:active {
246 color: purple;
247 background: #ccc;
248}
249
[29d69bd]250.abstract {
251 background: rgba(0,0,0,.1);
252}
[b8c66ba]253
254/* Org-mode */
255.done {color: green;}
256.todo {color: red;}
[7e3d2c9]257
258dt {
259 font-weight: bold;
260}
261
262dt::before {
263 content: "• ";
264}
[d1d01c6]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.