_base.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Body resets
  2. //
  3. // Update the foundational and global aspects of the page.
  4. * {
  5. -webkit-box-sizing: border-box;
  6. -moz-box-sizing: border-box;
  7. box-sizing: border-box;
  8. }
  9. html,
  10. body {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. html {
  15. font-family: $root-font-family;
  16. font-size: $root-font-size;
  17. line-height: $root-line-height;
  18. @media (min-width: $large-breakpoint) {
  19. font-size: $large-font-size;
  20. }
  21. }
  22. body {
  23. color: $body-color;
  24. background-color: $body-bg;
  25. -webkit-text-size-adjust: 100%;
  26. -ms-text-size-adjust: 100%;
  27. }
  28. // No `:visited` state is required by default (browsers will use `a`)
  29. a {
  30. color: $link-color;
  31. text-decoration: none;
  32. // `:focus` is linked to `:hover` for basic accessibility
  33. &:hover,
  34. &:focus {
  35. text-decoration: underline;
  36. }
  37. strong {
  38. color: inherit;
  39. }
  40. }
  41. img {
  42. display: block;
  43. max-width: 100%;
  44. margin: 0 0 1rem;
  45. border-radius: 5px;
  46. }
  47. table {
  48. margin-bottom: 1rem;
  49. width: 100%;
  50. font-size: 85%;
  51. border: 1px solid #e5e5e5;
  52. border-collapse: collapse;
  53. }
  54. td,
  55. th {
  56. padding: .25rem .5rem;
  57. border: 1px solid #e5e5e5;
  58. }
  59. th {
  60. text-align: left;
  61. }
  62. tbody tr:nth-child(odd) td,
  63. tbody tr:nth-child(odd) th {
  64. background-color: #f9f9f9;
  65. }