Skip to content

Commit b5d809e

Browse files
committed
Style CodeMirror's search panel
1 parent 3cf9075 commit b5d809e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

ui/arduino/main.css

+55
Original file line numberDiff line numberDiff line change
@@ -570,3 +570,58 @@ button.small .icon {
570570
font-size: inherit;
571571
outline-color: #F4BA00;
572572
}
573+
574+
#code-editor .cm-panels {
575+
border-color: #DAE3E3;
576+
padding: 0 10px;
577+
margin: 0;
578+
}
579+
#code-editor .cm-panels .cm-search {
580+
display: flex;
581+
align-items: center;
582+
height: 45px;
583+
padding: 0;
584+
background: #ECF1F1;
585+
gap: 10px;
586+
}
587+
#code-editor .cm-panels label {
588+
display: none;
589+
}
590+
#code-editor .cm-panels input,
591+
#code-editor .cm-panels button {
592+
height: 28px;
593+
margin: 0;
594+
padding: 0;
595+
width: auto;
596+
}
597+
#code-editor .cm-panels button {
598+
border: none;
599+
border-radius: none;
600+
font-family: inherit;
601+
background: none;
602+
}
603+
#code-editor .cm-panels input {
604+
box-sizing: border-box;
605+
padding: 0 10px;
606+
border: none;
607+
border-radius: 0 !important;
608+
width: 100%;
609+
background: rgba(255, 255, 255, 1.0);
610+
font-family: inherit;
611+
font-size: 14px;
612+
outline-style: none;
613+
/* outline-color: #F4BA00; */
614+
}
615+
#code-editor .cm-panels input:focus {
616+
outline-style: solid;
617+
outline-color: #F4BA00;
618+
619+
}
620+
#code-editor .cm-panels [name="replace"],
621+
#code-editor .cm-panels [name="replace"],
622+
#code-editor .cm-panels [name="replaceAll"] {
623+
display: none;
624+
}
625+
#code-editor .cm-panel.cm-search [name="close"] {
626+
position: relative;
627+
}

0 commit comments

Comments
 (0)