_navigation.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. .navigation {
  2. height: 6rem;
  3. width: 100%;
  4. a,
  5. span {
  6. display: inline;
  7. font-size: 1.7rem;
  8. font-family: $font-family;
  9. font-weight: 600;
  10. color: $fg-color;
  11. }
  12. a {
  13. &:hover,
  14. &:focus {
  15. color: $link-color;
  16. }
  17. }
  18. .navigation-title {
  19. letter-spacing: 0.1rem;
  20. text-transform: uppercase;
  21. }
  22. .navigation-list {
  23. float: right;
  24. list-style: none;
  25. margin-bottom: 0;
  26. margin-top: 0;
  27. @media only screen and (max-width: 768px) {
  28. position: relative;
  29. top: 2rem;
  30. right: 0;
  31. z-index: 5;
  32. visibility: hidden;
  33. opacity: 0;
  34. padding: 0;
  35. max-height: 0;
  36. width: 100%;
  37. background-color: $bg-color;
  38. border-top: solid 2px $alt-bg-color;
  39. border-bottom: solid 2px $alt-bg-color;
  40. transition: opacity 0.25s, max-height 0.15s linear;
  41. }
  42. .navigation-item {
  43. float: left;
  44. margin: 0;
  45. position: relative;
  46. @media only screen and (max-width: 768px) {
  47. float: none !important;
  48. text-align: center;
  49. a,
  50. span {
  51. line-height: 5rem;
  52. }
  53. }
  54. a,
  55. span {
  56. margin-left: 1rem;
  57. margin-right: 1rem;
  58. }
  59. }
  60. .separator {
  61. @media only screen and (max-width: 768px) {
  62. display: none;
  63. }
  64. }
  65. .menu-separator {
  66. @media only screen and (max-width: 768px) {
  67. border-top: 2px solid $fg-color;
  68. margin: 0 8rem;
  69. span {
  70. display: none;
  71. }
  72. }
  73. }
  74. }
  75. #dark-mode-toggle {
  76. margin: 1.7rem 0;
  77. font-size: 2.4rem;
  78. line-height: inherit;
  79. bottom: 2rem;
  80. left: 2rem;
  81. z-index: 100;
  82. position: fixed;
  83. }
  84. #menu-toggle {
  85. display: none;
  86. @media only screen and (max-width: 768px) {
  87. display: initial;
  88. position: relative;
  89. visibility: hidden;
  90. &:checked+label>i {
  91. color: $alt-bg-color;
  92. }
  93. &:checked+label+ul {
  94. visibility: visible;
  95. opacity: 1;
  96. max-height: 100rem;
  97. }
  98. &:focus-visible+label {
  99. outline-style: auto;
  100. }
  101. }
  102. }
  103. .menu-button {
  104. display: none;
  105. @media only screen and (max-width: 768px) {
  106. position: relative;
  107. display: block;
  108. font-size: 2.4rem;
  109. font-weight: 400;
  110. }
  111. i {
  112. &:hover,
  113. &:focus {
  114. color: $alt-fg-color;
  115. }
  116. }
  117. }
  118. i {
  119. color: $fg-color;
  120. cursor: pointer;
  121. &:hover,
  122. &:focus {
  123. color: $link-color;
  124. }
  125. }
  126. }