_navigation.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .navigation {
  2. height: 6.0rem;
  3. width: 100%;
  4. a, span {
  5. display: inline;
  6. font-size: 1.6rem;
  7. text-transform: uppercase;
  8. line-height: 6.0rem;
  9. letter-spacing: 0.1rem;
  10. @media only screen and (max-device-width : 768px) {
  11. font-size: 1.4rem;
  12. }
  13. }
  14. }
  15. .navigation-list {
  16. float: right;
  17. list-style: none;
  18. margin-bottom: 0;
  19. margin-top: 0;
  20. @media only screen and (max-device-width : 768px) {
  21. position: absolute;
  22. top: 6.0rem;
  23. right: 0;
  24. z-index: 5;
  25. visibility: hidden;
  26. opacity: 0;
  27. padding: 0;
  28. max-height: 0;
  29. width: 100%;
  30. background-color: $bg-color;
  31. border-top: solid 2px $alt-bg-color;
  32. border-bottom: solid 2px $alt-bg-color;
  33. transition: opacity 0.25s, max-height 0.15s linear;
  34. }
  35. }
  36. .navigation-item {
  37. float: left;
  38. margin: 0;
  39. position: relative;
  40. @media only screen and (max-device-width : 768px) {
  41. float: none !important;
  42. text-align: center;
  43. a, span {
  44. line-height: 5.0rem;
  45. }
  46. }
  47. a, span {
  48. margin-left: 1.0rem;
  49. margin-right: 1.0rem;
  50. }
  51. }
  52. .menu-button {
  53. display: none;
  54. @media only screen and (max-device-width : 768px) {
  55. display: block;
  56. font-size: 2.4rem;
  57. font-weight: 400;
  58. line-height: 6.0rem;
  59. color: $fg-color;
  60. cursor: pointer;
  61. }
  62. }
  63. .menu-separator {
  64. @media only screen and (max-device-width : 768px) {
  65. border-top: 2px solid $fg-color;
  66. margin: 0 8.0rem;
  67. span {
  68. display: none;
  69. }
  70. }
  71. }
  72. #menu-toggle {
  73. display: none;
  74. @media only screen and (max-device-width : 768px) {
  75. &:checked + label {
  76. color: $alt-bg-color;
  77. }
  78. &:checked + label + ul {
  79. visibility: visible;
  80. opacity: 1;
  81. max-height: 100rem;
  82. }
  83. }
  84. }