Skip to content

Commit

Permalink
Fix background of Spacing select when using dark theme (#384)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
  • Loading branch information
mawinter69 and janfaracik authored Jan 6, 2025
1 parent 5a69266 commit cfcd1ac
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/main/resources/scss/pages/_spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
div {
position: relative;
display: flex;
background: color-mix(in srgb, var(--text-color-secondary) 2.5%, transparent);
border: var(--jdl-border-translucent);
border-radius: 4px;
transition: background var(--standard-transition);

&::after {
content: "";
Expand All @@ -43,8 +39,8 @@

select {
appearance: none;
background: none;
border: none;
border: var(--jdl-border-translucent);
border-radius: 4px;
outline: none;
width: 100%;
font-size: var(--font-size-sm);
Expand All @@ -53,21 +49,24 @@
padding: 0 20px 0 0;
height: 2rem;
font-family: var(--font-family-mono);
transition: var(--standard-transition);

&:hover {
border-color: var(--input-border-hover);
}
}

&:first-of-type {
&:first-of-type select {
border-top-left-radius: 18px;
border-bottom-left-radius: 18px;
}

&:last-of-type {
&:last-of-type select {
border-top-right-radius: 18px;
border-bottom-right-radius: 18px;
}

&:hover {
background: color-mix(in srgb, var(--text-color-secondary) 10%, transparent);

&::after {
translate: 0 1px;
}
Expand Down

0 comments on commit cfcd1ac

Please sign in to comment.