Skip to content

Match filament select field style #113

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions resources/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,48 @@ html.dark .treeselect > .treeselect-input {
background: transparent;
}

.treeselect-list__empty-icon {
display: none;
}

.treeselect-input__edit::placeholder, .treeselect-list__empty {
--tw-text-opacity: 1;
color: rgba(var(--gray-400), var(--tw-text-opacity));
cursor: default;
}

.treeselect-input__clear svg {
display: none;
}

.treeselect-input__clear {
background-color: transparent;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMSIgaGVpZ2h0PSIyMSI+PGcgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi41OTIuMDQ0IDE4LjM2NCAxOC4zNjQtMi41NDggMi41NDhMLjA0NCAyLjU5MnoiLz48cGF0aCBkPSJNMCAxOC4zNjQgMTguMzY0IDBsMi41NDggMi41NDhMMi41NDggMjAuOTEyeiIvPjwvZz48L3N2Zz4=);
background-position: 50%;
background-repeat: no-repeat;
background-size: .7142em .7142em;
border-width: 0;
inset-inline-end: 0;
margin-inline-end: 2.25rem;
opacity: .5;
outline: 2px solid transparent;
outline-offset: 2px;
padding: 0;
position: absolute;
text-indent: -9999px;
top: calc(50% - 0.38em);
transition-duration: 75ms;
transition-property: opacity;
transition-timing-function: cubic-bezier(.4,0,.2,1);
width: 1rem;
height: 10px;
}

.treeselect-list__empty {
padding-top: 18px;
padding-bottom: 18px;
}

.treeselect-input__tags-count {
margin-left: 9px;
}
Expand Down Expand Up @@ -259,3 +301,11 @@ html.dark
[dir='rtl'] .treeselect-input {
padding: 2px 4px 2px 40px;
}

.treeselect-input__arrow svg, .treeselect-input__arrow svg:hover {
stroke: #6b7280;
height: 20px;
min-width: 18px;
width: 15px;
cursor: auto;
}
Loading