summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/public/style.css
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-06 16:12:27 +0900
committernsfisis <nsfisis@gmail.com>2025-05-06 16:12:27 +0900
commit21136ab8db7572c527726f93009b4b72bf00f9a9 (patch)
tree34805d49d55af7ac58e5b87d224de43fb7819c73 /vhosts/blog/public/style.css
parent83c58924bfd9f22ef4ff84fd3439535e4753ec53 (diff)
downloadnsfisis.dev-21136ab8db7572c527726f93009b4b72bf00f9a9.tar.gz
nsfisis.dev-21136ab8db7572c527726f93009b4b72bf00f9a9.tar.zst
nsfisis.dev-21136ab8db7572c527726f93009b4b72bf00f9a9.zip
feat(blog/nuldoc): implement codeblock filename
Diffstat (limited to 'vhosts/blog/public/style.css')
-rw-r--r--vhosts/blog/public/style.css13
1 files changed, 13 insertions, 0 deletions
diff --git a/vhosts/blog/public/style.css b/vhosts/blog/public/style.css
index dd1e6c1e..71c69f94 100644
--- a/vhosts/blog/public/style.css
+++ b/vhosts/blog/public/style.css
@@ -100,6 +100,19 @@ a:hover {
.codeblock {
background-color: #f5f5f5;
+ position: relative;
+ margin: 1rem 0;
+ border-radius: 3px;
+ overflow: hidden;
+}
+
+.codeblock .filename {
+ background-color: #e0e0e0;
+ color: #333;
+ font-family: Monaco, Consolas, 'Courier New', Courier, monospace;
+ font-size: 0.9rem;
+ padding: 0.5rem 1rem;
+ border-bottom: 1px solid #ccc;
}
pre {