Skip to content

Commit 89e35de

Browse files
committed
styles: Add custom max width content
1 parent 6f3e592 commit 89e35de

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

styles/index.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
--text-color-code: $textColorCode
1919
--border-color: $borderColor
2020
--outline-color: $outlineColor
21+
--content-max-width: $contentMaxWidth
2122

2223
html.dark-mode
2324
--bg: $darkBg

styles/override-components.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
color: var(--color)
1919
border-top-color var(--border-color)
2020

21+
.theme-default-content:not(.custom), .page-edit, .page-nav
22+
max-width: var(--content-max-width)
23+
2124
.navbar .site-name
2225
color: var(--color)
2326

styles/palette.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$contentMaxWidth ?= 768px
2+
13
$accentColor ?= #3ab982
24
$darkAccentColor ?= #3ab982
35
$sepiaAccentColor ?= #3ab982

0 commit comments

Comments
 (0)