table.scss 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. }
  26. }
  27. }
  28. .table-container-bordered {
  29. padding: var(--spacing-04);
  30. border-color: $table-border-color;
  31. border-radius: var(--border-radius-base);
  32. border-width: var(--bs-border-width);
  33. border-style: solid;
  34. }
  35. .table-hover {
  36. th {
  37. &:hover {
  38. background-color: $table-hover-bg;
  39. }
  40. }
  41. }
  42. .table-striped {
  43. tr,
  44. td,
  45. th {
  46. border-top-width: 0;
  47. border-bottom-width: 0;
  48. }
  49. > tbody > tr:nth-of-type(#{$table-striped-order}) {
  50. &:hover > * {
  51. --#{$prefix}table-hover-bg: var(--bg-light-tertiary);
  52. }
  53. }
  54. }