summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Allen <dan@opendevise.com>2018-02-09 16:02:17 -0700
committerDan Allen <dan@opendevise.com>2018-02-09 19:39:17 -0700
commit8dde552402ee8850ae58a86e95f3dfad13b35498 (patch)
treea66710cf81d985ae7790c2d8bea12102881fe53b /src
parent2134ba4c1f2c79332db28327432cff02a61d6565 (diff)
downloadalpine-antora-theme-8dde552402ee8850ae58a86e95f3dfad13b35498.tar.bz2
alpine-antora-theme-8dde552402ee8850ae58a86e95f3dfad13b35498.tar.xz
affix language tag when source block scrolls left-to-right
Diffstat (limited to 'src')
-rw-r--r--src/css/doc.css21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/css/doc.css b/src/css/doc.css
index 96dae78..4631934 100644
--- a/src/css/doc.css
+++ b/src/css/doc.css
@@ -86,15 +86,6 @@
margin: 0;
}
-.doc pre:not(.highlight),
-.doc pre.highlight code {
- background-color: #fafafa;
- box-shadow: inset 0 0 1.75px #ddd;
- display: block;
- overflow-x: auto;
- padding: 0.75rem;
-}
-
.doc .paragraph,
.doc .colist,
.doc .dlist,
@@ -401,7 +392,17 @@
white-space: pre-wrap;
}
-.doc .listingblock code[data-lang] {
+.doc pre:not(.highlight),
+.doc pre.highlight code {
+ background-color: #fafafa;
+ box-shadow: inset 0 0 1.75px #ddd;
+ display: block;
+ overflow-x: auto;
+ padding: 0.75rem;
+}
+
+/* NOTE assume pre.highlight contains code[data-lang] */
+.doc pre.highlight {
position: relative;
}