Skip to content

Commit

Permalink
fix: correct the style of input and select (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiwong authored Dec 29, 2021
1 parent d80f587 commit e0ba0fc
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
13 changes: 13 additions & 0 deletions src/components/input/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#{$input} {
background-color: var(--input-background);
border: 1px solid transparent;
border-color: var(--input-border);
color: var(--input-foreground);
display: inline-block;
font-size: 13px;
Expand Down Expand Up @@ -33,4 +34,16 @@
text-align: right;
}
}

&::placeholder {
color: var(--input-placeholderForeground);
}

&:focus,
&:active {
border-color: var(--focusBorder);
outline-color: var(--focusBorder);
outline-offset: -1;
outline-style: solid;
}
}
16 changes: 14 additions & 2 deletions src/components/select/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

&__input {
appearance: none;
background: inherit;
background: var(--input-background);
border: 0;
color: inherit;
color: var(--input-foreground);
cursor: default;
font: inherit;
font-size: inherit;
Expand All @@ -33,6 +33,18 @@
&:focus {
outline: none;
}

&::placeholder {
color: var(--input-placeholderForeground);
}

&:focus,
&:active {
border-color: var(--focusBorder);
outline-color: var(--focusBorder);
outline-offset: -1;
outline-style: solid;
}
}

&__arrow {
Expand Down
6 changes: 6 additions & 0 deletions src/workbench/sidebar/explore/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
background: rgba(0, 0, 0, 0.3);

#{$folderTree}--input {
background: var(--input-background);
border: 1px solid var(--list-focusOutline);
color: var(--input-foreground);
font-family: inherit;
font-size: 13px;
height: 20px;
Expand All @@ -48,6 +50,10 @@
&::selection {
background: rgb(90, 126, 167);
}

&::placeholder {
color: var(--input-placeholderForeground);
}
}
}
}
Expand Down
19 changes: 0 additions & 19 deletions src/workbench/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,6 @@
background-color: var(--editor-selectionBackground);
}

input,
select {
background: var(--input-background);
border-color: var(--input-border);
color: var(--input-foreground);

&::placeholder {
color: var(--input-placeholderForeground);
}
}

input:focus,
input:active {
border-color: var(--focusBorder);
outline-color: var(--focusBorder);
outline-offset: -1;
outline-style: solid;
}

code {
background: var(--textCodeBlock-background);
}
Expand Down

0 comments on commit e0ba0fc

Please sign in to comment.