select-dialog.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. [data-slot="select-dialog-content"] {
  2. width: 100%;
  3. display: flex;
  4. flex-direction: column;
  5. overflow: hidden;
  6. gap: 20px;
  7. padding: 0 10px;
  8. }
  9. [data-component="select-dialog-input"] {
  10. display: flex;
  11. height: 40px;
  12. flex-shrink: 0;
  13. padding: 4px 10px 4px 16px;
  14. align-items: center;
  15. gap: 12px;
  16. align-self: stretch;
  17. border-radius: var(--radius-md);
  18. background: var(--surface-base);
  19. [data-slot="select-dialog-input-container"] {
  20. display: flex;
  21. align-items: center;
  22. gap: 12px;
  23. flex: 1 0 0;
  24. /* [data-slot="select-dialog-icon"] {} */
  25. [data-slot="select-dialog-input"] {
  26. width: 100%;
  27. }
  28. }
  29. /* [data-slot="select-dialog-clear-button"] {} */
  30. }
  31. [data-component="select-dialog"] {
  32. display: flex;
  33. flex-direction: column;
  34. gap: 20px;
  35. [data-slot="select-dialog-empty-state"] {
  36. display: flex;
  37. padding: 32px 0px;
  38. flex-direction: column;
  39. justify-content: center;
  40. align-items: center;
  41. gap: 8px;
  42. align-self: stretch;
  43. [data-slot="select-dialog-message"] {
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. gap: 2px;
  48. color: var(--text-weak);
  49. text-align: center;
  50. /* text-14-regular */
  51. font-family: var(--font-family-sans);
  52. font-size: 14px;
  53. font-style: normal;
  54. font-weight: var(--font-weight-regular);
  55. line-height: var(--line-height-large); /* 142.857% */
  56. letter-spacing: var(--letter-spacing-normal);
  57. }
  58. [data-slot="select-dialog-filter"] {
  59. color: var(--text-strong);
  60. }
  61. }
  62. [data-slot="select-dialog-group"] {
  63. position: relative;
  64. display: flex;
  65. flex-direction: column;
  66. [data-slot="select-dialog-header"] {
  67. display: flex;
  68. height: 28px;
  69. padding: 0 10px;
  70. justify-content: space-between;
  71. align-items: center;
  72. align-self: stretch;
  73. background: var(--surface-raised-stronger-non-alpha);
  74. position: sticky;
  75. top: 0;
  76. color: var(--text-base);
  77. /* text-14-medium */
  78. font-family: var(--font-family-sans);
  79. font-size: 14px;
  80. font-style: normal;
  81. font-weight: var(--font-weight-medium);
  82. line-height: var(--line-height-large); /* 142.857% */
  83. letter-spacing: var(--letter-spacing-normal);
  84. }
  85. [data-slot="select-dialog-list"] {
  86. display: flex;
  87. flex-direction: column;
  88. align-items: flex-start;
  89. align-self: stretch;
  90. [data-slot="select-dialog-item"] {
  91. display: flex;
  92. width: 100%;
  93. height: 28px;
  94. padding: 4px 10px;
  95. align-items: center;
  96. color: var(--text-strong);
  97. /* text-14-medium */
  98. font-family: var(--font-family-sans);
  99. font-size: 14px;
  100. font-style: normal;
  101. font-weight: var(--font-weight-medium);
  102. line-height: var(--line-height-large); /* 142.857% */
  103. letter-spacing: var(--letter-spacing-normal);
  104. [data-slot="select-dialog-item-selected-icon"] {
  105. color: var(--icon-strong-base);
  106. }
  107. [data-slot="select-dialog-item-active-icon"] {
  108. display: none;
  109. color: var(--icon-strong-base);
  110. }
  111. &[data-active="true"] {
  112. border-radius: var(--radius-md);
  113. background: var(--surface-raised-base-hover);
  114. [data-slot="select-dialog-item-active-icon"] {
  115. display: block;
  116. }
  117. }
  118. &:active {
  119. background: var(--surface-raised-base-active);
  120. }
  121. }
  122. }
  123. }
  124. }