Index

joshstock.in / 3a3d956

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2729 Dec 2019 17:033a3d956Update blog formattingJosh Stockin1227N

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

text/css1731 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 margin-bottom: 1.5em;
20}
21.gist table {
22 table-layout: fixed;
23}
24#copyright {
25 padding: 20px 0;
26}
27
28hr {
29 border-color: #eee;
30}
31
32.blog-center {
33 max-width: 700px;
34 padding: 2em 40px;
35 margin: 0 auto;
36 font-size: 1em;
37 line-height: 1.5;
38}
39.blog-center h1 {
40 margin-top:0;
41}
42.blog-center h2 {
43 margin-top:1em;
44 margin-bottom:0.25em;
45}
46.blog-center h2 a {
47 color: #252525;
48 text-decoration: none;
49}
50.blog-center h2 a:hover {
51 text-decoration: underline;
52}
53.blog-center p, ul {
54 margin-top:0;
55 margin-bottom:1em;
56}
57.blog-banner {
58 width:100%;
59 height: 250px;
60 background-size: cover;
61 background-position: center;
62 margin: 0;
63 user-select: none;
64}
65h1.blog-top-1 {
66 margin-top:1em;
67 margin-bottom:0;
68}
69p.blog-top-2 {
70 margin-top:0;
71}
72.blog-img-full {
73 max-width: 100%;
74 display: inline-block;
75 margin: 10px 0 10px 0;
76}
77.blog-img-right {
78 max-height: 500px;
79 max-width: 50%;
80 margin: 0 0 10px 20px;
81 float: right;
82}
83.blog-img-left {
84 max-height: 500px;
85 max-width: 50%;
86 margin: 0 20px 10px 0;
87 float: left;
88}
89.blog-listing {
90 padding-bottom: 60px;
91}
92.blog-listing:last-of-type {
93 padding-bottom: 20px;
94}
95.blog-listing code {
96 margin-right: 10px;
97}
98
99@media (max-width: 840px) {
100 .blog-banner {
101 height: 30vw;
102 }
103 .blog-img-right, .blog-img-left {
104 max-width: 50%;
105 }
106}
107@media (max-width: 500px) {
108 .blog-banner {
109 height: 40vw;
110 }
111}
112