From 82ce92d9c42dd6f97dbc6be2d87815aad8296960 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Wed, 4 Apr 2018 22:04:36 +1000 Subject: [PATCH] revises code fonts and styles --- layouts/partials/header.html | 2 +- layouts/partials/post_footer.html | 1 + static/css/custom.css | 24 ++++++++++-------------- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a55732e..cbe4b9e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,7 @@ {{ "" | safeHTML }} - + diff --git a/layouts/partials/post_footer.html b/layouts/partials/post_footer.html index 58ff0cd..a52d53c 100644 --- a/layouts/partials/post_footer.html +++ b/layouts/partials/post_footer.html @@ -4,6 +4,7 @@ {{ end }} {{- end }} diff --git a/static/css/custom.css b/static/css/custom.css index 7a98fc4..5435a58 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -32,7 +32,7 @@ body .meta { - font-size: .8rem !important; + font-size: .8rem; font-weight: 300; } @@ -50,28 +50,24 @@ pre overflow-x: auto; /* no line wrapping */ } -pre, -code +pre code, li code, td code, code { - font-family: 'Roboto Mono', monospace; border-radius: 4px; - width: 100%; - font-size: .9em; + white-space: pre-wrap; + padding:1px 4px; + background: #eee; + /* color: #444; */ + border: 1px solid #d9d9d9; } code { - padding:.20em .2em .10em; - background: #272932!important; - color: #ececec!important; - box-sizing: border-box; - margin: 0 .25em; + font-family: 'Roboto Mono', monospace; + font-size: 90%; } - - .copyright, .poweredby { - font-size: 13px !important; + font-size: 13px; font-weight: 300; }