about summary refs log tree commit diff stats
path: root/app/assets/stylesheets/main/entries.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/main/entries.scss')
-rw-r--r--app/assets/stylesheets/main/entries.scss429
1 files changed, 409 insertions, 20 deletions
diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index 4d884fa..b9e3e0b 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss
@@ -2,29 +2,117 @@
2// They will automatically be included in application.css. 2// They will automatically be included in application.css.
3// You can use Sass (SCSS) here: http://sass-lang.com/ 3// You can use Sass (SCSS) here: http://sass-lang.com/
4 4
5@import url('https://fonts.googleapis.com/css?family=Slabo+27px'); 5.blog-post {
6@import url('https://fonts.googleapis.com/css?family=Roboto:400,700'); 6 line-height: 1.5em;
7 margin: 0 1em 1em;
8 clear: both;
7 9
8#blog-post { 10 .blog-title {
9 font-size: 16px; 11 flex-grow: 1;
10 line-height: 24px;
11 margin: 0 3em;
12 12
13 h2 { 13 h2 {
14 font-size: 45px; 14 margin-left: 10px;
15 line-height: 48px; 15 margin-top: 0;
16 margin-top: .5em; 16 margin-bottom: 0;
17 } 17 margin-right: 10px;
18 color: #59770e;
19 border-bottom: 1px dotted #CCCCCC;
20 padding-bottom: 3px;
21 font-family: "Trebuchet MS", sans-serif;
22
23 a {
24 text-decoration: none;
25 color: #59770e;
18 26
19 h3 { 27 &:visited {
20 font-size: 37px; 28 color: #59770e;
21 line-height: 42px; 29 }
30
31 &:hover {
32 text-decoration: underline;
33 }
34 }
35 }
22 } 36 }
23 37
24 h2, h3 { 38 header {
25 font-family: 'Slabo 27px', serif; 39 display: flex;
26 margin-bottom: 0; 40
27 font-weight: normal; 41 .post-calendar {
42 width: 45px;
43 height: 49px;
44 flex-shrink: 0;
45
46 &.post-date-1 {
47 background: image-url("date-bg-1.gif") no-repeat;
48 }
49
50 &.post-date-2 {
51 background: image-url("date-bg-2.gif") no-repeat;
52 }
53
54 &.post-date-3 {
55 background: image-url("date-bg-3.gif") no-repeat;
56 }
57
58 &.post-date-4 {
59 background: image-url("date-bg-4.gif") no-repeat;
60 }
61
62 .post-month {
63 font-size: 11px;
64 color: white;
65 text-align: center;
66 display: block;
67 line-height: 11px;
68 padding-top: 2px;
69 margin-left: -3px;
70 }
71
72 .post-day {
73 font-size: 18px;
74 color: #999999;
75 text-align: center;
76 display: block;
77 line-height: 18px;
78 padding-top: 7px;
79 margin-left: -3px;
80 }
81 }
82
83 .post-author {
84 background: image-url("Hatkirby.ico") no-repeat;
85 padding-left: 20px;
86 margin-left: 10px;
87 float: left;
88 font-size: 95%;
89 font: 75%/150% sans-serif;
90 color: #999;
91 }
92
93 .post-tag-3 {
94 background: image-url("tag.png") no-repeat;
95 padding-left: 20px;
96 margin: 0 0 0 3em;
97 float: left;
98 font-size: 95%;
99 color: #999999;
100 font: 75%/150% sans-serif;
101 display: block;
102
103 li {
104 display: inline-block;
105 margin-right: 0.5em;
106
107 a {
108 text-decoration: none;
109
110 &:hover {
111 text-decoration: underline;
112 }
113 }
114 }
115 }
28 } 116 }
29} 117}
30 118
@@ -65,7 +153,6 @@
65 153
66 .update-posted { 154 .update-posted {
67 display: block; 155 display: block;
68 font-style: italic;
69 background-color: #EAADEA; 156 background-color: #EAADEA;
70 font-size: 16px; 157 font-size: 16px;
71 margin: .5em -20px; 158 margin: .5em -20px;
@@ -73,6 +160,16 @@
73 border-width: 1px 0 1px 0; 160 border-width: 1px 0 1px 0;
74 border-style: solid; 161 border-style: solid;
75 border-color: #DB70DB; 162 border-color: #DB70DB;
163
164 time {
165 font-style: italic;
166 }
167
168 .update-edit-link {
169 float: right;
170 color: blue;
171 font-weight: normal;
172 }
76 } 173 }
77 } 174 }
78} 175}
@@ -80,7 +177,6 @@
80.entry-content { 177.entry-content {
81 hyphens: auto; 178 hyphens: auto;
82 word-wrap: break-word; 179 word-wrap: break-word;
83 text-align: justify;
84 font-family: 'Roboto', sans-serif; 180 font-family: 'Roboto', sans-serif;
85 181
86 a { 182 a {
@@ -105,9 +201,18 @@
105 201
106 img { 202 img {
107 max-width: 100%; 203 max-width: 100%;
204 height: auto;
108 box-sizing: border-box; 205 box-sizing: border-box;
109 } 206 }
110 207
208 video {
209 max-width: 100%;
210 }
211
212 iframe {
213 max-width: 100%;
214 }
215
111 figure { 216 figure {
112 background-color: #eee; 217 background-color: #eee;
113 border: 1px solid #bbb; 218 border: 1px solid #bbb;
@@ -115,6 +220,10 @@
115 font-size: 0.75em; 220 font-size: 0.75em;
116 line-height: 24px; 221 line-height: 24px;
117 222
223 @media only screen and (max-width: 767px) {
224 margin: 0;
225 }
226
118 img { 227 img {
119 display: block; 228 display: block;
120 border: 1px solid #bbb; 229 border: 1px solid #bbb;
@@ -126,4 +235,284 @@
126 margin: 0.25em; 235 margin: 0.25em;
127 } 236 }
128 } 237 }
238
239 .footnotes {
240 font-size: small;
241 }
242}
243
244#blog-archive {
245 margin-left: 1em;
246
247 h2, h3 {
248 font-family: "Trebuchet MS", sans-serif;
249 }
250}
251
252.archive-link {
253 margin-left: 1em;
254
255 a {
256 text-decoration: none;
257 font-weight: bold;
258
259 &, &:visited {
260 color: #ee2c2c;
261 }
262
263 &:hover {
264 text-decoration: underline;
265 color: #9ea1ad;
266 }
267 }
268
269 small {
270 margin-left: 1.5em;
271 }
272}
273
274.blog-comment {
275 margin: 0 1em;
276
277 .comment-avatar {
278 float: right;
279 margin-top: 1em;
280 }
281
282 .comment-reply-to {
283 float: right;
284 margin-right: 0.5em;
285
286 img {
287 display: block;
288 }
289 }
290}
291
292#comment-form {
293 #comment-reply-msg {
294 display: none;
295 margin-top: 1em;
296 margin-bottom: 0;
297 margin-left: 0;
298
299 .comment-reply-author {
300 font-weight: bold;
301 }
302 }
303
304 fieldset {
305 border: 0;
306
307 &#comment-body-field {
308 label {
309 display: none;
310 }
311
312 textarea {
313 margin-top: 1em;
314 width: 99%;
315 height: 6em;
316 resize: none;
317 }
318 }
319
320 &#comment-other-fields {
321 display: table;
322 padding: 1em;
323 width: 75%;
324 margin: 0 auto;
325
326 .comment-field {
327 display: table-row;
328
329 .comment-field-label {
330 text-align: right;
331 display: table-cell;
332 padding-right: 1em;
333 padding-bottom: 1em;
334 width: 50%;
335
336 label:after {
337 content: ":";
338 }
339 }
340
341 .field_with_errors {
342 label {
343 color: red;
344 }
345 }
346
347 .comment-field-input {
348 display: table-cell;
349 width: 50%;
350 }
351 }
352 }
353 }
354}
355
356.pagination {
357 text-align: center;
358 padding: 0.3em;
359 cursor: default;
360 margin-bottom: 1em;
361
362 a, span, em {
363 padding: 0.2em 0.5em;
364 }
365
366 .disabled {
367 color: #aaaaaa;
368 }
369
370 .current {
371 font-style: normal;
372 font-weight: bold;
373 color: #ff0084;
374 }
375
376 a {
377 border: 1px solid #dddddd;
378 color: #0063dc;
379 text-decoration: none;
380
381 &:hover, &:focus {
382 border-color: #003366;
383 background: #0063dc;
384 color: white;
385 }
386 }
387
388 .page_info {
389 color: #aaaaaa;
390 padding-top: 0.8em;
391 }
392
393 .previous_page, .next_page {
394 border-width: 2px;
395 }
396
397 .previous_page {
398 margin-right: 1em;
399 }
400
401 .next_page {
402 margin-left: 1em;
403 }
404}
405
406#tag-cloud {
407 width: 75%;
408 margin: 0 auto;
409 text-align: center;
410
411 a {
412 display: inline-block;
413 margin-right: 0.5em;
414 text-decoration: none;
415
416 &:hover {
417 text-decoration: underline;
418 }
419
420 &:visited {
421 color: blue;
422 }
423 }
424
425 .xs {
426 font-size: 0.75em;
427 }
428
429 .m {
430 font-size: 2em;
431 }
432
433 .l {
434 font-size: 3em;
435 }
436
437 .xl {
438 font-size: 3em;
439 font-weight: bold;
440 }
441}
442
443.post-vote {
444 float: right;
445 position: relative;
446 right: 0.5em;
447
448 a {
449 text-decoration: none;
450 }
451}
452
453.back-post, .next-post {
454 margin-left: 1em;
455 margin-bottom: 1em;
456 margin-right: 1em;
457
458 a, a:visited {
459 color: #555d66;
460 text-decoration: none;
461 font-size: .75em;
462 }
463
464 a:hover {
465 text-decoration: underline;
466 }
467}
468
469.back-post {
470 float: left;
471}
472
473.next-post {
474 float: right;
475}
476
477#streams-index {
478 width: 100%;
479 border-collapse: collapse;
480
481 #streams-index-header-row {
482 th {
483 background-color: #bdbdbd;
484 padding-left: 0.5em;
485 border-top: 1px solid #848484;
486 border-bottom: 1px solid #848484;
487 }
488 }
489
490 th {
491 padding-bottom: 0.5em;
492 padding-top: 0.5em;
493 text-align: left;
494 }
495
496 td {
497 padding-top: 1em;
498 padding-left: 0.5em;
499
500 time {
501 font-size: .75em;
502 }
503
504 .stream-link {
505 font-weight: bold;
506 text-decoration: none;
507
508 &, &:visited {
509 color: #ee2c2c;
510 }
511
512 &:hover {
513 text-decoration: underline;
514 color: #9ea1ad;
515 }
516 }
517 }
129} 518}