source: public/css/custom.css@ b8c66ba

Last change on this file since b8c66ba was b8c66ba, checked in by Mikhail Kirillov <w96k@…>, on Sep 3, 2022 at 1:32:21 AM

Update blog pages

  • Property mode set to 100644
File size: 3.8 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 /* line-height: 1.2; */
15}
16
17body {
18 padding: 0.5em;
19 background: #f0f0f0;
20}
21
22article,
23#footnotes {
24 max-width: calc(60ch);
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 padding: 0;
46}
47
48.navbar {
49 display: flex;
50 flex-direction: row;
51 border: 0;
52 position: relative;
53 z-index: 999;
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}
68
69.navbar a:visited {
70 color: purple;
71}
72
73#youmu {
74 position: relative;
75 top: 1em;
76 margin-bottom: -0.5em;
77 max-width: 400px;
78 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
79}
80
81#preamble {
82 max-width: calc(60ch + 6em);
83 margin: var(--universal-margin);
84}
85
86#postamble {
87 margin: var(--universal-margin);
88 max-width: 48.25em;
89 display: flex;
90 flex-direction: row;
91 justify-content: space-between;
92 font-size: 10pt;
93}
94
95#postamble p {
96 margin-top: 0;
97}
98
99#meta p {
100 text-align: right;
101}
102
103@media screen and (max-width: 120ch) {
104 #table-of-contents {
105 display: none !important;
106 }
107}
108
109#table-of-contents {
110 display: block;
111 z-index: 1050;
112 position: fixed;
113 left: 70ch;
114 background: #fefefe;
115 box-shadow: 0 1px 0px rgba(0,0,0,.1);
116 border-radius: var(--universal-border-radius);
117 border: 1px solid #cfcfcf;
118 max-height: calc(100% - 3 * (var(--universal-margin) + 0.5em) - 5em);
119 overflow: auto;
120 max-width: 35ch;
121}
122
123#table-of-contents * {
124 padding: none;
125}
126
127#table-of-contents h2 {
128 font-size: 12pt;
129 margin: var(--universal-margin);
130 margin-top: calc(2 * var(--universal-margin));
131 font-weight: 400;
132 padding: .05em .5em;
133}
134
135#text-table-of-contents ul li {
136 font-size: 11pt;
137 width: 100%;
138}
139
140.licenses {
141 text-align: center;
142 margin-top: 0.3em !important;
143}
144
145.licenses a:not(:first-child) {
146 margin-left: 0.5em;
147}
148
149nav * {
150 padding: 0.1em 0;
151}
152
153.abstract {
154 background: var(--nav-hover-back-color);
155 border-radius: 0.05em;
156 margin: 0 -1em;
157 padding: 0.25em 1em;
158}
159
160pre {
161 border: 1px solid #ccc;
162 box-shadow: none;
163 padding: 8pt;
164 overflow: auto;
165 margin: var(--universal-margin);
166 border-radius: var(--universal-border-radius);
167}
168
169.figure {
170 text-align: center;
171}
172
173.org-svg {
174 width: auto;
175 max-width: 100%;
176}
177
178.asciicast {
179 text-align: center;
180}
181
182img {
183 max-width: 100%;
184 border-radius: var(--universal-border-radius);
185}
186
187video {
188 max-width: 100%;
189 max-height: 40em;
190 display: block;
191 margin: 0 auto;
192}
193
194#content {
195 margin: 0 !important;
196}
197
198audio {
199 display: block;
200 width: calc(100% - var(--universal-padding) * 2);
201 margin: 0 var(--universal-padding);
202}
203
204table tr td:nth-child(1) {
205 width: 20%;
206}
207
208a {
209 text-decoration: underline;
210}
211
212a:hover {
213 text-decoration: underline;
214 background: #ddd;
215}
216
217a:active {
218 color: purple;
219 background: #ccc;
220}
221
222.abstract {
223 background: rgba(0,0,0,.1);
224}
225
226/* Org-mode */
227.done {color: green;}
228.todo {color: red;}
Note: See TracBrowser for help on using the repository browser.