_navigation.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .navigation {
  2. height: 6.0rem;
  3. width: 100%;
  4. a, span {
  5. display: inline;
  6. font-size: 1.6rem;
  7. font-family: $heading-font-family;
  8. font-weight: 700;
  9. line-height: 6.0rem;
  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: absolute;
  29. top: 6.0rem;
  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, span {
  50. line-height: 5.0rem;
  51. }
  52. }
  53. a, span {
  54. margin-left: 1.0rem;
  55. margin-right: 1.0rem;
  56. }
  57. }
  58. .separator {
  59. @media only screen and (max-width : 768px) {
  60. display: none;
  61. }
  62. }
  63. .menu-separator {
  64. @media only screen and (max-width : 768px) {
  65. border-top: 2px solid $fg-color;
  66. margin: 0 8.0rem;
  67. span {
  68. display: none;
  69. }
  70. }
  71. }
  72. }
  73. #dark-mode-toggle {
  74. margin: 1.7rem 0;
  75. font-size: 2.4rem;
  76. line-height: inherit;
  77. }
  78. #menu-toggle {
  79. display: none;
  80. @media only screen and (max-width : 768px) {
  81. &:checked + label > i {
  82. color: $alt-bg-color;
  83. }
  84. &:checked + label + ul {
  85. visibility: visible;
  86. opacity: 1;
  87. max-height: 100rem;
  88. }
  89. }
  90. }
  91. .menu-button {
  92. display: none;
  93. @media only screen and (max-width : 768px) {
  94. display: block;
  95. margin: 1.8rem 0;
  96. font-size: 2.4rem;
  97. font-weight: 400;
  98. }
  99. }
  100. i {
  101. color: $fg-color;
  102. cursor: pointer;
  103. &:hover,
  104. &:focus {
  105. color: $link-color;
  106. }
  107. }
  108. }