source: at-w96k/public/css/custom.css@ adfd46a

Last change on this file since adfd46a was adfd46a, checked in by w96k <w96k@…>, on Nov 13, 2022 at 1:22:37 AM

Fix Menu and Footer

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