list.css 2.9 KB

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