-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.css
More file actions
277 lines (233 loc) · 4.61 KB
/
post.css
File metadata and controls
277 lines (233 loc) · 4.61 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
/* For pages containing posts
----------------------------------------------- */
/* Headers
----------------------------------------------- */
h1, h2, h3, h4, h5 {
margin: 1em 0;
}
h2 {
font-size: 180%;
}
h3 {
font-size: 160%;
}
h4 {
font-size: 140%;
}
h5 {
font-size: 120%;
}
h1, h3.post-title {
font-size: 200%;
}
h2.date-header {
padding-top: 1ex;
font-size: 90%;
}
/* Tooltips
----------------------------------------------- */
a.tooltip {
position: relative;
z-index: 24;
width: 100%;
}
a.tooltip:hover {
z-index: 25;
text-decoration: none;
}
a.tooltip div {
display: none;
}
a.tooltip img {
display: inline;
}
a.tooltip:hover div { /* the span will display just on :hover state */
display: block;
position: absolute;
padding: 1ex;
top: 0;
left: 2em;
z-index: 25;
margin: 0 2em 0 0;
border: 1px solid #0cf;
background-color: #cff;
color: #000;
text-align: center;
word-wrap: normal;
border-radius: 5px;
}
/* Ads
----------------------------------------------- */
.inline-ad {
text-align: center;
margin: 10px 0;
}
/* Post layout
----------------------------------------------- */
.post {
margin: 0 0 2ex 0;
}
h3.post-title, .comments h4 {
margin: .75em 0 0;
}
.post-header {
margin: 0 0 1.5em;
line-height: 1.6;
}
.post-footer {
margin: 10px 2px 0;
padding: 5px 10px;
line-height: 1.6;
font-size: 90%;
}
/* Related posts widget
----------------------------------------------- */
ul.rpw {
list-style-type: none;
margin: 0;
padding: 0;
}
ul.rpw li {
margin: 0 0 4px 4px;
clear: both;
}
ul.rpw strong {
font-weight: normal;
}
ul.rpw a {
text-decoration: none;
outline: none;
}
/** image **/
ul.rpw img {
padding: 0 2ex 1ex 0;
float: left;
}
/* Posting style
----------------------------------------------- */
.post-body p, dl {
margin: 1em 0;
}
.post-body p.grey, .post-body ul li.grey, .post-body span.grey {
color: grey;
}
.post-body ul, ol {
margin: 0.5em 0px;
padding: 0px 2.5em;
}
.post-body ul, ol {
margin: 0.5em 0px;
padding: 0px 2.5em;
}
.post-body dd {
padding: 0 0 1ex 2.5em;
}
/* Images
----------------------------------------------- */
.post-body img, .post-body object, .post-body embed, .post-body iframe.fright {
float: right;
padding: 0 0 1ex 2ex;
}
.post-body img.fleft, .post-body object.fleft, .post-body iframe.fleft {
float: left;
padding: 0 2ex 1ex 0;
}
/* Frames
----------------------------------------------- */
.post-body iframe.hidden {
position: absolute;
top: -4000px;
}
/* Inline images
----------------------------------------------- */
.post-body p img, .post-body td img,
.post-body p object, .post-body p embed, .post-body td object {
float: none;
vertical-align: middle;
padding: 0;
}
/* Block embeds for scripts
----------------------------------------------- */
.post-body textarea {
width: 100%;
height: 10ex;
}
.post-body iframe.conf {
width: 100%;
height: 600px;
}
.post-body iframe.idoc {
width: 100%;
border: 1px solid;
}
/* Code highlight
----------------------------------------------- */
.post-body code, .post-body pre {
font: normal 120% monospace;
color: blue;
}
.post-body pre {
margin: 0 0 1em;
padding: 0.5em 0;
background-color: #eee;
border: 1px dashed lightGrey;
}
/* Epigraph
----------------------------------------------- */
.post-body p.epi {
padding-left: 25%;
}
/* Accurate tables
----------------------------------------------- */
.post-body table, .post-body tr, .post-body th, .post-body td {
padding: 1ex;
border-collapse: collapse;
border: solid;
border-width: 1px;
}
/* Transparent tables
----------------------------------------------- */
.post-body table.nob, .post-body table.nob tr, .post-body table.nob th, .post-body table.nob td,
.post-body tr.nob, .post-body td.nob {
border: none;
}
/* Github gists
----------------------------------------------- */
.gist { font-size: 10px; }
.gist table, .gist td, .gist tr { border: none; }
/* Boxed tables
----------------------------------------------- */
.post-body table.boxed {
border: dashed;
border-collapse: separate;
border-spacing: 1ex;
}
.post-body table.boxed td, .post-body table.boxed th {
padding: 1ex;
border-width: .5ex;
text-align: center;
font-weight: normal;
border-style: outset;
}
/* Formulae
----------------------------------------------- */
.formula {
position: relative;
text-align: center;
padding-right: 8em;
}
.formula span {
text-align: right;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
/* Radic
----------------------------------------------- */
span.over {
text-decoration: overline;
}
.post-body cite {
font-size: 80%;
}