mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-15 19:02:11 +00:00
3bd311c3f4
Backport #25328 by @silverwind EasyMDE in Firefox currently shows a ugly outline in the fake textarea the CodeMirror uses. Hide it. Before: <img width="845" alt="Screenshot 2023-06-18 at 02 54 09" src="https://github.com/go-gitea/gitea/assets/115237/dc406166-9ad5-4a9b-9581-002b5cdcc6df"> After: <img width="870" alt="Screenshot 2023-06-18 at 02 54 24" src="https://github.com/go-gitea/gitea/assets/115237/ddd78759-2cf2-4385-b863-7576fec25c34"> Co-authored-by: silverwind <me@silverwind.io>
50 lines
1.2 KiB
CSS
50 lines
1.2 KiB
CSS
.ui .field:not(:last-child) .EasyMDEContainer .editor-statusbar {
|
|
margin-bottom: -1em; /* when there is a statusbar, the "margin-bottom: 1em" of the "field" is not needed, because the statusbar is likely a blank line */
|
|
}
|
|
|
|
.EasyMDEContainer .CodeMirror {
|
|
color: var(--color-input-text);
|
|
background-color: var(--color-input-background);
|
|
border-color: var(--color-secondary);
|
|
font: 14px var(--fonts-monospace);
|
|
}
|
|
|
|
.EasyMDEContainer .CodeMirror.cm-s-default {
|
|
border-radius: var(--border-radius);
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.EasyMDEContainer .CodeMirror.CodeMirror-fullscreen.CodeMirror-focused {
|
|
border-right: 1px solid var(--color-primary) !important;
|
|
}
|
|
|
|
.CodeMirror-cursor {
|
|
border-color: var(--color-caret) !important;
|
|
}
|
|
|
|
.CodeMirror .cm-comment {
|
|
background: inherit !important;
|
|
}
|
|
|
|
.CodeMirror .CodeMirror-code {
|
|
font: 14px var(--fonts-monospace);
|
|
}
|
|
|
|
.CodeMirror-selected {
|
|
background: var(--color-primary-light-1) !important;
|
|
color: var(--color-white) !important;
|
|
}
|
|
|
|
.CodeMirror-placeholder {
|
|
color: var(--color-placeholder-text) !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.CodeMirror-focused {
|
|
border-color: var(--color-primary) !important;
|
|
}
|
|
|
|
.CodeMirror :focus {
|
|
outline: none;
|
|
}
|