Skip to content

Commit

Permalink
Remove EasyMDE focus outline on text (#25328) (#25332)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
GiteaBot and silverwind authored Jun 18, 2023
1 parent 7e06e6a commit 3bd311c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_src/css/codemirror/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@
.CodeMirror-focused {
border-color: var(--color-primary) !important;
}

.CodeMirror :focus {
outline: none;
}

0 comments on commit 3bd311c

Please sign in to comment.