summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/list.css
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-12-11 00:46:07 +0000
committerDavid Hill <[email protected]>2025-12-11 00:46:07 +0000
commita468044c9fb4ece1f1ae4685d46eb875751b66d8 (patch)
treea1879744be543886fa1f50190aff37db8b218c52 /packages/ui/src/components/list.css
parentf0274fd29f7301b8ca79b1573b26efd8d08f31d6 (diff)
parentfadeed1fa4caacf34054b231784513a841745766 (diff)
downloadopencode-a468044c9fb4ece1f1ae4685d46eb875751b66d8.tar.gz
opencode-a468044c9fb4ece1f1ae4685d46eb875751b66d8.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/ui/src/components/list.css')
-rw-r--r--packages/ui/src/components/list.css115
1 files changed, 115 insertions, 0 deletions
diff --git a/packages/ui/src/components/list.css b/packages/ui/src/components/list.css
new file mode 100644
index 000000000..38dcb773b
--- /dev/null
+++ b/packages/ui/src/components/list.css
@@ -0,0 +1,115 @@
+[data-component="list"] {
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+
+ [data-slot="list-empty-state"] {
+ display: flex;
+ padding: 32px 0px;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ gap: 8px;
+ align-self: stretch;
+
+ [data-slot="list-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="list-filter"] {
+ color: var(--text-strong);
+ }
+ }
+
+ [data-slot="list-group"] {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+
+ [data-slot="list-header"] {
+ display: flex;
+ height: 28px;
+ padding: 0 10px;
+ justify-content: space-between;
+ align-items: center;
+ align-self: stretch;
+ background: var(--surface-raised-stronger-non-alpha);
+ position: sticky;
+ top: 0;
+
+ color: var(--text-base);
+
+ /* text-14-medium */
+ font-family: var(--font-family-sans);
+ font-size: 14px;
+ font-style: normal;
+ font-weight: var(--font-weight-medium);
+ line-height: var(--line-height-large); /* 142.857% */
+ letter-spacing: var(--letter-spacing-normal);
+ }
+
+ [data-slot="list-items"] {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ align-self: stretch;
+
+ [data-slot="list-item"] {
+ display: flex;
+ width: 100%;
+ height: 28px;
+ padding: 4px 10px;
+ align-items: center;
+ color: var(--text-strong);
+
+ /* text-14-medium */
+ font-family: var(--font-family-sans);
+ font-size: 14px;
+ font-style: normal;
+ font-weight: var(--font-weight-medium);
+ line-height: var(--line-height-large); /* 142.857% */
+ letter-spacing: var(--letter-spacing-normal);
+
+ [data-slot="list-item-selected-icon"] {
+ color: var(--icon-strong-base);
+ }
+ [data-slot="list-item-active-icon"] {
+ display: none;
+ color: var(--icon-strong-base);
+ }
+
+ &[data-active="true"] {
+ border-radius: var(--radius-md);
+ background: var(--surface-raised-base-hover);
+ [data-slot="list-item-active-icon"] {
+ display: block;
+ }
+ [data-slot="list-item-extra-icon"] {
+ color: var(--icon-strong-base) !important;
+ }
+ }
+ &:active {
+ background: var(--surface-raised-base-active);
+ }
+ &:hover {
+ [data-slot="list-item-extra-icon"] {
+ color: var(--icon-strong-base) !important;
+ }
+ }
+ }
+ }
+ }
+}