Skip to content

Commit

Permalink
style(next): tweak the combo box arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
adoriandoran committed Jan 14, 2025
1 parent 99a6e65 commit 40b9532
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/public/stylesheets/theme-next-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
--select-focus-background: #333;
--select-focus-text-color: var(--input-text-color);
--select-dropdown-text-color: var(--input-text-color);
--select-arrow-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='transparent' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");

--hover-item-text-color: #efefef;
--hover-item-background-color: #ffffff24;
Expand Down
1 change: 1 addition & 0 deletions src/public/stylesheets/theme-next-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
--select-focus-background: white;
--select-focus-text-color: var(--input-text-color);
--select-dropdown-text-color: var(--input-text-color);
--select-arrow-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='transparent' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");

--hover-item-text-color: black;
--hover-item-background-color: #0000001a;
Expand Down
4 changes: 3 additions & 1 deletion src/public/stylesheets/theme-next/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ input::selection,
select, select.form-select {
outline: 3px solid transparent;
outline-offset: 6px;
background-color: var(--input-background-color);
background: unset;
background: var(--input-background-color)
var(--select-arrow-svg) right 0.75rem center/15px 20px no-repeat;
color: var(--input-text-color);
border: unset;
}
Expand Down

0 comments on commit 40b9532

Please sign in to comment.