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

Last change on this file since c721284 was c721284, checked in by Mikhail Kirillov <w96k@…>, on Aug 29, 2022 at 1:34:37 AM

Summary: Dont load music

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