Skip to content

Commit cfcd1ac

Browse files
Fix background of Spacing select when using dark theme (#384)
Co-authored-by: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
1 parent 5a69266 commit cfcd1ac

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/main/resources/scss/pages/_spacing.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
div {
1717
position: relative;
1818
display: flex;
19-
background: color-mix(in srgb, var(--text-color-secondary) 2.5%, transparent);
20-
border: var(--jdl-border-translucent);
21-
border-radius: 4px;
22-
transition: background var(--standard-transition);
2319

2420
&::after {
2521
content: "";
@@ -43,8 +39,8 @@
4339

4440
select {
4541
appearance: none;
46-
background: none;
47-
border: none;
42+
border: var(--jdl-border-translucent);
43+
border-radius: 4px;
4844
outline: none;
4945
width: 100%;
5046
font-size: var(--font-size-sm);
@@ -53,21 +49,24 @@
5349
padding: 0 20px 0 0;
5450
height: 2rem;
5551
font-family: var(--font-family-mono);
52+
transition: var(--standard-transition);
53+
54+
&:hover {
55+
border-color: var(--input-border-hover);
56+
}
5657
}
5758

58-
&:first-of-type {
59+
&:first-of-type select {
5960
border-top-left-radius: 18px;
6061
border-bottom-left-radius: 18px;
6162
}
6263

63-
&:last-of-type {
64+
&:last-of-type select {
6465
border-top-right-radius: 18px;
6566
border-bottom-right-radius: 18px;
6667
}
6768

6869
&:hover {
69-
background: color-mix(in srgb, var(--text-color-secondary) 10%, transparent);
70-
7170
&::after {
7271
translate: 0 1px;
7372
}

0 commit comments

Comments
 (0)