Skip to content

Commit

Permalink
style: エディタで行を選択できるように見えるようなマウスオーバークラス
Browse files Browse the repository at this point in the history
  • Loading branch information
simonNozaki committed Jan 22, 2023
1 parent ea4c13c commit 37d3470
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/css/rich-editor.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
ProseMirrorのクラスを拡張することで独自のスタイルを当てられる
https://tiptap.dev/guide/styling#option-1-style-the-plain-html
*/
.ProseMirror {
background-color: #ffffff;
padding: 8px;
Expand All @@ -6,4 +10,12 @@
.ProseMirror p {
font-family: 'JetBrains Mono', 'Courier New', Courier, Monaco, monospace;
font-weight: 500;
margin: 0;
padding: 0;
}

/* エディタ内行にカーソルを当てるとリンクっぽい見栄えにさせる */
.ProseMirror *:hover {
background-color: #eeeeee;
cursor: pointer;
}

0 comments on commit 37d3470

Please sign in to comment.