main.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. Removed smooth scrolling implementation in main.js in favor of
  3. simpler css approach.
  4. See: https://css-tricks.com/snippets/jquery/smooth-scrolling/
  5. */
  6. *,
  7. html {
  8. scroll-behavior: smooth !important;
  9. }
  10. body {
  11. position: relative;
  12. }
  13. /*
  14. Fixes anchor overlapping with header.
  15. See: https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors
  16. */
  17. :target::before {
  18. content: '';
  19. display: block;
  20. height: 2em; /* fixed header height*/
  21. margin: -2em 0 0; /* negative fixed header height */
  22. }
  23. body {
  24. background-color: get-light-color('bg-primary');
  25. font-family: 'Mulish';
  26. }
  27. .bg-primary {
  28. background-color: get-light-color('bg-primary') !important;
  29. }
  30. .bg-secondary {
  31. background-color: get-light-color('bg-secondary') !important;
  32. }
  33. .flag-icon {
  34. width: 16px !important;
  35. margin-top: 3px;
  36. margin-right: 3px;
  37. }
  38. .hidden {
  39. display: none !important;
  40. }
  41. .content {
  42. ul > ol,
  43. ol > ul,
  44. ul > ul,
  45. ol > ol,
  46. li > ol,
  47. li > ul {
  48. padding-inline-start: 1rem;
  49. }
  50. }
  51. kbd {
  52. background-color: get-light-color('accent-color');
  53. color: get-light-color('text-over-accent-color');
  54. }
  55. mark {
  56. background-color: get-light-color('highlight-color');
  57. border-radius: 0.25rem;
  58. }
  59. @include media('<=small') {
  60. .skills-section,
  61. .projects-section,
  62. .publications-section {
  63. .container {
  64. padding-left: 0.3rem;
  65. padding-right: 0.3rem;
  66. }
  67. }
  68. .section-holder {
  69. padding-left: 5px;
  70. padding-right: 5px;
  71. }
  72. .skills-section,
  73. .projects-section,
  74. .recent-posts-section,
  75. .achievements-section,
  76. .publications-section {
  77. padding-left: 0;
  78. padding-right: 0;
  79. }
  80. }
  81. html[data-theme='dark'] {
  82. body {
  83. background-color: get-dark-color('bg-primary');
  84. color: get-dark-color('text-color');
  85. }
  86. .bg-primary {
  87. background-color: get-dark-color('bg-primary') !important;
  88. }
  89. .bg-secondary {
  90. background-color: get-dark-color('bg-secondary') !important;
  91. }
  92. kbd {
  93. background-color: get-dark-color('accent-color');
  94. color: get-dark-color('text-over-accent-color');
  95. }
  96. mark {
  97. background-color: get-dark-color('highlight-color');
  98. }
  99. }