tables.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .table {
  2. width: 100%;
  3. max-width: 100%;
  4. border-spacing: 0;
  5. border-collapse: collapse;
  6. margin-bottom: 20px;
  7. th,
  8. td {
  9. padding: 8px;
  10. line-height: 18px;
  11. vertical-align: top;
  12. border-top: 1px solid $color1;
  13. text-align: left;
  14. }
  15. & > thead > tr > th {
  16. vertical-align: bottom;
  17. border-bottom: 2px solid $color1;
  18. border-top: 0;
  19. font-weight: 500;
  20. }
  21. & > tbody > tr > th {
  22. font-weight: 500;
  23. }
  24. & > tbody > tr:nth-child(odd) > td,
  25. & > tbody > tr:nth-child(odd) > th {
  26. background: $color1;
  27. }
  28. a {
  29. color: $color4;
  30. text-decoration: underline;
  31. &:hover {
  32. text-decoration: none;
  33. }
  34. }
  35. strong {
  36. font-weight: 500;
  37. }
  38. }
  39. samp {
  40. font-family: 'mastodon-font-monospace', monospace;
  41. }
  42. a.table-action-link {
  43. text-decoration: none;
  44. display: inline-block;
  45. margin-right: 5px;
  46. padding: 0 10px;
  47. color: rgba($color5, 0.7);
  48. font-weight: 500;
  49. &:hover {
  50. color: $color5;
  51. }
  52. i.fa {
  53. font-weight: 400;
  54. margin-right: 5px;
  55. }
  56. }