_tables.scss 759 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .table {
  2. caption-side: top;
  3. th,
  4. td {
  5. text-shadow: 0 1px 0 #fff;
  6. vertical-align: middle;
  7. > span:empty::before {
  8. content: "\200b";
  9. }
  10. }
  11. th {
  12. color: $th-color;
  13. }
  14. td {
  15. touch-action: manipulation;
  16. }
  17. thead th {
  18. border-right: 1px solid #fff;
  19. background-image: linear-gradient(#fff, #ccc);
  20. }
  21. caption {
  22. background-color: $th-background;
  23. font-weight: bold;
  24. text-align: center;
  25. }
  26. }
  27. .table-hover {
  28. tbody tr {
  29. &:hover {
  30. background: linear-gradient(#ced6df, #b6c6d7);
  31. }
  32. }
  33. }
  34. .table-striped {
  35. > tbody > tr:nth-of-type(#{$table-striped-order}) > th {
  36. color: $th-color;
  37. }
  38. }
  39. @media only screen and (min-width: 768px) {
  40. .table th.position-sticky {
  41. top: 60px;
  42. }
  43. }