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

Last change on this file since 7f82568 was 7f82568, checked in by Mikhail Kirillov <w96k@…>, on Oct 31, 2024 at 7:02:44 AM

Update style

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