X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/58cadce052f5cc3c9ce2bc12f88a93cac310699a..refs/pull/4467/head:/resources/sass/_text.scss diff --git a/resources/sass/_text.scss b/resources/sass/_text.scss index 6745d2a54..a3e6f09ac 100644 --- a/resources/sass/_text.scss +++ b/resources/sass/_text.scss @@ -3,10 +3,10 @@ */ body, button, input, select, label, textarea { - font-family: $text; + font-family: var(--font-body); } -.Codemirror, pre, #markdown-editor-input, .text-mono, .code-base { - font-family: $mono; +pre, #markdown-editor-input, .text-mono, .code-base { + font-family: var(--font-code); } /* @@ -42,6 +42,7 @@ h1, h2, h3, h4, h5, h6 { font-weight: 400; position: relative; display: block; + font-family: var(--font-heading, var(--font-body)); @include lightDark(color, #222, #BBB); .subheader { font-size: 0.5em; @@ -202,7 +203,7 @@ pre { pre { padding-left: 12px; } - pre:after { + pre:before { display: none; } } @@ -210,7 +211,8 @@ pre { blockquote { display: block; position: relative; - border-left: 4px solid var(--color-primary); + border-left: 4px solid transparent; + border-left-color: var(--color-primary); @include lightDark(background-color, #f8f8f8, #333); padding: $-s $-m $-s $-xl; overflow: auto; @@ -226,7 +228,7 @@ blockquote { } .text-mono { - font-family: $mono; + font-family: var(--font-code); } .text-uppercase { @@ -363,6 +365,7 @@ li.checkbox-item, li.task-list-item { } .break-text { + white-space: normal; word-wrap: break-word; overflow-wrap: break-word; }