Index

joshstock.in / 2662085

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
3601 Jan 2020 19:392662085Update blog page paddingJosh Stockin141N

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

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