Skip to content

Commit 1e3deb8

Browse files
committed
Make content margin configurable for narrow sections
REDMINE-20989
1 parent aec8e30 commit 1e3deb8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

entry_types/scrolled/package/src/frontend/Section.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
--section-max-width:
1212
var(--theme-section-max-width);
1313

14+
--content-margin-fraction: var(--theme-content-margin-fraction, 0.08);
15+
--content-margin: var(--theme-content-margin, calc(var(--content-margin-fraction) * 100%));
16+
1417
--two-column-inline-content-max-width:
1518
var(--theme-two-column-inline-content-max-width);
1619
--two-column-inline-lg-content-max-width:
@@ -45,6 +48,11 @@
4548
--section-max-width:
4649
var(--theme-narrow-section-max-width);
4750

51+
--content-margin-fraction:
52+
var(--theme-narrow-section-content-margin-fraction, var(--theme-content-margin-fraction, 0.08));
53+
--content-margin:
54+
var(--theme-narrow-section-content-margin, calc(var(--content-margin-fraction) * 100%));
55+
4856
--two-column-inline-content-max-width:
4957
var(--theme-narrow-section-two-column-inline-content-max-width);
5058
--two-column-inline-lg-content-max-width:

entry_types/scrolled/package/src/frontend/layouts/Center.module.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
.outer {
2-
--content-margin-fraction: var(--theme-content-margin-fraction, 0.08);
3-
--content-margin: var(--theme-content-margin,
4-
calc(var(--content-margin-fraction) * 100%));
52
padding-left: var(--content-margin);
63
padding-right: var(--content-margin);
74
margin-left: auto;

entry_types/scrolled/package/src/frontend/layouts/TwoColumn.module.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
}
33

44
.group {
5-
--content-margin-fraction: var(--theme-content-margin-fraction, 0.08);
6-
--content-margin: var(--theme-content-margin, calc(var(--content-margin-fraction) * 100%));
75
padding-left: var(--content-margin);
86
padding-right: var(--content-margin);
97
margin-left: auto;

0 commit comments

Comments
 (0)