about summary refs log tree commit diff
path: root/static
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-16 10:28:54 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-16 11:20:29 +0700
commit75d5209e5c9dc8c9c22a5a865f7c7f8166b282e6 (patch)
tree9a6c40403a91536dc05fd38ff0b894164eb50c11 /static
parent4f02b06ad5e9a4e60f07afc08551bf4c611547af (diff)
downloadblog-75d5209e5c9dc8c9c22a5a865f7c7f8166b282e6.tar.gz
Switch data representation to definition list
Thank the author of the blog post [1] that helped me writing the CSS

[1]: https://www.the-art-of-web.com/css/format-dl/
Diffstat (limited to 'static')
-rw-r--r--static/css/custom.css18
1 files changed, 18 insertions, 0 deletions
diff --git a/static/css/custom.css b/static/css/custom.css
index 4dcae15..8c00949 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -78,3 +78,21 @@ div.content h3::before {
   content: '### ';
   color: gray;
 }
+
+/* Book data format */
+
+dl.book-data {
+  border: 3px double #ccc;
+  padding: 0.5em;
+}
+dl.book-data dt {
+  float: left;
+  clear: left;
+  width: 100px;
+  text-align: right;
+  font-weight: bold;
+}
+dl.book-data dd {
+  margin: 0 0 0 110px;
+  padding: 0 0 0.5em 0;
+}