hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit 22c03753125d39cfa319677c8c041697068465e7
parent 6b4216ce56c7dedad88b9fb5f1e15a99d40bbc0b
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat, 26 May 2018 00:52:45 -0500

Add support for <kbd> tags.

Diffstat:
Mstatic/css/fonts.css | 5+++++
Mstatic/css/style.css | 11+++++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/static/css/fonts.css b/static/css/fonts.css
@@ -40,3 +40,8 @@ code {
     font-family: 'Iosevka Term', monospace;
     font-size: 90%;
 }
+
+kbd {
+    font-family: 'Iosevka Term', monospace;
+    font-size: 80%;
+}
diff --git a/static/css/style.css b/static/css/style.css
@@ -6,23 +6,20 @@ body {
 }
 
 /* header and footer areas */
-.menu { padding: 0; line-height: 2.2em; }
+.menu { padding: 0; line-height: 1.2em; }
 .menu li { display: inline-block; }
 .article-meta, .menu a {
-  text-decoration: none;
   background: #eee;
   padding: 5px;
   border-radius: 5px;
 }
 .menu, .article-meta, footer { text-align: center; }
 .title { font-size: 1.1em; line-height: 1.1em;}
-
 hr { border: 1px dashed #ddd; }
 .subtitle {
     color: #700000;
     font-style: italic;
 }
-
 a {
   text-decoration:none;
   color: #700000;
@@ -37,6 +34,12 @@ pre {
 }
 code { background: #f9f9f9; }
 pre code { background: none; }
+kbd {
+  color: #fff;
+  background: #700000;
+  padding: 5px;
+  border-radius: 5px;
+}
 
 /* misc elements */
 img, iframe, video { max-width: 100%; }