Files
opencode/packages/ui/src/components/select-dialog.css
2025-10-22 17:31:49 -05:00

110 lines
2.3 KiB
CSS

[data-component="select-dialog-input"] {
display: flex;
height: 40px;
flex-shrink: 0;
padding: 4px 10px 4px 6px;
align-items: center;
gap: 12px;
align-self: stretch;
border-radius: 8px;
background: var(--surface-base);
[data-slot="input-container"] {
display: flex;
align-items: center;
gap: 12px;
flex: 1 0 0;
/* [data-slot="icon"] {} */
[data-slot="input"] {
width: 100%;
}
}
/* [data-slot="clear-button"] {} */
}
[data-component="select-dialog"] {
display: flex;
flex-direction: column;
gap: 8px;
[data-slot="empty-state"] {
display: flex;
padding: 32px 160px;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 8px;
align-self: stretch;
[data-slot="message"] {
display: flex;
justify-content: center;
align-items: center;
gap: 2px;
color: var(--text-weak);
text-align: center;
/* text-14-regular */
font-family: var(--font-family-sans);
font-size: 14px;
font-style: normal;
font-weight: var(--font-weight-regular);
line-height: var(--line-height-large); /* 142.857% */
letter-spacing: var(--letter-spacing-normal);
}
[data-slot="filter"] {
color: var(--text-strong);
}
}
[data-slot="group"] {
display: flex;
flex-direction: column;
gap: 4px;
[data-slot="header"] {
display: flex;
padding: 4px 8px;
justify-content: space-between;
align-items: center;
align-self: stretch;
color: var(--text-weak);
/* text-12-medium */
font-family: var(--font-family-sans);
font-size: var(--font-size-small);
font-style: normal;
font-weight: var(--font-weight-medium);
line-height: var(--line-height-large); /* 166.667% */
letter-spacing: var(--letter-spacing-normal);
}
[data-slot="list"] {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
align-self: stretch;
[data-slot="item"] {
display: flex;
width: 100%;
height: 32px;
padding: 4px 8px 4px 4px;
align-items: center;
&[data-active="true"] {
border-radius: 8px;
background: var(--surface-raised-base-hover);
}
}
}
}
}