model-section.module.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .root {}
  2. [data-slot="section-title"] {
  3. display: flex;
  4. flex-direction: column;
  5. gap: 0.5rem;
  6. }
  7. [data-slot="section-title"] h2 {
  8. margin: 0;
  9. font-size: 1.25rem;
  10. font-weight: 600;
  11. color: var(--color-text);
  12. }
  13. [data-slot="section-title"] p {
  14. margin: 0;
  15. color: var(--color-text-secondary);
  16. font-size: 0.875rem;
  17. }
  18. [data-slot="models-list"] {
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. [data-slot="models-table"] {
  23. overflow-x: auto;
  24. }
  25. [data-slot="models-table-element"] {
  26. width: 100%;
  27. border-collapse: collapse;
  28. font-size: var(--font-size-sm);
  29. thead {
  30. border-bottom: 1px solid var(--color-border);
  31. }
  32. th {
  33. padding: var(--space-3) var(--space-4);
  34. text-align: left;
  35. font-weight: normal;
  36. color: var(--color-text-muted);
  37. text-transform: uppercase;
  38. }
  39. td {
  40. padding: var(--space-3) var(--space-4);
  41. border-bottom: 1px solid var(--color-border-muted);
  42. color: var(--color-text-muted);
  43. font-family: var(--font-mono);
  44. &[data-slot="model-name"] {
  45. color: var(--color-text);
  46. font-family: var(--font-mono);
  47. font-weight: 500;
  48. }
  49. &[data-slot="training-data"] {
  50. text-align: center;
  51. color: var(--color-text);
  52. }
  53. &[data-slot="model-status"] {
  54. text-align: left;
  55. color: var(--color-text);
  56. }
  57. &[data-slot="model-toggle"] {
  58. text-align: left;
  59. font-family: var(--font-sans);
  60. }
  61. }
  62. tbody tr {
  63. &[data-enabled="false"] {
  64. opacity: 0.6;
  65. }
  66. &:last-child td {
  67. border-bottom: none;
  68. }
  69. }
  70. @media (max-width: 40rem) {
  71. th,
  72. td {
  73. padding: var(--space-2) var(--space-3);
  74. font-size: var(--font-size-xs);
  75. }
  76. th {
  77. &:nth-child(2)
  78. /* Training Data */
  79. {
  80. display: none;
  81. }
  82. }
  83. td {
  84. &:nth-child(2)
  85. /* Training Data */
  86. {
  87. display: none;
  88. }
  89. }
  90. }
  91. }
  92. [data-component="empty-state"] {
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. padding: 3rem;
  97. color: var(--color-text-secondary);
  98. font-size: 0.875rem;
  99. }