Index

joshstock.in / 71d1753

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
8128 Mar 2020 23:26b2d3957Rewrite template engineJosh Stockin11280G

Blob @ joshstock.in / root / resources / static / blog.css

text/css1967 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-page {
29 width: 100%;
30}
31.blog-center {
32 max-width: 700px;
33 padding: 2em 2.5em;
34 margin: 0 auto;
35 font-size: 1em;
36 line-height: 1.5;
37 background-color: #fff;
38}
39
40.blog-center h1 {
41 margin-top:0;
42}
43.blog-center h2 {
44 margin-top:1em;
45 margin-bottom:0.25em;
46}
47.blog-center h2 a {
48 color: #252525;
49 text-decoration: none;
50}
51.blog-center h2 a:hover {
52 text-decoration: underline;
53}
54.blog-center p, ul {
55 margin-top:0;
56 margin-bottom:1em;
57}
58
59.blog-banner {
60 width:100%;
61 height: 40vh;
62 background-size: cover;
63 background-position: center;
64 margin: 0;
65 user-select: none;
66 transition: transform 1s linear;
67}
68.blog-banner.thumb {
69 height: 250px;
70}
71
72h1.blog-top-1 {
73 margin-top:1em;
74 margin-bottom:0;
75}
76p.blog-top-2 {
77 margin-top:0;
78}
79i.blog-readtime {
80 margin-left: 10px;
81}
82
83.block {
84 width: 760px;
85 display: block;
86 margin: 10px -30px 16px -30px;
87}
88.block img {
89 max-width: 100%;
90 max-height: 500px;
91 margin: 0 auto;
92 display: block;
93}
94
95.blog-listing {
96 box-shadow: 0 4px 8px 0 #b5b5b5;
97 border-radius: 10px;
98 margin-bottom: 2em;
99 transition: box-shadow 100ms;
100}
101.blog-listing .blog-top-1 {
102 margin-top: 0;
103}
104.blog-listing .blog-banner {
105 border-radius: 10px 10px 0 0;
106}
107.blog-listing:hover {
108 box-shadow: 0 4px 8px 0 #959595;
109}
110.blog-listing-container {
111 padding:1em;
112}
113
114@media (max-width: 840px) {
115 .blog-center {
116 padding: 1em;
117 }
118 .block {
119 width: 100%;
120 margin: 10px 0 10px 0;
121 }
122 .blog-banner, .blog-banner.thumb {
123 height: 40vw;
124 }
125 .blog-img-right, .blog-img-left {
126 max-width: 50%;
127 }
128}
129