diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-21 22:15:28 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-21 22:15:28 +0700 |
commit | ed2e199d61334159db7cab2499d4cb2fb6c877b6 (patch) | |
tree | 92149f6687844973b667746718b82764d37dbb2e | |
parent | a19ee40c813bdb4d0206ca17ff33b2806162d3b8 (diff) | |
download | blog-ed2e199d61334159db7cab2499d4cb2fb6c877b6.tar.gz |
Generalize CSS class
-rw-r--r-- | layouts/_default/books.html | 2 | ||||
-rw-r--r-- | static/css/custom.css | 6 |
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; } |