globals.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. @import '@fontsource/open-sans/300.css';
  2. @import '@fontsource/open-sans/400.css';
  3. @import '@fontsource/open-sans/600.css';
  4. @import '@fontsource/open-sans/800.css';
  5. @import '@fontsource/poppins/400.css';
  6. @import '@fontsource/poppins/600.css';
  7. @import './mixins.scss';
  8. :root {
  9. --content-padding: 12px;
  10. --module-spacing: 12px; // margin size between lines of stuff, if needed
  11. --header-height: 4.3rem; // needed for making main content scrollable;
  12. --footer-height: 2.5rem; // needed for making main content scrollable;
  13. --content-height: calc(100vh - var(--header-height));
  14. --replacement-bar-height: 46px; // needed for making main content scrollable on mobile;
  15. }
  16. ::selection {
  17. background-color: var(--theme-color-palette-12);
  18. }
  19. html {
  20. font-size: clamp(15px, 1.35vw, 16px);
  21. }
  22. body {
  23. font-family: var(--theme-text-body-font-family);
  24. line-height: 1.5em;
  25. margin: 0;
  26. background-color: var(--theme-color-background-main);
  27. div,
  28. h1,
  29. h2,
  30. h3,
  31. h4,
  32. h5,
  33. h6,
  34. p {
  35. padding: 0;
  36. margin-top: revert;
  37. margin-bottom: revert;
  38. }
  39. h1,
  40. h2,
  41. h3,
  42. h4,
  43. h5,
  44. h6 {
  45. font-family: var(--theme-text-display-font-family);
  46. color: unset; // reset some colors from global.less file
  47. }
  48. h1 {
  49. font-size: 2em;
  50. }
  51. h2 {
  52. font-size: 1.5em;
  53. font-weight: 400;
  54. }
  55. h3 {
  56. font-family: var(--theme-text-body-font-family);
  57. font-size: 1.25em;
  58. font-weight: 500;
  59. }
  60. h4 {
  61. font-size: 1em;
  62. }
  63. ul {
  64. list-style: square;
  65. }
  66. ul,
  67. ol {
  68. margin: 0.7em 0 0 0;
  69. padding: 0 1em;
  70. ul,
  71. ol {
  72. margin: 0;
  73. }
  74. li {
  75. margin: 0.175em 0 0 0;
  76. }
  77. }
  78. a {
  79. color: var(--theme-color-action);
  80. word-break: break-word;
  81. &:hover {
  82. color: var(--theme-color-action-hover);
  83. }
  84. }
  85. strong,
  86. b {
  87. font-weight: 700;
  88. }
  89. }
  90. .emoji {
  91. height: 30px;
  92. margin-left: 5px;
  93. margin-right: 5px;
  94. }