table.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. @use "sass:map";
  2. @use "src/css/quasar.variables.scss";
  3. .softpar-table {
  4. --table-border-color: #{map.get($colors, "surface-light")};
  5. --table-header-color: #{map.get($colors, "text")};
  6. --table-ring-color: #c0c0c0c0;
  7. padding-left: 16px !important;
  8. padding-right: 16px !important;
  9. border-radius: 8px !important;
  10. box-shadow: 0 0 0 1px var(--table-ring-color);
  11. background-color: transparent;
  12. :deep(.q-table) {
  13. thead tr:first-child th {
  14. background-color: $primary !important;
  15. }
  16. thead tr th {
  17. text-transform: uppercase;
  18. position: sticky;
  19. z-index: 1;
  20. }
  21. thead tr:first-child th {
  22. top: 0;
  23. }
  24. &.q-table--loading thead tr:last-child th {
  25. top: 48px;
  26. }
  27. }
  28. tr {
  29. background-color: var(--table-bg-color) !important;
  30. }
  31. .q-table__top {
  32. padding-top: 16px;
  33. padding-left: 0px;
  34. padding-right: 0px;
  35. padding-bottom: 16px;
  36. }
  37. .q-table th {
  38. font-weight: normal;
  39. font-family: "Roboto";
  40. font-style: normal;
  41. font-weight: 500;
  42. font-size: 14px;
  43. line-height: 16px;
  44. letter-spacing: 0.1px;
  45. color: var(--table-header-color);
  46. }
  47. }
  48. .ativo {
  49. justify-content: center;
  50. padding: 5px 12px;
  51. gap: 10px;
  52. border-radius: 24px;
  53. width: fit-content;
  54. margin-right: auto;
  55. margin-left: auto;
  56. background: #{map.get($colors, "positive-1")};
  57. border: none;
  58. }
  59. .inativo {
  60. justify-content: center;
  61. padding: 5px 12px;
  62. gap: 10px;
  63. border-radius: 24px;
  64. width: fit-content;
  65. margin-right: auto;
  66. margin-left: auto;
  67. background: #{map.get($colors, "negative-1")};
  68. border: none;
  69. }
  70. .rejeitado {
  71. justify-content: center;
  72. padding: 5px 12px;
  73. gap: 10px;
  74. border-radius: 24px;
  75. width: fit-content;
  76. margin-right: auto;
  77. margin-left: auto;
  78. background: #{map.get($colors, "negative-1")};
  79. border: none;
  80. }
  81. .gerado {
  82. justify-content: center;
  83. padding: 5px 12px;
  84. gap: 10px;
  85. border-radius: 24px;
  86. width: fit-content;
  87. margin-right: auto;
  88. margin-left: auto;
  89. background: #{map.get($colors, "primary-1")};
  90. border: none;
  91. }
  92. .pendente {
  93. justify-content: center;
  94. padding: 5px 12px;
  95. gap: 10px;
  96. border-radius: 24px;
  97. width: fit-content;
  98. margin-right: auto;
  99. margin-left: auto;
  100. background: #{map.get($colors, "warning")};
  101. border: none;
  102. }
  103. .table-bottom {
  104. .q-table__top {
  105. background: #{map.get($colors, "page")};
  106. }
  107. .q-table__bottom {
  108. background: #{map.get($colors, "page")};
  109. }
  110. }
  111. .q-table__grid-item-card {
  112. background: #{map.get($colors, "dark")};
  113. }