write_down 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/Gemfile +1 -1
  4. data/README.md +2 -2
  5. data/bin/write_down +42 -1
  6. data/lib/write_down/article.rb +64 -0
  7. data/lib/write_down/configuration.rb +6 -0
  8. data/lib/write_down/converter.rb +8 -0
  9. data/lib/write_down/page.rb +6 -0
  10. data/lib/write_down/series.rb +10 -0
  11. data/lib/write_down/site.rb +10 -0
  12. data/lib/write_down/template.rb +20 -0
  13. data/lib/write_down/version.rb +1 -1
  14. data/lib/write_down.rb +31 -1
  15. data/template/emacs/404.html +157 -0
  16. data/template/emacs/CHANGELOG.md +133 -0
  17. data/template/emacs/CONTRIBUTING.md +154 -0
  18. data/template/emacs/LICENSE.md +19 -0
  19. data/template/emacs/README.md +1 -0
  20. data/template/emacs/apple-touch-icon-precomposed.png +0 -0
  21. data/template/emacs/crossdomain.xml +15 -0
  22. data/template/emacs/css/custom.css +18 -0
  23. data/template/emacs/css/main.css +304 -0
  24. data/template/emacs/css/normalize.css +527 -0
  25. data/template/emacs/favicon.ico +0 -0
  26. data/template/emacs/humans.txt +15 -0
  27. data/template/emacs/img/.gitignore +0 -0
  28. data/template/emacs/index.html +62 -0
  29. data/template/emacs/js/main.js +1 -0
  30. data/template/emacs/js/plugins.js +24 -0
  31. data/template/emacs/js/vendor/jquery-1.10.2.min.js +6 -0
  32. data/template/emacs/js/vendor/modernizr-2.6.2.min.js +4 -0
  33. data/template/emacs/post.html +80 -0
  34. data/template/emacs/robots.txt +3 -0
  35. data/template/simple/404.html +157 -0
  36. data/template/simple/CNAME +1 -0
  37. data/template/simple/README.md +1 -0
  38. data/template/simple/_disqus.mustache +19 -0
  39. data/template/simple/_footer.mustache +28 -0
  40. data/template/simple/_header.mustache +38 -0
  41. data/template/simple/apple-touch-icon-precomposed.png +0 -0
  42. data/template/simple/crossdomain.xml +15 -0
  43. data/template/simple/css/layout.css +72 -0
  44. data/template/simple/css/main.css +304 -0
  45. data/template/simple/css/normalize.css +527 -0
  46. data/template/simple/favicon.ico +0 -0
  47. data/template/simple/humans.txt +15 -0
  48. data/template/simple/img/.gitignore +0 -0
  49. data/template/simple/index.html +12 -0
  50. data/template/simple/js/main.js +1 -0
  51. data/template/simple/js/plugins.js +24 -0
  52. data/template/simple/js/vendor/jquery-1.10.2.min.js +6 -0
  53. data/template/simple/js/vendor/modernizr-2.6.2.min.js +4 -0
  54. data/template/simple/post.html +9 -0
  55. data/template/simple/robots.txt +3 -0
  56. data/theme/ghost/assets/css/screen.css +911 -0
  57. data/theme/ghost/index.html +75 -0
  58. data/theme/ghost/post.html +112 -0
  59. data/theme/html5-boilerplate/.gitattributes +1 -0
  60. data/theme/html5-boilerplate/.gitignore +2 -0
  61. data/theme/html5-boilerplate/.htaccess +551 -0
  62. data/theme/html5-boilerplate/404.html +157 -0
  63. data/theme/html5-boilerplate/CHANGELOG.md +133 -0
  64. data/theme/html5-boilerplate/CONTRIBUTING.md +154 -0
  65. data/theme/html5-boilerplate/LICENSE.md +19 -0
  66. data/theme/html5-boilerplate/README.md +61 -0
  67. data/theme/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
  68. data/theme/html5-boilerplate/crossdomain.xml +15 -0
  69. data/theme/html5-boilerplate/css/main.css +297 -0
  70. data/theme/html5-boilerplate/css/normalize.css +527 -0
  71. data/theme/html5-boilerplate/favicon.ico +0 -0
  72. data/theme/html5-boilerplate/humans.txt +15 -0
  73. data/theme/html5-boilerplate/img/.gitignore +0 -0
  74. data/theme/html5-boilerplate/index.html +91 -0
  75. data/theme/html5-boilerplate/js/main.js +1 -0
  76. data/theme/html5-boilerplate/js/plugins.js +24 -0
  77. data/theme/html5-boilerplate/js/vendor/jquery-1.10.2.min.js +6 -0
  78. data/theme/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js +4 -0
  79. data/theme/html5-boilerplate/post.html +70 -0
  80. data/theme/html5-boilerplate/robots.txt +3 -0
  81. data/write_down.gemspec +3 -0
  82. metadata +125 -11
  83. data/.rvmrc +0 -62
@@ -0,0 +1,911 @@
1
+ /* ==========================================================================
2
+ Table of Contents
3
+ ========================================================================== */
4
+
5
+ /*
6
+ 0. Includes
7
+ 1. General
8
+ 2. Something else
9
+ */
10
+
11
+ /* ==========================================================================
12
+ 0. Includes - Ground zero
13
+ ========================================================================== */
14
+
15
+ @import url(normalize.css);
16
+
17
+
18
+ /* ==========================================================================
19
+ 1. Icons - Sets up the icon font and respective classes
20
+ ========================================================================== */
21
+
22
+ /* Import the font file with the icons in it */
23
+ @font-face {
24
+ font-family: 'icons';
25
+ src:url('../fonts/icons.eot');
26
+ src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
27
+ url('../fonts/icons.woff') format('woff'),
28
+ url('../fonts/icons.ttf') format('truetype'),
29
+ url('../fonts/icons.svg#icons') format('svg');
30
+ font-weight: normal;
31
+ font-style: normal;
32
+ }
33
+
34
+ /* Apply these base styles to all icons */
35
+ .icon-ghost, .icon-feed, .icon-twitter, .icon-google-plus, .icon-facebook {
36
+ font-family: 'icons';
37
+ speak: none;
38
+ font-style: normal;
39
+ font-weight: normal;
40
+ font-variant: normal;
41
+ text-transform: none;
42
+ line-height: 1;
43
+ -webkit-font-smoothing: antialiased;
44
+ text-decoration: none;
45
+ }
46
+
47
+ /* Each icon is created by inserting the corret character into the
48
+ content of the :before pseudo element. Like a boss. */
49
+ .icon-ghost:before {
50
+ content: "\e000";
51
+ }
52
+ .icon-feed:before {
53
+ content: "\e001";
54
+ }
55
+ .icon-twitter:before {
56
+ content: "\e002";
57
+ font-size: 1.1em;
58
+ }
59
+ .icon-google-plus:before {
60
+ content: "\e003";
61
+ }
62
+ .icon-facebook:before {
63
+ content: "\e004";
64
+ }
65
+
66
+
67
+ /* ==========================================================================
68
+ 1. General - Setting up some base styles
69
+ ========================================================================== */
70
+
71
+ html {
72
+ height: 100%;
73
+ max-height: 100%;
74
+ font-size: 62.5%;
75
+ }
76
+
77
+ body {
78
+ height: 100%;
79
+ max-height: 100%;
80
+ font-family: 'Droid Serif', serif;
81
+ font-size: 2.0rem;
82
+ line-height: 1.6em;
83
+ color: #3A4145;
84
+ }
85
+
86
+ ::-moz-selection {
87
+ color: #222;
88
+ background: #D6EDFF;
89
+ text-shadow: none;
90
+ }
91
+
92
+ ::selection {
93
+ color: #222;
94
+ background: #D6EDFF;
95
+ text-shadow: none;
96
+ }
97
+
98
+ h1, h2, h3,
99
+ h4, h5, h6 {
100
+ text-rendering: optimizeLegibility;
101
+ line-height: 1;
102
+ margin-top: 0;
103
+ font-family: 'Open Sans', sans-serif;
104
+ }
105
+
106
+ h1 {
107
+ font-size: 5rem;
108
+ line-height: 1.2em;
109
+ letter-spacing: -2px;
110
+ text-indent: -3px;
111
+ }
112
+
113
+ h2 {
114
+ font-size: 4rem;
115
+ line-height: 1.2em;
116
+ letter-spacing: -1px;
117
+ text-indent: -2px;
118
+ }
119
+
120
+ h3 {
121
+ font-size: 3.5rem;
122
+ }
123
+
124
+ h4 {
125
+ font-size: 3rem;
126
+ }
127
+
128
+ h5 {
129
+ font-size: 2.5rem;
130
+ }
131
+
132
+ h6 {
133
+ font-size: 2rem;
134
+ }
135
+
136
+ a {
137
+ color: #4a4a4a;
138
+ transition: color ease 0.3s;
139
+ }
140
+
141
+ a:hover {
142
+ color: #57A3E8;
143
+ }
144
+
145
+ h1 a, h2 a, h3 a,
146
+ h4 a, h5 a, h6 a {
147
+ color: #50585D;
148
+ }
149
+
150
+
151
+ p, ul, ol {
152
+ margin: 1.6em 0;
153
+ }
154
+
155
+ ol ol, ul ul,
156
+ ul ol, ol ul {
157
+ margin: 0.4em 0;
158
+ }
159
+
160
+ hr {
161
+ display: block;
162
+ height: 1px;
163
+ border: 0;
164
+ border-top: 1px solid #efefef;
165
+ margin: 3.2em 0;
166
+ padding: 0;
167
+ }
168
+
169
+ blockquote {
170
+ -moz-box-sizing: border-box;
171
+ box-sizing: border-box;
172
+ margin: 1.6em 0 1.6em -2.2em;
173
+ padding: 0 0 0 1.6em;
174
+ border-left: #4a4a4a 0.4em solid;
175
+ }
176
+
177
+ blockquote p {
178
+ margin: 0.8em 0;
179
+ font-style: italic;
180
+ }
181
+
182
+ blockquote small {
183
+ display: inline-block;
184
+ margin: 0.8em 0 0.8em 1.5em;;
185
+ font-size:0.9em;
186
+ color: #ccc;
187
+ }
188
+
189
+ blockquote small:before { content: '\2014 \00A0'; }
190
+
191
+ blockquote cite {
192
+ font-weight:bold;
193
+ }
194
+
195
+ blockquote cite a { font-weight: normal; }
196
+
197
+
198
+ dl {
199
+ margin: 1.6em 0;
200
+ }
201
+
202
+ dl dt {
203
+ float: left;
204
+ width: 180px;
205
+ overflow: hidden;
206
+ clear: left;
207
+ text-align: right;
208
+ text-overflow: ellipsis;
209
+ white-space: nowrap;
210
+ font-weight: bold;
211
+ margin-bottom: 1em
212
+ }
213
+
214
+ dl dd {
215
+ margin-left: 200px;
216
+ margin-bottom: 1em
217
+ }
218
+
219
+ mark {
220
+ background-color: #ffc336;
221
+ }
222
+
223
+ code, tt {
224
+ padding: 1px 3px;
225
+ font-family: Inconsolata, monospace, sans-serif;
226
+ font-size: 0.85em;
227
+ white-space: pre;
228
+ border: 1px solid #E3EDF3;
229
+ background: #F7FAFB;
230
+ border-radius: 2px;
231
+ }
232
+
233
+ pre {
234
+ -moz-box-sizing: border-box;
235
+ box-sizing: border-box;
236
+ margin: 1.6em 0;
237
+ border: 1px solid #E3EDF3;
238
+ width: 100%;
239
+ padding: 10px;
240
+ font-family: Inconsolata, monospace, sans-serif;
241
+ font-size: 0.9em;
242
+ white-space: pre;
243
+ overflow: auto;
244
+ background: #F7FAFB;
245
+ border-radius: 3px;
246
+ }
247
+
248
+ pre code, tt {
249
+ font-size: inherit;
250
+ white-space: -moz-pre-wrap;
251
+ white-space: pre-wrap;
252
+ background: transparent;
253
+ border: none;
254
+ padding: 0;
255
+ }
256
+
257
+ kbd {
258
+ display: inline-block;
259
+ margin-bottom: 0.4em;
260
+ padding: 1px 8px;
261
+ border: #ccc 1px solid;
262
+ color: #666;
263
+ text-shadow: #fff 0 1px 0;
264
+ font-size: 0.9em;
265
+ font-weight: bold;
266
+ background: #f4f4f4;
267
+ border-radius: 4px;
268
+ box-shadow:
269
+ 0 1px 0 rgba(0, 0, 0, 0.2),
270
+ 0 1px 0 0 #fff inset;
271
+ }
272
+
273
+ table {
274
+ -moz-box-sizing: border-box;
275
+ box-sizing: border-box;
276
+ margin: 1.6em 0;
277
+ width:100%;
278
+ max-width: 100%;
279
+ background-color: transparent;
280
+ }
281
+
282
+ table th,
283
+ table td {
284
+ padding: 8px;
285
+ line-height: 20px;
286
+ text-align: left;
287
+ vertical-align: top;
288
+ border-top: 1px solid #efefef;
289
+ }
290
+
291
+ table th { color: #000; }
292
+
293
+ table caption + thead tr:first-child th,
294
+ table caption + thead tr:first-child td,
295
+ table colgroup + thead tr:first-child th,
296
+ table colgroup + thead tr:first-child td,
297
+ table thead:first-child tr:first-child th,
298
+ table thead:first-child tr:first-child td {
299
+ border-top: 0;
300
+ }
301
+
302
+ table tbody + tbody { border-top: 2px solid #efefef; }
303
+
304
+ table table table { background-color: #fff; }
305
+
306
+ table tbody > tr:nth-child(odd) > td,
307
+ table tbody > tr:nth-child(odd) > th {
308
+ background-color: #f6f6f6;
309
+ }
310
+
311
+ table.plain {
312
+ tbody > tr:nth-child(odd) > td,
313
+ tbody > tr:nth-child(odd) > th {
314
+ background: transparent;
315
+ }
316
+ }
317
+
318
+
319
+ /* ==========================================================================
320
+ 1. Utilities - These things get used a lot
321
+ ========================================================================== */
322
+
323
+ /* Hides shit */
324
+ .hidden {
325
+ text-indent: -9999px;
326
+ visibility: hidden;
327
+ display: none;
328
+ }
329
+
330
+ /* Creates a responsive wrapper that makes our content scale nicely */
331
+ .inner {
332
+ position: relative;
333
+ width: 80%;
334
+ max-width: 700px;
335
+ margin: 0 auto;
336
+ }
337
+
338
+ /* Centres vertically yo. (IE8+) */
339
+ .vertical {
340
+ display: table-cell;
341
+ vertical-align: middle;
342
+ }
343
+
344
+
345
+ /* ==========================================================================
346
+ 1. General
347
+ ========================================================================== */
348
+
349
+ /* Big cover image on the home page */
350
+ #site-head {
351
+ position: relative;
352
+ display: table;
353
+ width: 100%;
354
+ height: 60%;
355
+ margin-bottom: 5rem;
356
+ text-align: center;
357
+ color: #fff;
358
+ background: #303538 no-repeat center center;
359
+ background-size: cover;
360
+ }
361
+
362
+ /* Yo-logo. Yolo-go. Upload one in ghost/settings/ */
363
+ #blog-logo img {
364
+ display: block;
365
+ max-height: 100px;
366
+ width: auto;
367
+ margin: 0 auto;
368
+ line-height: 0;
369
+ }
370
+
371
+ #back {
372
+ color: rgba(0,0,0,0.2);
373
+ position: fixed;
374
+ top: 8px;
375
+ left: 8px;
376
+ padding: 6px;
377
+ font-size: 16px;
378
+ }
379
+
380
+ /* The details of your blog. Defined in ghost/settings/ */
381
+ .blog-title {
382
+ margin: 10px 0 10px 0;
383
+ font-size: 5rem;
384
+ letter-spacing: -1px;
385
+ }
386
+
387
+ .blog-description {
388
+ margin: 0;
389
+ font-size: 1.8rem;
390
+ line-height: 1.5em;
391
+ font-weight: 300;
392
+ font-family: 'Droid Serif', serif;
393
+ letter-spacing: 0;
394
+ }
395
+
396
+ /* Every post, on every page, gets this style on its <article> tag */
397
+ .post {
398
+ position: relative;
399
+ width:80%;
400
+ max-width: 700px;
401
+ margin: 4rem auto;
402
+ padding-bottom: 4rem;
403
+ border-bottom: #EBF2F6 1px solid;
404
+ word-break: break-word;
405
+ hyphens: auto;
406
+ }
407
+
408
+ /* Add a little circle in the middle of the border-bottom on our .post
409
+ just for the lolz and stylepoints. */
410
+ .post:after {
411
+ display: block;
412
+ content: "";
413
+ width: 7px;
414
+ height: 7px;
415
+ border: #E7EEF2 1px solid;
416
+ position: absolute;
417
+ bottom: -5px;
418
+ left: 50%;
419
+ margin-left: -5px;
420
+ background: #fff;
421
+ -webkit-border-radius: 100%;
422
+ -moz-border-radius: 100%;
423
+ border-radius: 100%;
424
+ box-shadow: #fff 0 0 0 5px;
425
+ }
426
+
427
+ .post-title {
428
+ margin:0;
429
+ }
430
+
431
+ .post-title a {
432
+ text-decoration: none;
433
+ }
434
+
435
+ .post-excerpt p {
436
+ margin: 1.6rem 0 0 0;
437
+ font-size: 0.9em;
438
+ line-height: 1.6em;
439
+ }
440
+
441
+ .post-meta {
442
+ display: inline-block;
443
+ margin: 0 0 5px 0;
444
+ font-family: 'Open Sans', sans-serif;
445
+ font-size: 1.5rem;
446
+ color: #9EABB3;
447
+ }
448
+
449
+ .post-meta a {
450
+ color: #9EABB3;
451
+ text-decoration: none;
452
+ }
453
+
454
+ .post-meta a:hover {
455
+ text-decoration: underline;
456
+ }
457
+
458
+ .user-meta {
459
+ position: relative;
460
+ padding: 0.3rem 40px 0 100px;
461
+ min-height: 77px;
462
+ }
463
+
464
+ .user-image {
465
+ position: absolute;
466
+ top: 0;
467
+ left: 0;
468
+ }
469
+
470
+ .user-name {
471
+ display: block;
472
+ font-weight: bold;
473
+ }
474
+
475
+ .user-bio {
476
+ display: block;
477
+ max-width: 440px;
478
+ font-size: 1.4rem;
479
+ line-height: 1.5em;
480
+ }
481
+
482
+ .publish-meta {
483
+ position: absolute;
484
+ top: 0;
485
+ right: 0;
486
+ padding: 4.3rem 0 4rem 0;
487
+ text-align: right;
488
+ }
489
+
490
+ .publish-heading {
491
+ display: block;
492
+ font-weight: bold;
493
+ }
494
+
495
+ .publish-date {
496
+ display: block;
497
+ font-size: 1.4rem;
498
+ line-height: 1.5em;
499
+ }
500
+
501
+ /* ==========================================================================
502
+ 1. Single Post - When you click on an individual post
503
+ ========================================================================== */
504
+
505
+ /* Tweak the .post wrapper style */
506
+ .post-template .post {
507
+ margin-top: 0;
508
+ border-bottom: none;
509
+ padding-bottom: 0;
510
+ }
511
+
512
+ /* Kill that stylish little circle that was on the border, too */
513
+ .post-template .post:after {
514
+ display: none;
515
+ }
516
+
517
+ /* Insert some mad padding up in the header for better spacing */
518
+ .post-template .post-header {
519
+ padding: 60px 0;
520
+ }
521
+
522
+ /* Keep large images within the bounds of the post-width */
523
+ .post-content img {
524
+ display: block;
525
+ max-width: 100%;
526
+ margin: 0 auto;
527
+ }
528
+
529
+ /* The author credit area after the post */
530
+ .post-footer {
531
+ position: relative;
532
+ margin: 4rem 0 0 0;
533
+ padding: 4rem 0 0 0;
534
+ border-top: #EBF2F6 1px solid;
535
+ }
536
+
537
+ .post-footer h4 {
538
+ font-size: 1.8rem;
539
+ margin: 0;
540
+ }
541
+
542
+ .post-footer p {
543
+ margin: 1rem 0;
544
+ font-size: 1.4rem;
545
+ line-height: 1.6em;
546
+ }
547
+
548
+ /* Create some space to the right for the share links */
549
+ .post-footer .author {
550
+ margin-right: 180px;
551
+ }
552
+
553
+ /* Drop the share links in the space to the right.
554
+ Doing it like this means it's easier for the author bio
555
+ to be flexible at smaller screen sizes while the share
556
+ links remain at a fixed width the whole time */
557
+ .post-footer .share {
558
+ position: absolute;
559
+ top: 4rem;
560
+ right: 0;
561
+ width: 140px;
562
+ }
563
+
564
+ .post-footer .share a {
565
+ font-size: 1.8rem;
566
+ display: inline-block;
567
+ margin: 1.4rem 1.6rem 1.6rem 0;
568
+ color: #BBC7CC;
569
+ }
570
+
571
+ .post-footer .share a:hover {
572
+ color: #50585D;
573
+ }
574
+
575
+
576
+ /* ==========================================================================
577
+ 1. Pagination
578
+ ========================================================================== */
579
+
580
+ /* The main wrapper for our pagination links */
581
+ .pagination {
582
+ position: relative;
583
+ width: 80%;
584
+ max-width: 700px;
585
+ margin: 4rem auto;
586
+ font-family: 'Open Sans', sans-serif;
587
+ font-size: 1.3rem;
588
+ color: #9EABB3;
589
+ text-align: center;
590
+ }
591
+
592
+ .pagination a {
593
+ color: #9EABB3;
594
+ }
595
+
596
+ /* Push the previous/next links out to the left/right */
597
+ .older-posts,
598
+ .newer-posts {
599
+ position: absolute;
600
+ display: inline-block;
601
+ padding: 0 15px;
602
+ border: #EBF2F6 2px solid;
603
+ text-decoration: none;
604
+ border-radius: 30px;
605
+ transition: border ease 0.3s;
606
+ }
607
+
608
+ .older-posts {
609
+ right: 0;
610
+ }
611
+
612
+ .page-number {
613
+ display: inline-block;
614
+ padding: 2px 0;
615
+ }
616
+
617
+ .newer-posts {
618
+ left: 0;
619
+ }
620
+
621
+ .older-posts:hover,
622
+ .newer-posts:hover {
623
+ border-color: #9EABB3;
624
+ }
625
+
626
+
627
+ /* ==========================================================================
628
+ 1. Footer - The bottom of every page
629
+ ========================================================================== */
630
+
631
+ .site-footer {
632
+ position: relative;
633
+ margin: 8rem 0 0 0;
634
+ padding: 4rem 0;
635
+ border-top: #EBF2F6 1px solid;
636
+ font-family: 'Open Sans', sans-serif;
637
+ font-size: 1.3rem;
638
+ line-height: 1.7em;
639
+ color: #BBC7CC;
640
+ text-align: center;
641
+ background: #F7FAFB;
642
+ }
643
+
644
+ .site-footer a {
645
+ color: #BBC7CC;
646
+ text-decoration: underline;
647
+ }
648
+
649
+ .site-footer a:hover {
650
+ color: #50585D;
651
+ }
652
+
653
+ .poweredby .icon-ghost {
654
+ font-weight: 700;
655
+ text-decoration: none;
656
+ }
657
+
658
+ .poweredby .icon-ghost:hover {
659
+ text-decoration: none;
660
+ }
661
+
662
+ .poweredby .icon-ghost:before {
663
+ font-size: 1rem;
664
+ margin-right: 0.2em;
665
+ }
666
+
667
+ /* The subscribe icon on the footer */
668
+ .subscribe {
669
+ width: 28px;
670
+ height: 28px;
671
+ position: absolute;
672
+ top: -14px;
673
+ left: 50%;
674
+ margin-left: -15px;
675
+ border: #EBF2F6 1px solid;
676
+ text-align: center;
677
+ line-height: 2.4rem;
678
+ border-radius: 50px;
679
+ background: #fff;
680
+ transition: box-shadow 0.5s;
681
+ }
682
+
683
+ /* The RSS icon, inserted via icon font */
684
+ .subscribe:before {
685
+ color: #D2DEE3;
686
+ font-size: 10px;
687
+ position: absolute;
688
+ top: 2px;
689
+ left: 9px;
690
+ font-weight: bold;
691
+ transition: color 0.5s ease;
692
+ }
693
+
694
+ /* Add a box shadow to on hover */
695
+ .subscribe:hover {
696
+ box-shadow: rgba(0,0,0,0.05) 0 0 0 3px;
697
+ transition: box-shadow 0.25s;
698
+ }
699
+
700
+ .subscribe:hover:before {
701
+ color: #50585D;
702
+ }
703
+
704
+ /* CSS tooltip saying "Subscribe!" - initially hidden */
705
+ .tooltip {
706
+ opacity:0;
707
+ display: inline-block;
708
+ padding: 4px 8px 5px 8px;
709
+ position:absolute;
710
+ top: -23px;
711
+ left: -23px;
712
+ color: rgba(255,255,255,0.9);
713
+ font-size: 1.1rem;
714
+ font-weight: bold;
715
+ line-height: 1em;
716
+ text-align: center;
717
+ background: #50585D;
718
+ border-radius:20px;
719
+ box-shadow: 0 1px 4px rgba(0,0,0,0.1);
720
+ transition: opacity 0.3s ease, top 0.3s ease;
721
+ }
722
+
723
+ /* The little chiclet arrow under the tooltip, pointing down */
724
+ .tooltip:after {
725
+ content:"";
726
+ border-width:5px 5px 0 5px;
727
+ border-style:solid;
728
+ border-color: #50585D transparent;
729
+ display:block;
730
+ position:absolute;
731
+ bottom:-4px;
732
+ left:50%;
733
+ margin-left:-5px;
734
+ z-index: 220;
735
+ width:0;
736
+ }
737
+
738
+ /* On hover, show the tooltip! */
739
+ .subscribe:hover .tooltip {
740
+ opacity: 1;
741
+ top: -33px;
742
+ }
743
+
744
+
745
+ /* ==========================================================================
746
+ 1. Media Queries - Smaller than 900px
747
+ ========================================================================== */
748
+
749
+ @media only screen and (max-width: 900px) {
750
+
751
+ blockquote {
752
+ margin-left: 0;
753
+ }
754
+
755
+ #site-head {
756
+ -webkit-box-sizing: border-box;
757
+ -moz-box-sizing: border-box;
758
+ box-sizing: border-box;
759
+ height: auto;
760
+ min-height: 240px;
761
+ padding: 15% 0;
762
+ }
763
+
764
+ .blog-title {
765
+ font-size: 4rem;
766
+ letter-spacing: -1px;
767
+ }
768
+
769
+ .blog-description {
770
+ font-size: 1.7rem;
771
+ line-height: 1.5em;
772
+ }
773
+
774
+ .post {
775
+ font-size: 0.9em;
776
+ line-height: 1.6em;
777
+ }
778
+
779
+ .post-template .post {
780
+ padding-bottom: 1rem;
781
+ }
782
+
783
+ .post-template .post-header {
784
+ padding: 40px 0;
785
+ }
786
+
787
+ h1 {
788
+ font-size: 4.8rem;
789
+ text-indent: -2px;
790
+ }
791
+
792
+ h2 {
793
+ font-size: 3.8rem;
794
+ }
795
+
796
+ h3 {
797
+ font-size: 3.3rem;
798
+ }
799
+
800
+ h4 {
801
+ font-size: 2.8rem;
802
+ }
803
+
804
+ }
805
+
806
+ /* ==========================================================================
807
+ 1. Media Queries - Smaller than 500px
808
+ ========================================================================== */
809
+
810
+
811
+ @media only screen and (max-width: 500px) {
812
+
813
+ #blog-logo img {
814
+ max-height: 80px;
815
+ }
816
+
817
+ .inner,
818
+ .pagination {
819
+ width: auto;
820
+ margin-left: 16px;
821
+ margin-right: 16px;
822
+ }
823
+
824
+ .post {
825
+ width:auto;
826
+ margin-left: 16px;
827
+ margin-right: 16px;
828
+ font-size: 0.8em;
829
+ line-height: 1.6em;
830
+ }
831
+
832
+ #site-head {
833
+ padding: 10% 0;
834
+ }
835
+
836
+ .blog-title {
837
+ font-size: 3rem;
838
+ }
839
+
840
+ .blog-description {
841
+ font-size: 1.5rem;
842
+ }
843
+
844
+
845
+ h1, h2 {
846
+ font-size: 3rem;
847
+ line-height: 1.1em;
848
+ letter-spacing: -1px;
849
+ }
850
+
851
+ h3 {
852
+ font-size: 2.8rem;
853
+ }
854
+
855
+ h4 {
856
+ font-size: 2.3rem;
857
+ }
858
+
859
+ .post-template .post {
860
+ padding-bottom: 0;
861
+ }
862
+
863
+ .post-template .post-header {
864
+ padding: 30px 0;
865
+ }
866
+
867
+ .post-meta {
868
+ font-size: 1.3rem;
869
+ }
870
+
871
+ .post-footer {
872
+ padding: 4rem 0;
873
+ text-align: center;
874
+ }
875
+
876
+ .post-footer .author {
877
+ margin: 0 0 2rem 0;
878
+ padding: 0 0 1.6rem 0;
879
+ border-bottom: #EBF2F6 1px dashed;
880
+ }
881
+
882
+ .post-footer .share {
883
+ position: static;
884
+ width: auto;
885
+ }
886
+
887
+ .post-footer .share a {
888
+ margin: 1.4rem 0.8rem 0 0.8rem;
889
+ }
890
+
891
+ .older-posts,
892
+ .newer-posts {
893
+ position: static;
894
+ margin: 10px 0;
895
+ }
896
+
897
+ .page-number {
898
+ display: block;
899
+ }
900
+
901
+ .site-footer {
902
+ margin-top: 6rem;
903
+ font-size: 1.1rem;
904
+ }
905
+
906
+ }
907
+
908
+ /* ==========================================================================
909
+ End of file. Media queries should be the last thing here. Do not add stuff
910
+ below this point, or it will probably fuck everything up.
911
+ ========================================================================== */