main.scss 2.1 KB

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