Skip to content

Commit

Permalink
Respect readable line length setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Feb 16, 2021
1 parent 3a0485e commit e38b331
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -1672,8 +1672,7 @@ body.theme-dark:not(.is-translucent):not(.hider-frameless)
width: var(--line-width);
}
.markdown-source-view.is-readable-line-width .CodeMirror,
.CodeMirror,
.markdown-preview-section {
.is-readable-line-width .markdown-preview-section {
padding-left: 0;
padding-right: 0;
margin: 0 auto 0 auto;
Expand All @@ -1694,7 +1693,7 @@ body.theme-dark:not(.is-translucent):not(.hider-frameless)
padding-top: 0;
}

.markdown-preview-section > div {
.is-readable-line-width .markdown-preview-section > div {
padding-left: 3.5rem;
padding-right: 3.5rem;
margin: 0 auto 0 auto;
Expand Down Expand Up @@ -4181,7 +4180,7 @@ html .plugin-sliding-panes-rotate-header.embedded-note-title .CodeMirror-lines {
padding: 5rem 0 var(--editor-line-height-rem);
}

.embedded-note-title.cc-pretty-preview .markdown-preview-view > h1 {
.embedded-note-title.cc-pretty-preview .is-readable-line-width.markdown-preview-view > h1 {
padding-left: 3.5rem;
padding-right: 3.5rem;
margin: 0 auto;
Expand Down

0 comments on commit e38b331

Please sign in to comment.