Skip to content

Commit be03dba

Browse files
committed
Add styling for dropdown menus
1 parent c663305 commit be03dba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

resources/assets/styles/components/forms.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ input[type=number] {
6565
}
6666
}
6767

68+
select:not(.appearance-none) {
69+
@apply .outline-none .appearance-none .block .bg-white .border .border-neutral-200 .text-neutral-400 .p-3 .pr-8 rounded;
70+
transition: border-color 150ms linear, color 150ms linear;
71+
72+
&:hover:not(:disabled), &:focus {
73+
@apply .outline-none .border-primary-500 .text-neutral-700;
74+
}
75+
76+
-webkit-appearance: none;
77+
-moz-appearance: none;
78+
79+
&::-ms-expand {
80+
display: none;
81+
}
82+
83+
background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3e%3c/svg%3e ") no-repeat center center;
84+
background-size: 1rem;
85+
background-position-x: calc(100% - 0.75rem);
86+
}
87+
6888
.input-label {
6989
@apply .block .uppercase .tracking-wide .text-neutral-800 .text-xs .font-bold .mb-2;
7090
}

0 commit comments

Comments
 (0)