OILS / web / manual.css View on Github | oilshell.org

95 lines, 78 significant
1/* Style for manual in doc/*.md */
2
3/* Indent relative to headings if the screen is wide enough */
4@media screen and (min-width: 801px) {
5 body {
6 font-size: large;
7 }
8 /* Indent most text. Bug fixes: only indent at top level. */
9 body > p, body > pre, body > ol, body > ul {
10 margin-left: 2em;
11 }
12}
13
14/* h1 is the title
15 * h2 is the first level shown in TOC
16 * h3 is the second and last level shown in TOC
17 */
18h1 {
19 font-size: 1.5em; /* reduce to what browsers apparently use for h2 */
20}
21
22h2 {
23 font-size: 1.2em; /* reduce to what browsers apparently use for h3 */
24
25 padding-top: 2em; /* separate sections */
26}
27
28h3 {
29 font-size: large;
30 margin-left: 2em;
31 color: darkblue; /* different than blog */
32
33 padding-top: 1em; /* separate sections */
34}
35
36hr {
37 border: none;
38 height: 1px;
39 background-color: #BBB;
40
41 /* align with surrounding text, add space */
42 margin-left: 2em;
43 margin-top: 2em;
44 margin-bottom: 2em;
45}
46
47/* inline code
48 *
49 * BUG FIX: Selector is 'p code' and not 'code' because markdown generates
50 * <pre><code> pairs from indented blocks for some reason, and they would
51 * interfere only in Chrome.
52 */
53p code, li code, h2 code, h3 code, div code {
54 background-color: #eee;
55 padding: 4px;
56}
57
58/* like web/toc.css */
59.doc-ref-header {
60 background-color: oldlace;
61 padding-left: 1em;
62 padding-right: 1em;
63 padding-top: 1px;
64 padding-bottom: 1px;
65
66 font-size: 1.2em;
67}
68
69/* remove underline for the header only */
70.doc-ref-header a:link {
71 text-decoration: none;
72}
73.doc-ref-header a:hover {
74 text-decoration: underline;
75}
76
77/* Obsolete: we should make something that doesn't require markdown
78
79.osh-topic {
80 border-left: solid;
81 border-color: brown;
82}
83
84.osh-ysh-topic {
85 border-left: solid;
86 border-right: solid;
87 border-color: darkgreen;
88}
89
90.ysh-topic {
91 border-right: solid;
92 border-color: darkcyan;
93}
94
95*/