source: public/css/custom.css@ 688d021

Last change on this file since 688d021 was 688d021, checked in by Mikhail Kirillov <w96k@…>, on Jan 19, 2020 at 5:04:45 PM

Fix source block font

  • Property mode set to 100644
File size: 2.9 KB
Line 
1body {
2 padding: 1em;
3}
4
5article,
6#footnotes {
7 max-width: calc(80ch + 4em);
8 border-radius: 0.em;
9 margin: 0 var(--universal-padding);
10 padding: 1em;
11 background: #fefefe;
12 box-shadow: 0 1px 3px rgba(0,0,0,.1);
13 position: relative;
14}
15
16.footdef {
17 margin-bottom: 0;
18}
19
20article h1:first-child,
21article h2:first-child,
22article h3:first-child,
23article h4:first-child,
24article h5:first-child,
25article h6:first-child {
26 margin-top: 0;
27 padding: 0;
28}
29
30.navbar {
31 background: #fefefe;
32 border: 0;
33}
34
35.navbar .button {
36 background: #fefefe;
37 text-transform: none;
38}
39
40/* 16:9 */
41.video {
42 padding-top: 56.25%;
43 position: relative;
44 width: calc(100% - 1em);
45}
46
47iframe {
48 width: 100%;
49 min-height: 445px;
50 top: 0;
51 left: 0;
52 bottom: 0;
53 right: 0;
54}
55
56.cover {
57 margin: 0.5em 0;
58 border: 1px solid rgba(0,0,0,.3);
59 border-radius: 0.1em;
60}
61
62#youmu {
63 position: relative;
64 top: 1em;
65 margin-bottom: -0.5em;
66 max-width: 400px;
67 filter: drop-shadow(0 12px 4px rgba(0,0,0,.25));
68}
69
70#preamble {
71 max-width: calc(80ch + 6em);
72 margin: var(--universal-margin);
73 box-shadow: 0 1px 3px rgba(0,0,0,.1);
74}
75
76#postamble {
77 margin: var(--universal-margin);
78 max-width: calc(80ch + 6em);
79}
80
81#meta {
82 text-align: right;
83}
84
85#copyright {
86 text-align: center;
87}
88
89@media screen and (max-width: 768px) {
90 #postamble, #meta {
91 text-align: center;
92 }
93}
94
95hr {
96 background: rgba(0,0,0,.05) !important;
97 height: 0.5rem !important;
98 margin: 1px !important;
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 font-size: 12pt;
111 position: fixed;
112 right: calc(var(--universal-margin));
113 top: calc(var(--universal-margin) + 0.5em);
114 background: #fefefe;
115 line-height: 12pt;
116 box-shadow: 0 1px 3px rgba(0,0,0,.1);
117 border: none;
118 max-height: calc(100% - 2 * (var(--universal-margin) + 0.5em) - 9.6em);
119 overflow: auto;
120}
121
122#table-of-contents * {
123 padding: none;
124}
125
126#table-of-contents h2 {
127 font-size: 13pt;
128 border: 0;
129 font-weight: 400;
130 padding: .05em .5em;
131}
132
133#text-table-of-contents ul {
134 margin: 0 0 0 1em;
135}
136
137#text-table-of-contents > ul {
138 margin: 0 1em 0 2em;
139}
140
141#text-table-of-contents ul li {
142 font-size: 11pt;
143 width: 100%;
144}
145
146#table-of-contents #text-table-of-contents {
147 display: block;
148 text-align: left;
149 max-width: 40ch;
150}
151
152#table-of-contents li {
153 clear:both
154}
155
156.licenses {
157 margin-top: 0.75em !important;
158}
159
160.licenses a:not(:first-child) {
161 margin-left: 0.5em;
162}
163
164.inline li {
165 display: inline-flex;
166}
167
168table th, table td {
169 padding: var(--universal-padding);
170}
171
172dl {
173 padding: 0 var(--universal-padding);
174}
175
176nav * {
177 padding: 0.1em 0;
178}
179
180.abstract {
181 font-style: italic;
182 background: var(--nav-hover-back-color);
183 border-radius: 0.05em;
184}
185
186.src span {
187 font-family: monospace;
188}
Note: See TracBrowser for help on using the repository browser.