Index

joshstock.in / 450eb33

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2831 Dec 2019 14:25efe86e3Update site styling and metadataJosh Stockin1153N

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

text/css1969 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 box-shadow: 0 4px 8px 0 #b5b5b5;
91 border-radius: 10px;
92 margin-bottom: 4em;
93 transition: 0.2s box-shadow;
94}
95.blog-listing .blog-top-1 {
96 margin-top: 0;
97}
98.blog-listing .blog-banner {
99 border-radius: 10px 10px 0 0;
100}
101.blog-listing:hover {
102 box-shadow: 0 4px 8px 0 #959595;
103}
104.blog-listing-container {
105 padding:1em;
106}
107.blog-listing code {
108 margin-right: 10px;
109}
110
111@media (max-width: 840px) {
112 .blog-banner {
113 height: 30vw;
114 }
115 .blog-img-right, .blog-img-left {
116 max-width: 50%;
117 }
118}
119@media (max-width: 500px) {
120 .blog-banner {
121 height: 40vw;
122 }
123}
124