Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjeremywho <jeremy@weebu.com>2016-12-01 00:03:23 +0300
committerjeremywho <jeremy@weebu.com>2016-12-01 00:03:23 +0300
commit97e347065c51ac5098e4f01984c82f1642e382e9 (patch)
treec123bf9cb6dc1abeca1711ce55b56eb90f18b893 /src
parent97054739a2523dcecac4ca43c151b4140d0b8783 (diff)
added horizontal scrolling for code blocks (overflow-x:auto;)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scss/themes/_hljs-tranquilpeak.scss5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scss/themes/_hljs-tranquilpeak.scss b/src/scss/themes/_hljs-tranquilpeak.scss
index e374c7f..ed8eecb 100755
--- a/src/scss/themes/_hljs-tranquilpeak.scss
+++ b/src/scss/themes/_hljs-tranquilpeak.scss
@@ -5,6 +5,11 @@ pre > code {
color: map-get($highlight-colors, night-rider);
}
+// allow for horizontal scrolling of code blocks
+pre > code.codeblock {
+ overflow-x: auto;
+}
+
// Default inline code
code {
background-color: map-get($highlight, 'background');