table.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @use "sass:map";
  2. @use "src/css/quasar.variables.scss";
  3. .softpar-table {
  4. padding-left: 16px !important;
  5. padding-right: 16px !important;
  6. .body--dark & {
  7. --table-bg-color: #{map.get($colors-dark, "surface")}; // Using our dark background
  8. --table-border-color: #{map.get($colors-dark, "surface-light")}; // Darker border
  9. --table-header-color: #{map.get($colors-dark, "text")}; // Light text for dark mode
  10. }
  11. .body--light & {
  12. --table-bg-color: #{map.get($colors, "surface")}; // Light background
  13. --table-border-color: #{map.get($colors, "surface-light")}; // Border color
  14. --table-header-color: #{map.get($colors, "text")}; // Dark text for light mode
  15. }
  16. :deep(.q-table) {
  17. thead tr:first-child th {
  18. background-color: $primary !important;
  19. }
  20. thead tr th {
  21. text-transform: uppercase;
  22. position: sticky;
  23. z-index: 1;
  24. }
  25. thead tr:first-child th {
  26. top: 0;
  27. }
  28. &.q-table--loading thead tr:last-child th {
  29. top: 48px;
  30. }
  31. }
  32. tr {
  33. background-color: var(--table-bg-color) !important;
  34. }
  35. .q-table__middle {
  36. border: 0.5px solid var(--table-border-color);
  37. box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
  38. border-radius: 4px;
  39. }
  40. .q-table__top {
  41. padding-top: 16px;
  42. padding-left: 0px;
  43. padding-right: 0px;
  44. padding-bottom: 16px;
  45. }
  46. .q-table th {
  47. font-weight: normal;
  48. font-family: "Roboto";
  49. font-style: normal;
  50. font-weight: 500;
  51. font-size: 14px;
  52. line-height: 16px;
  53. letter-spacing: 0.1px;
  54. color: var(--table-header-color);
  55. }
  56. }
  57. .ativo {
  58. justify-content: center;
  59. padding: 5px 12px;
  60. gap: 10px;
  61. border-radius: 24px;
  62. width: fit-content;
  63. margin-right: auto;
  64. margin-left: auto;
  65. .body--dark & {
  66. background: none;
  67. border: 1px solid #{map.get($colors, "positive-1")};
  68. }
  69. .body--light & {
  70. background: #{map.get($colors, "positive-1")};
  71. border: none;
  72. }
  73. }
  74. .inativo {
  75. justify-content: center;
  76. padding: 5px 12px;
  77. gap: 10px;
  78. border-radius: 24px;
  79. width: fit-content;
  80. margin-right: auto;
  81. margin-left: auto;
  82. .body--dark & {
  83. background: none;
  84. border: 1px solid #{map.get($colors, "negative-1")};
  85. }
  86. .body--light & {
  87. background: #{map.get($colors, "negative-1")};
  88. border: none;
  89. }
  90. }
  91. .rejeitado {
  92. justify-content: center;
  93. padding: 5px 12px;
  94. gap: 10px;
  95. border-radius: 24px;
  96. width: fit-content;
  97. margin-right: auto;
  98. margin-left: auto;
  99. .body--dark & {
  100. background: none;
  101. border: 1px solid #{map.get($colors, "negative-1")};
  102. }
  103. .body--light & {
  104. background: #{map.get($colors, "negative-1")};
  105. border: none;
  106. }
  107. }
  108. .gerado {
  109. justify-content: center;
  110. padding: 5px 12px;
  111. gap: 10px;
  112. border-radius: 24px;
  113. width: fit-content;
  114. margin-right: auto;
  115. margin-left: auto;
  116. .body--dark & {
  117. background: none;
  118. border: 1px solid #{map.get($colors, "primary-1")};
  119. }
  120. .body--light & {
  121. background: #{map.get($colors, "primary-1")};
  122. border: none;
  123. }
  124. }
  125. .pendente {
  126. justify-content: center;
  127. padding: 5px 12px;
  128. gap: 10px;
  129. border-radius: 24px;
  130. width: fit-content;
  131. margin-right: auto;
  132. margin-left: auto;
  133. .body--dark & {
  134. background: none;
  135. border: 1px solid #{map.get($colors, "warning")};
  136. }
  137. .body--light & {
  138. background: #{map.get($colors, "warning")};
  139. border: none;
  140. }
  141. }
  142. .table-bottom {
  143. .q-table__top {
  144. .body--light & {
  145. background: #{map.get($colors, "page")};
  146. }
  147. .body--dark & {
  148. background: #{map.get($colors, "background-3")};
  149. }
  150. }
  151. .q-table__bottom {
  152. .body--light & {
  153. background: #{map.get($colors, "page")};
  154. }
  155. .body--dark & {
  156. background: #{map.get($colors, "background-3")};
  157. }
  158. }
  159. }
  160. .q-table__grid-item-card {
  161. .body--light & {
  162. background: #{map.get($colors, "dark")};
  163. }
  164. .body--dark & {
  165. background: #{map.get($colors, "background-3")};
  166. }
  167. }