From f7edfec6e04a68ec9e4e3d539a4e9d9131e2d5fc Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 10 Jul 2023 13:16:22 +0200 Subject: [PATCH] Manual merge of #452 --- web/styles/editor.scss | 31 +++++++++++++++++++++++++++---- web/styles/main.scss | 4 ++-- web/styles/theme.scss | 2 +- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/web/styles/editor.scss b/web/styles/editor.scss index 6061933a..6565fedb 100644 --- a/web/styles/editor.scss +++ b/web/styles/editor.scss @@ -195,6 +195,7 @@ .cm-task-checked { text-decoration: line-through !important; } + .cm-tooltip-autocomplete { .cm-completionDetail { font-style: normal; @@ -229,7 +230,7 @@ text-indent: -5ch; } - .sb-checkbox > input[type="checkbox"] { + .sb-checkbox>input[type="checkbox"] { width: 3ch; } @@ -295,7 +296,7 @@ } a.sb-wiki-link-page-missing, - .sb-wiki-link-page-missing > .sb-wiki-link-page { + .sb-wiki-link-page-missing>.sb-wiki-link-page { border-radius: 5px; padding: 0 5px; // white-space: nowrap; @@ -344,7 +345,7 @@ font-size: 80%; } - & > span, + &>span, &.sb-directive-start, &.sb-directive-end { color: transparent; @@ -356,6 +357,7 @@ .sb-meta { color: transparent; } + color: transparent; } @@ -445,7 +447,7 @@ } } - .sb-line-blockquote.sb-line-ul.sb-line-li > .sb-quote.sb-meta:first-child { + .sb-line-blockquote.sb-line-ul.sb-line-li>.sb-quote.sb-meta:first-child { margin-left: -1ch; } @@ -476,3 +478,24 @@ div:not(.cm-focused).cm-fat-cursor { outline: none !important; } + +@media only screen and (max-width: 600px) { + #sb-main .cm-editor { + .sb-table-widget { + overflow: auto; + + th, + td { + white-space: nowrap; + } + } + } + + #sb-editor { + + .sb-directive-start-outside, + .sb-directive-end-outside { + height: 22px; + } + } +} \ No newline at end of file diff --git a/web/styles/main.scss b/web/styles/main.scss index c2b634b7..d2d7eea5 100644 --- a/web/styles/main.scss +++ b/web/styles/main.scss @@ -81,7 +81,7 @@ body { font-size: 15px; z-index: 100; - > div { + >div { padding: 3px; margin-bottom: 3px; border-radius: 5px; @@ -204,4 +204,4 @@ body { margin: 0; } } -} +} \ No newline at end of file diff --git a/web/styles/theme.scss b/web/styles/theme.scss index a2e9814e..f4e0a703 100644 --- a/web/styles/theme.scss +++ b/web/styles/theme.scss @@ -218,4 +218,4 @@ html[data-theme="dark"] { --editor-directive-color: #5b5b5b; --editor-directive-info-color: var(--subtle-color); --editor-task-marker-color: var(--subtle-color); -} +} \ No newline at end of file