Skip to content

Commit a5fc3de

Browse files
authoredMay 30, 2024··
Merge pull request #113 from CodeWithDennis/match-filament-field
Match filament select field style
2 parents e5aea89 + f05ac57 commit a5fc3de

File tree

4 files changed

+490
-3
lines changed

4 files changed

+490
-3
lines changed
 

‎resources/css/index.css

+50
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,48 @@ html.dark .treeselect > .treeselect-input {
2424
background: transparent;
2525
}
2626

27+
.treeselect-list__empty-icon {
28+
display: none;
29+
}
30+
31+
.treeselect-input__edit::placeholder, .treeselect-list__empty {
32+
--tw-text-opacity: 1;
33+
color: rgba(var(--gray-400), var(--tw-text-opacity));
34+
cursor: default;
35+
}
36+
37+
.treeselect-input__clear svg {
38+
display: none;
39+
}
40+
41+
.treeselect-input__clear {
42+
background-color: transparent;
43+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMSIgaGVpZ2h0PSIyMSI+PGcgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi41OTIuMDQ0IDE4LjM2NCAxOC4zNjQtMi41NDggMi41NDhMLjA0NCAyLjU5MnoiLz48cGF0aCBkPSJNMCAxOC4zNjQgMTguMzY0IDBsMi41NDggMi41NDhMMi41NDggMjAuOTEyeiIvPjwvZz48L3N2Zz4=);
44+
background-position: 50%;
45+
background-repeat: no-repeat;
46+
background-size: .7142em .7142em;
47+
border-width: 0;
48+
inset-inline-end: 0;
49+
margin-inline-end: 2.25rem;
50+
opacity: .5;
51+
outline: 2px solid transparent;
52+
outline-offset: 2px;
53+
padding: 0;
54+
position: absolute;
55+
text-indent: -9999px;
56+
top: calc(50% - 0.38em);
57+
transition-duration: 75ms;
58+
transition-property: opacity;
59+
transition-timing-function: cubic-bezier(.4,0,.2,1);
60+
width: 1rem;
61+
height: 10px;
62+
}
63+
64+
.treeselect-list__empty {
65+
padding-top: 18px;
66+
padding-bottom: 18px;
67+
}
68+
2769
.treeselect-input__tags-count {
2870
margin-left: 9px;
2971
}
@@ -259,3 +301,11 @@ html.dark
259301
[dir='rtl'] .treeselect-input {
260302
padding: 2px 4px 2px 40px;
261303
}
304+
305+
.treeselect-input__arrow svg, .treeselect-input__arrow svg:hover {
306+
stroke: #6b7280;
307+
height: 20px;
308+
min-width: 18px;
309+
width: 15px;
310+
cursor: auto;
311+
}

0 commit comments

Comments
 (0)