diff options
author | Dan Allen <dan@opendevise.com> | 2018-02-09 16:02:17 -0700 |
---|---|---|
committer | Dan Allen <dan@opendevise.com> | 2018-02-09 19:39:17 -0700 |
commit | 8dde552402ee8850ae58a86e95f3dfad13b35498 (patch) | |
tree | a66710cf81d985ae7790c2d8bea12102881fe53b /src | |
parent | 2134ba4c1f2c79332db28327432cff02a61d6565 (diff) | |
download | alpine-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.css | 21 |
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; } |