Switched fonts (again), but uses a LOT less bandwidth now :D

- also fixed home page layout a bit
main
CPunch 8 months ago
parent c02f23f09e
commit 1882f1a9ff
  1. 2
      layouts/index.html
  2. 13
      static/css/style.css
  3. BIN
      static/fonts/ibm.woff2

@ -8,7 +8,7 @@
</div>
{{- partial "social_list.html" $.Params.socialList -}}
</header>
<div class="post-content main">{{ .Content }}</div>
</article>
<div class="post-content main">{{ .Content }}</div>
{{ end }}

@ -1,6 +1,7 @@
:root {
--bg-color: #1d1e20;
--primary: #fff;
--code-bg: #272822;
--width: 1024px;
--secondary: #ccc;
--hljs-bg: #2e2e33;
@ -8,8 +9,8 @@
}
@font-face {
font-family: "DejaVu Sans Mono";
src: url(/fonts/dejavu.ttf) format("truetype");
font-family: "IBM Plex Sans";
src: url(/fonts/ibm.woff2) format("woff2");
}
body {
@ -17,7 +18,7 @@ body {
color: var(--primary);
margin: 0 auto;
padding: .5em 0 3em 0;
font-family: "DejaVu Sans Mono", monospace;
font-family: "IBM Plex Sans", monospace;
font-size: 1rem;
line-height: 1.3rem;
word-break: break-word;
@ -150,6 +151,7 @@ h1, h2, h3, h4, h5, h6 {
.post-content pre {
margin: 32px;
border-radius: var(--radius);
background-color: var(--code-bg) !important;
}
.post-content pre code {
@ -158,6 +160,11 @@ h1, h2, h3, h4, h5, h6 {
padding: 10px;
border-radius: 2px;
overflow-x: auto;
background-color: var(--code-bg) !important;
}
.post-content pre code span {
background-color: var(--code-bg) !important;
}
.post-content a {

Binary file not shown.
Loading…
Cancel
Save