_navigation.scss 2.3 KB

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