source: public/css/custom.css@ 0e7db91

Last change on this file since 0e7db91 was 0e7db91, checked in by Mikhail Kirillov <w96k@…>, on Jul 17, 2024 at 6:49:01 PM

Update website

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