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

github.com/nodejh/hugo-theme-cactus-plus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward H <BDHU@users.noreply.github.com>2021-05-15 04:36:52 +0300
committerGitHub <noreply@github.com>2021-05-15 04:36:52 +0300
commit2ec0ec7acddfc7f01b7b738126e31ffda1125f0b (patch)
tree949bd9dd1e970a4bf8c2b32a5300fc485b66eb35
parent8628c19610c7420ea776f7871d40902cf5382c25 (diff)
Add overflow-x: auto to hightlight
The currently problem is without `overflow-x: auto;` The code that exceeds the post width will not have the highlight background. Setting overflow-x will allow the code snippet to be properly rendered.
-rw-r--r--static/css/style.css3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 96279bc..ebc8da0 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -102,6 +102,7 @@ h4:hover a {
}
.highlight pre {
padding: 7px;
+ overflow-x: auto;
}
.highlight {
@@ -500,4 +501,4 @@ nav.navigation a.button {
position: relative;
top: 1px;
color: #bbb;
-} \ No newline at end of file
+}