about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-21 22:15:28 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-21 22:15:28 +0700
commited2e199d61334159db7cab2499d4cb2fb6c877b6 (patch)
tree92149f6687844973b667746718b82764d37dbb2e
parenta19ee40c813bdb4d0206ca17ff33b2806162d3b8 (diff)
downloadblog-ed2e199d61334159db7cab2499d4cb2fb6c877b6.tar.gz
Generalize CSS class
-rw-r--r--layouts/_default/books.html2
-rw-r--r--static/css/custom.css6
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/books.html b/layouts/_default/books.html
index c4b7589..d574cbf 100644
--- a/layouts/_default/books.html
+++ b/layouts/_default/books.html
@@ -13,7 +13,7 @@
   </header>
   <div class="content e-content">
     <h1>Book info</h1>
-    <dl class="book-data">
+    <dl class="data">
       <dt>Book</dt>
       <dd>{{ .Params.book }}</dd>
       <dt>Authors</dt>
diff --git a/static/css/custom.css b/static/css/custom.css
index f800cde..2e05070 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -81,18 +81,18 @@ div.content h3::before {
 
 /* Book data format */
 
-dl.book-data {
+dl.data {
   border: 3px double #ccc;
   padding: 0.5em;
 }
-dl.book-data dt {
+dl.data dt {
   float: left;
   clear: left;
   width: 100px;
   text-align: right;
   font-weight: bold;
 }
-dl.book-data dd {
+dl.data dd {
   margin: 0 0 0 110px;
   padding: 0 0 0.5em 0;
 }