0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-28 07:58:10 +00:00

darkbrewery

This commit is contained in:
Víctor Losada Hernández
2026-03-27 19:49:00 +01:00
parent 4bce4a9489
commit 1f2a329553
7 changed files with 125 additions and 145 deletions

View File

@@ -1,13 +1,13 @@
@import '@sharedStyles/core.less';
@import '@themes/codeMirror/customEditorStyles.less';
.editor {
:where(.editor) {
position : relative;
width : 100%;
height : 100%;
container : editor / inline-size;
background : white;
.codeEditor {
:where(.codeEditor) {
height : calc(100% - 25px);
.cm-editor { height : 100%;
outline:none !important;
@@ -17,7 +17,7 @@
border-top : #333399 solid 1px;
}
&.brewText .cm-pageLine {
:where(&.brewText) .cm-pageLine {
background : #33333328;
border-top : #333399 solid 1px;
}
@@ -30,7 +30,7 @@
}
}
&.brewText, &.brewSnippets {
&:where(.brewText), &.brewSnippets {
.cm-tooltip-autocomplete {

View File

@@ -26,8 +26,9 @@ const ThemeSnippets = {
//import EditorThemes from '../../../../build/homebrew/codeMirror/editorThemes.json';
import * as themesImport from '@uiw/codemirror-themes-all';
import defaultCM5Theme from '@themes/codeMirror/customThemes/default.js';
import darkbrewery from '../../../../themes/codeMirror/customThemes/darkbrewery.js';
const themes = { default: defaultCM5Theme, ...themesImport };
const themes = { default: defaultCM5Theme, darkbrewery, ...themesImport };
const EditorThemes = Object.entries(themes)
.filter(([name, value]) =>