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

github.com/frjo/hugo-theme-zen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Jonsson <frjo@xdeb.org>2022-06-01 15:22:29 +0300
committerFredrik Jonsson <frjo@xdeb.org>2022-06-01 15:22:40 +0300
commit811f82fcec51bcd5f8093ef8dca43e2237c856e2 (patch)
treec71de952242da0a378fffa4f441a3cad8c576a80
parent79167aed03e5ea675755a45aeff5824a3039934f (diff)
Max line width only in main section and add zen-gutters-reverse variable.
-rw-r--r--assets/sass/_variables.scss1
-rw-r--r--assets/sass/reset/sections/_sections.scss16
2 files changed, 10 insertions, 7 deletions
diff --git a/assets/sass/_variables.scss b/assets/sass/_variables.scss
index c74701e..11f0e1f 100644
--- a/assets/sass/_variables.scss
+++ b/assets/sass/_variables.scss
@@ -128,6 +128,7 @@ $max-line-width: 70ch;
// The default left/right gutter/padding.
$zen-gutters: calc(5px + 1.5625vw);
+$zen-gutters-reverse: calc(0px - (5px + 1.5625vw));
// Border radius.
$s-radius: 3px;
diff --git a/assets/sass/reset/sections/_sections.scss b/assets/sass/reset/sections/_sections.scss
index 1638c3e..5bd9da0 100644
--- a/assets/sass/reset/sections/_sections.scss
+++ b/assets/sass/reset/sections/_sections.scss
@@ -70,11 +70,13 @@ h6,
// Set max text line width for redability.
-h2,
-h3,
-h4,
-h5,
-h6,
-p {
- max-width: $max-line-width;
+.main {
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ p {
+ max-width: $max-line-width;
+ }
}