/
blog.css
150 lines (120 loc) · 2.34 KB
/
blog.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#latch-status {
text-align: center;
color: grey;
}
h1 {
text-align: center;
}
h2 {
/* x-large is too big; causes most titles to wrap badly (on Chrome/Firefox desktop). */
font-size: 1.3em;
}
h3 {
margin: 0em;
color: darkgreen;
font-size: 1.0em; /* Similar to default h4 */
}
/* Make it centered and skinny for readability */
body {
margin: 0 auto;
font-size: large;
line-height: 1.4; /* http://bettermotherfuckingwebsite.com/ */
color: #444;
}
.skinny {
width: 30em;
}
.wider {
width: 45em;
}
/* Exclude <pre><code>. Is there a better way to do this? */
p code, div code, li code, h2 code, h3 code {
color: green;
}
blockquote {
background-color: papayawhip;
padding: 0.5em;
}
pre {
background-color: #EEE;
padding: 0.5em;
border: none;
font-size: medium;
}
.footnotes {
font-size: small;
}
.date {
font-size: medium;
color: #555;
padding-left: 1em;
padding-right: 1em;
white-space: nowrap;
}
#all-posts tbody {
/* NOTE: This seems to make the table background solid like border-collapse:
* collapse, but doesn't mess with spacing.
*/
display: block;
}
.alt-month {
background-color: #F0F0F0;
}
#post-footer {
background-color: #DEE;
padding: 0.5em;
}
.attention {
text-align: center;
background-color: #DEE;
padding: 0.5em;
}
/* anchors in cross-ref.html */
a[name] {
color: green;
}
/* Links to cross-ref.html. I copied color values from code.css for visual
harmony. */
a[href^="/cross-ref.html"] {
color: #4070a0 /* Literal.String */
}
a[href^="/cross-ref.html"]:visited {
/* color: #bb60d5 /* Name.Variable */
color: purple;
}
/* Internal links. This is so that cross-ref.html is consistent. Technically
we might want to exclude other internal links, but I don't have many of those
right now. */
a[href^="#"] {
color: #4070a0 /* Literal.String (light blue) */
}
a[href^="#"]:visited {
/* color: #bb60d5 /* Name.Variable (light purple) */
color: purple;
}
.blog-tag {
white-space: nowrap;
font-family: sans-serif;
}
.blog-tag a {
/* color: #c65d09; /* Generic.Prompt (orange-ish) */
}
.blog-tag a:visited {
color: purple;
}
.book-text-link-td {
padding: 1em;
border-top: solid 1px #BBB;
}
.book-image-td {
width: 30%
}
.book-desc-td {
vertical-align: top;
}
/* For books and others */
hr {
border: none;
height: 1px;
background-color: #BBB;
}