about summary refs log tree commit diff homepage
path: root/_css
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-23 17:41:30 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-23 21:18:32 +0700
commit1d42abf23d59de9684c80c290c4498d81ce9977b (patch)
tree69207c35109e50fda8c489d98b107680217b1d72 /_css
parentc9e639f71b686093e6b53097f0accc0cfbb77303 (diff)
downloadsite-1d42abf23d59de9684c80c290c4498d81ce9977b.tar.gz
Add initial commenting support
Diffstat (limited to '_css')
-rw-r--r--_css/style.css11
1 files changed, 10 insertions, 1 deletions
diff --git a/_css/style.css b/_css/style.css
index 790c177..af502d7 100644
--- a/_css/style.css
+++ b/_css/style.css
@@ -204,7 +204,7 @@ code, .hljs {
     padding: 0.1em 0.2em;
 }
 
-.hljs {
+.hljs, .comment pre > code {
     display: block;
     line-height: 1.45em;
     overflow-x: auto;
@@ -227,6 +227,15 @@ code, .hljs {
 .hljs-selector-pseudo, .hljs-template-tag, .hljs-template-variable,
 .hljs-addition { color: var(--red) }
 
+.comment {
+    background-color: #8881;
+    clear: both;
+    margin: 1ex 0;
+    overflow: hidden;
+    padding: 1ex;
+}
+.comment p { margin: 1ex }
+
 .openring {
     display: flex;
     flex-wrap: wrap;