aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_editor.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-04-08 11:53:00 +0200
committerGitHub <noreply@github.com>2021-04-08 17:53:00 +0800
commit4eea819b2496b849ca8e1e7a6e11fef45e141225 (patch)
tree07d8d6e1be0b4b68a3a5b394f2d468acb0e2af7d /web_src/less/_editor.less
parent05b7e328297142c7ddb888339901524708472a3a (diff)
downloadgitea-4eea819b2496b849ca8e1e7a6e11fef45e141225.tar.gz
gitea-4eea819b2496b849ca8e1e7a6e11fef45e141225.zip
Monaco improvements (#15333)
- Create theme at runtime which follows the CSS variables of the site - Disable a few opinionated Monaco defaults like minimap and word highlights - Move styles to separate file Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/less/_editor.less')
-rw-r--r--web_src/less/_editor.less22
1 files changed, 0 insertions, 22 deletions
diff --git a/web_src/less/_editor.less b/web_src/less/_editor.less
index c23de4f2e0..156430af0e 100644
--- a/web_src/less/_editor.less
+++ b/web_src/less/_editor.less
@@ -74,25 +74,3 @@
border-left: 1px solid var(--color-secondary) !important;
border-right: 1px solid var(--color-secondary) !important;
}
-
-.monaco-editor-container {
- width: 100%;
- min-height: 200px;
- height: 90vh;
-}
-
-/* overwrite conflicting styles from fomantic */
-.monaco-editor-container .inputarea {
- min-height: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- resize: none !important;
- border: none !important;
- color: transparent !important;
- background-color: transparent !important;
-}
-
-.edit.githook .monaco-editor-container {
- border: 1px solid var(--color-secondary);
- height: 70vh;
-}