Added support for overriding CSS styles with STYLES page

This commit is contained in:
Zef Hemel
2023-02-28 10:07:20 +01:00
parent 91cc9a13c7
commit 288e67e380
15 changed files with 63 additions and 27 deletions
+1 -2
View File
@@ -4,13 +4,12 @@
#sb-main .cm-editor {
font-size: 18px;
--max-width: 800px;
height: 100%;
.cm-content {
margin-left: auto;
margin-right: auto;
max-width: var(--max-width);
max-width: var(--#{"editor-width"});
padding: 5px 20px;
}
+2 -1
View File
@@ -49,7 +49,8 @@
max-width: 100%;
.inner {
max-width: 800px;
// Hack to not have SCSS precompile this value but use proper CSS variables
max-width: var(--#{"editor-width"});
margin: auto;
font-size: 28px;
padding: 10px 0;
+1
View File
@@ -5,6 +5,7 @@
--ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--editor-font: "iA-Mono", "Menlo";
--editor-width: 800px;
font-family: var(--ui-font);
}