OILS / web / blog-v3.css View on Github | oilshell.org

187 lines, 155 significant
1/* oilshell/oil/web/blog-v3.css
2 *
3 * Blog style as of October 2020.
4 */
5
6@media screen and (min-width: 801px) {
7 body {
8 font-size: large;
9 }
10}
11
12#latch-status {
13 text-align: center;
14 color: grey;
15}
16
17h1 {
18 text-align: center;
19}
20
21.blog-post-title {
22 text-align: left;
23 font-size: 1.3em;
24}
25
26h2 {
27 /* x-large is too big; causes most titles to wrap badly (on Chrome/Firefox desktop). */
28 font-size: 1.2em;
29}
30
31h3 {
32 margin: 0em;
33 color: darkgreen;
34 font-size: 1.0em; /* Similar to default h4 */
35}
36
37/* Same as h4, but doesn't appear in TOC */
38h4 {
39 margin: 0em;
40 color: darkgreen;
41 font-size: 1.0em;
42}
43
44/* Exclude <pre><code>. Is there a better way to do this? */
45p code, div code, li code, h2 code, h3 code {
46 color: green;
47}
48
49blockquote {
50 background-color: papayawhip;
51 padding: 1.0em;
52}
53
54.footnotes {
55 font-size: small;
56}
57
58.date {
59 font-size: medium;
60 color: #555;
61 padding-left: 1em;
62 padding-right: 1em;
63 white-space: nowrap;
64}
65
66/* BEGIN blog/ */
67
68.sep-row {
69 vertical-align: center;
70}
71
72.post-list tr {
73 vertical-align: top;
74}
75.post-list a {
76 text-decoration: none;
77}
78.post-list a:hover {
79 text-decoration: underline;
80}
81/* Save space */
82.post-list .date {
83 padding-left: 0em;
84}
85
86/* Subtly stand out */
87.alt-month .date {
88 color: #000;
89}
90
91#all-posts tbody {
92 /* NOTE: This seems to make the table background solid like border-collapse:
93 * collapse, but doesn't mess with spacing.
94 */
95 display: block;
96}
97
98/* on blog/index.html */
99#blog-tag-list {
100 /* text-align: justify; */
101 color: gray;
102}
103
104.tag-count {
105 white-space: nowrap;
106}
107
108/* END blog/ */
109
110/* For post bodies: */
111
112.blog-tag {
113 font-family: sans-serif;
114}
115
116#post-footer {
117 background-color: #DEE;
118 padding: 0.5em;
119}
120
121.attention {
122 text-align: center;
123 background-color: #DEE;
124 padding: 0.5em;
125}
126
127/* anchors in cross-ref.html */
128a[name] {
129 color: green;
130}
131
132/* Links to cross-ref.html. I copied color values from code.css for visual
133harmony. */
134a[href^="/cross-ref.html"] {
135 color: #4070a0 /* Literal.String */
136}
137
138a[href^="/cross-ref.html"]:visited {
139 /* color: #bb60d5 /* Name.Variable */
140 color: purple;
141}
142
143/* Internal links. This is so that cross-ref.html is consistent. Technically
144we might want to exclude other internal links, but I don't have many of those
145right now. */
146a[href^="#"] {
147 color: #4070a0 /* Literal.String (light blue) */
148}
149
150a[href^="#"]:visited {
151 /* color: #bb60d5 /* Name.Variable (light purple) */
152 color: purple;
153}
154.book-text-link-td {
155 padding: 1em;
156 border-top: solid 1px #BBB;
157}
158
159.book-image-td {
160 width: 30%
161}
162
163.book-desc-td {
164 vertical-align: top;
165}
166
167/* For books and others */
168hr {
169 border: none;
170 height: 1px;
171 background-color: #BBB;
172}
173
174/* For blog release notes. Copied from web/changelog.css */
175.checksum {
176 font-family: monospace;
177}
178.issue-num {
179 font-family: monospace;
180 width: 3em;
181}
182.issue-title {
183 font-family: sans-serif;
184}
185.subject {
186 font-family: sans-serif;
187}