table.scss 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .table-container {
  2. flex: 1;
  3. margin-bottom: var(--spacing-06);
  4. background-color: var(--white);
  5. padding: var(--spacing-04);
  6. .table {
  7. margin-bottom: initial;
  8. }
  9. }
  10. .table {
  11. th,
  12. td {
  13. a {
  14. text-decoration: none;
  15. }
  16. }
  17. tbody {
  18. tr {
  19. &:last-child {
  20. td,
  21. th {
  22. border-bottom-width: 0;
  23. }
  24. }
  25. th[scope='row'] {
  26. font-weight: normal;
  27. }
  28. }
  29. }
  30. }
  31. .table-container-bordered {
  32. padding: var(--spacing-04);
  33. border-color: $table-border-color;
  34. border-radius: var(--border-radius-base);
  35. border-width: var(--bs-border-width);
  36. border-style: solid;
  37. }
  38. .table-striped {
  39. tr,
  40. td,
  41. th {
  42. border-top-width: 0;
  43. border-bottom-width: 0;
  44. }
  45. > tbody > tr:nth-of-type(#{$table-striped-order}) {
  46. &:hover > * {
  47. --#{$prefix}table-hover-bg: var(--bg-light-tertiary);
  48. }
  49. }
  50. }