| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- @use "sass:map";
- @use "src/css/quasar.variables.scss";
- .softpar-table {
- padding-left: 16px !important;
- padding-right: 16px !important;
- .body--dark & {
- --table-bg-color: #{map.get($colors-dark, "surface")}; // Using our dark background
- --table-border-color: #{map.get($colors-dark, "surface-light")}; // Darker border
- --table-header-color: #{map.get($colors-dark, "text")}; // Light text for dark mode
- }
- .body--light & {
- --table-bg-color: #{map.get($colors, "surface")}; // Light background
- --table-border-color: #{map.get($colors, "surface-light")}; // Border color
- --table-header-color: #{map.get($colors, "text")}; // Dark text for light mode
- }
- :deep(.q-table) {
- thead tr:first-child th {
- background-color: $primary !important;
- }
- thead tr th {
- text-transform: uppercase;
- position: sticky;
- z-index: 1;
- }
- thead tr:first-child th {
- top: 0;
- }
- &.q-table--loading thead tr:last-child th {
- top: 48px;
- }
- }
- tr {
- background-color: var(--table-bg-color) !important;
- }
- .q-table__middle {
- border: 0.5px solid var(--table-border-color);
- box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
- border-radius: 4px;
- }
- .q-table__top {
- padding-top: 16px;
- padding-left: 0px;
- padding-right: 0px;
- padding-bottom: 16px;
- }
- .q-table th {
- font-weight: normal;
- font-family: "Roboto";
- font-style: normal;
- font-weight: 500;
- font-size: 14px;
- line-height: 16px;
- letter-spacing: 0.1px;
- color: var(--table-header-color);
- }
- }
- .ativo {
- justify-content: center;
- padding: 5px 12px;
- gap: 10px;
- border-radius: 24px;
- width: fit-content;
- margin-right: auto;
- margin-left: auto;
- .body--dark & {
- background: none;
- border: 1px solid #{map.get($colors, "positive-1")};
- }
- .body--light & {
- background: #{map.get($colors, "positive-1")};
- border: none;
- }
- }
- .inativo {
- justify-content: center;
- padding: 5px 12px;
- gap: 10px;
- border-radius: 24px;
- width: fit-content;
- margin-right: auto;
- margin-left: auto;
- .body--dark & {
- background: none;
- border: 1px solid #{map.get($colors, "negative-1")};
- }
- .body--light & {
- background: #{map.get($colors, "negative-1")};
- border: none;
- }
- }
- .rejeitado {
- justify-content: center;
- padding: 5px 12px;
- gap: 10px;
- border-radius: 24px;
- width: fit-content;
- margin-right: auto;
- margin-left: auto;
- .body--dark & {
- background: none;
- border: 1px solid #{map.get($colors, "negative-1")};
- }
- .body--light & {
- background: #{map.get($colors, "negative-1")};
- border: none;
- }
- }
- .gerado {
- justify-content: center;
- padding: 5px 12px;
- gap: 10px;
- border-radius: 24px;
- width: fit-content;
- margin-right: auto;
- margin-left: auto;
- .body--dark & {
- background: none;
- border: 1px solid #{map.get($colors, "primary-1")};
- }
- .body--light & {
- background: #{map.get($colors, "primary-1")};
- border: none;
- }
- }
- .pendente {
- justify-content: center;
- padding: 5px 12px;
- gap: 10px;
- border-radius: 24px;
- width: fit-content;
- margin-right: auto;
- margin-left: auto;
- .body--dark & {
- background: none;
- border: 1px solid #{map.get($colors, "warning")};
- }
- .body--light & {
- background: #{map.get($colors, "warning")};
- border: none;
- }
- }
- .table-bottom {
- .q-table__top {
- .body--light & {
- background: #{map.get($colors, "page")};
- }
- .body--dark & {
- background: #{map.get($colors, "background-3")};
- }
- }
- .q-table__bottom {
- .body--light & {
- background: #{map.get($colors, "page")};
- }
- .body--dark & {
- background: #{map.get($colors, "background-3")};
- }
- }
- }
- .q-table__grid-item-card {
- .body--light & {
- background: #{map.get($colors, "dark")};
- }
- .body--dark & {
- background: #{map.get($colors, "background-3")};
- }
- }
|