source: public/css/custom.css@ a8c08e1

Last change on this file since a8c08e1 was a8c08e1, checked in by Mikhail Kirillov <w96k@…>, on Oct 31, 2024 at 3:42:01 PM

Publish immigration blog post

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