From 308900272efc9ac5399690ae81e707e95b57c855 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Tue, 10 Sep 2024 12:50:47 +1000 Subject: [PATCH] style change to display code block language --- weblog/B0. Template/styles.css.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/weblog/B0. Template/styles.css.md b/weblog/B0. Template/styles.css.md index 813479b..2d1c827 100644 --- a/weblog/B0. Template/styles.css.md +++ b/weblog/B0. Template/styles.css.md @@ -463,6 +463,16 @@ pre code { padding: 1em; white-space: pre-wrap; word-wrap: break-word; + position: relative; +} + +code[data-lang]::before { + content: attr(data-lang); + position: absolute; + top: -1.5rem; + right: 0; + font-size: 1rem; + text-align: right; } img {