_tables.scss 838 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. table {
  2. background: $lightergrey;
  3. border: 1px solid $lightgrey;
  4. border-collapse: collapse;
  5. display:table;
  6. margin: 20px 0;
  7. thead {
  8. border-bottom: 1px solid $lightgrey;
  9. display: table-header-group;
  10. }
  11. tbody {
  12. display: table-row-group;
  13. }
  14. tr {
  15. display: table-row;
  16. &:nth-of-type(odd) {
  17. background: $greyish;
  18. }
  19. th, td {
  20. border-right: 1px dotted $lightgrey;
  21. display: table-cell;
  22. font-size: 14px;
  23. line-height: 1.3em;
  24. padding: 10px;
  25. text-align: left;
  26. &:last-of-type {
  27. border-right: 0;
  28. }
  29. code {
  30. color: $green;
  31. display: inline-block;
  32. font-size: 12px;
  33. }
  34. }
  35. th {
  36. color: #000000;
  37. font-weight: bold;
  38. font-family: $header-font-family;
  39. text-transform: uppercase;
  40. }
  41. }
  42. }