Index

joshstock.in / ee7e31f

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2522 Dec 2019 19:24ee7e31fUpdate blog formatting; move CSS substitution to new stylesheetJosh Stockin1173N

Blob @ joshstock.in / resources / templates / blog.css

text/css1460 bytesdownload raw
1@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,500&display=swap');
2@import url('https://fonts.googleapis.com/css?family=Fira+Mono&display=swap');
3body {
4 font-family: 'Fira Sans', sans-serif;
5 color: #252525;
6 padding: 0;
7 margin: 0;
8 box-sizing: border-box;
9}
10a {
11 color: #0077a4;
12}
13code {
14 font-family: 'Fira Mono', monospace;
15}
16.gist .gist-file {
17 overflow: auto;
18 margin: 0;
19}
20#copyright {
21 padding: 20px 0;
22}
23
24hr {
25 border-color: #eee;
26}
27
28.blog-center {
29 max-width: 800px;
30 padding: 2em 40px;
31 margin: 0 auto;
32 min-height: 100vh;
33 box-sizing: border-box;
34 font-size: 1.15em;
35 line-height: 1.5;
36}
37.blog-center h1 {
38 margin-top:0;
39}
40.blog-top-1 {
41 margin-bottom:0;
42}
43.blog-top-2 {
44 margin-top:0;
45}
46.blog-banner {
47 width:100%;
48 height: 250px;
49 background-size: cover;
50 background-position: center;
51 margin: 0;
52 user-select: none;
53}
54.blog-img-full {
55 max-width: 100%;
56 display: inline-block;
57 margin: 10px 0 10px 0;
58}
59.blog-img-right {
60 max-height: 500px;
61 max-width: 50%;
62 margin: 0 0 10px 20px;
63 float: right;
64}
65.blog-img-left {
66 max-height: 500px;
67 max-width: 50%;
68 margin: 0 20px 10px 0;
69 float: left;
70}
71.blog-listing {
72 padding-bottom: 60px;
73}
74.blog-listing:last-of-type {
75 padding-bottom: 20px;
76}
77.blog-listing code {
78 margin-right: 10px;
79}
80
81@media (max-width: 840px) {
82 .blog-banner {
83 height: 30vw;
84 }
85 .blog-img-right, .blog-img-left {
86 max-width: 50%;
87 }
88}
89@media (max-width: 500px) {
90 .blog-banner {
91 height: 40vw;
92 }
93}
94