forked from rails/weblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
325 lines (265 loc) · 4.77 KB
/
styles.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
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
html {
font-size: 62.5%;
}
body {
background-color: #ffffff;
color: #000000;
font-family: Georgia, serif;
font-size: 2rem;
line-height: 2.8rem;
margin: 0;
padding: 0;
}
a > img {
border: none;
}
#wrapper {
margin: 0 auto 4rem;
max-width: 740px;
}
nav {
margin: 4rem 2rem;
overflow: hidden;
}
#rails-logo {
display: block;
float: left;
}
nav ul {
float: right;
font-size: 1.4rem;
list-style: none;
margin: 2.3rem 0 0;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 0 0 3rem;
}
nav ul li a {
border-bottom: 0.2rem solid #cc0000;
color: #cc0000;
font-weight: bold;
padding-bottom: 0.1rem;
text-decoration: none;
}
nav ul li a:hover {
border-bottom: 0.2rem solid #000000;
color: #000000;
}
main {
margin: 0 2rem;
}
article {
margin: 2rem 0 4rem;
}
article header {
margin: 0 0 0.5rem 0;
}
article header h2 {
font-weight: normal;
font-size: 3.4rem;
line-height: 3.8rem;
margin-bottom: 0;
}
article header h2 a {
color: #000000;
text-decoration: none;
}
article header h2 a:hover {
text-decoration: underline;
}
article header p {
color: #777777;
font-size: 1.6rem;
margin: 0.5rem 0;
}
article header p a {
color: #cc0000;
text-decoration: none;
}
article header p a:hover {
text-decoration: underline;
}
article section {
font-size: 2rem;
margin: 1rem 0;
}
article section h2 {
font-size: 2.4rem;
margin: 2rem 0 1rem;
}
article section h3 {
font-size: 2rem;
font-weight: normal;
margin: 1rem 0 0.5rem 0;
}
article section p {
font-size: 2rem;
margin: 0 0 1.5rem 0;
}
article section ul, article section ol {
margin: 0.5em 0 1.5rem 0;
padding: 0 0 0 2.5rem;
}
article section li {
font-size: 2rem;
margin: 0 0 0.5rem 0;
}
article section a {
color: #cc0000;
text-decoration: none;
}
article section a:hover {
text-decoration: underline;
}
article section img {
max-width: 100%;
}
article section pre {
background-color: #eeeeee;
font-size: 1.5rem;
line-height: 2.4rem;
margin: 2rem 0;
overflow: auto;
padding: 1.5rem 2rem !important;
}
article section code, article section tt {
font-family: Courier New, Courier, mono;
}
article section p code, article section p tt {
color: #666666;
overflow: auto;
white-space: nowrap;
}
article section pre code {
color: #666666;
font-size: 1.5rem;
}
article section blockquote {
margin: 1rem 2rem;
}
article section twitterwidget + p,
article section iframe + p {
margin-top: 1.5rem;
}
blockquote.twitter-tweet {
display: inline-block;
padding: 16px;
margin: 0 0 1.5em 0;
max-width: 468px;
border: #ddd 1px solid;
border-top-color: #eee;
border-bottom-color: #bbb;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0,0,0,0.15);
font: bold 14px/18px Helvetica, Arial, sans-serif;
color: #000;
}
blockquote.twitter-tweet p {
font: normal 18px/24px Georgia, "Times New Roman", Palatino, serif;
margin: 0 5px 10px 0;
}
blockquote.twitter-tweet a[href^="https://twitter.com"] {
font-weight: normal;
color: #666;
font-size: 12px;
}
nav.pagination {
margin: 0 0 2em;
overflow: hidden;
}
nav.pagination a {
border-bottom: 0.2rem solid #cc0000;
color: #cc0000;
font-weight: bold;
padding-bottom: 0.1rem;
text-decoration: none;
}
nav.pagination a:hover {
border-bottom: 0.2rem solid #000000;
color: #000000;
}
nav.pagination .previous {
float: left;
}
nav.pagination .next {
float: right;
}
@media only screen and (max-width: 640px) {
nav {
margin: 2rem 2rem 3rem;
}
nav ul li {
margin: 0 2rem 0 0;
}
}
@media only screen and (max-width: 480px) {
nav {
margin: 2rem 1.5rem 1rem;
}
#rails-logo {
float: none;
}
nav ul {
float: none;
margin: 1.5rem 0 0.5rem;
}
nav ul li {
margin: 0 2rem 0 0;
}
main {
margin: 0 1.5rem;
}
article {
margin: 1.5rem 0 3rem;
}
article header h2 {
font-size: 2.2rem;
line-height: 2.6rem;
}
article section {
font-size: 1.2rem;
line-height: 1.6rem;
}
article section h2 {
font-size: 1.9rem;
line-height: 2.3rem;
}
article section h3 {
font-size: 1.6rem;
line-height: 2.1rem;
}
article header p {
font-size: 1.2rem;
line-height: 1.6rem;
margin: 0.25rem 0;
}
article section p {
font-size: 1.6rem;
line-height: 2.1rem;
margin: 0 0 1.5rem 0;
}
article section ul, article section ol {
margin: 0.5em 0 1.5rem 0;
padding: 0 0 0 2.1rem;
}
article section li {
font-size: 1.6rem;
line-height: 2.1rem;
}
article section blockquote {
margin: 0.5rem 1.5rem;
}
article section pre {
font-size: 1.2rem;
line-height: 1.8rem;
margin: 1rem 0;
overflow: auto;
padding: 0.7rem 1rem !important;
}
article section pre code {
font-size: 1rem;
line-height: 1.2rem;
}
}