navbar.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @import "colors";
  2. @import "breakpoints";
  3. @import "specific/button";
  4. header {
  5. background-color: $musare_color_primary_blue;
  6. display: flex;
  7. justify-content: space-between;
  8. height: 64px;
  9. > a {
  10. height: 38px;
  11. margin: 13px;
  12. img {
  13. height: 100%;
  14. }
  15. }
  16. .hamburger {
  17. background-color: $musare_color_primary_blue;
  18. transition: .1s ease;
  19. &:hover, &:focus {
  20. background-color: $musare_color_secondary_blue;
  21. cursor: pointer;
  22. }
  23. span {
  24. background-color: $musare_color_white;
  25. display: flex;
  26. margin-left: auto;
  27. margin-right: auto;
  28. }
  29. }
  30. navbar {
  31. background-color: $musare_color_primary_blue;
  32. display: flex;
  33. a {
  34. color: $musare_color_white;
  35. display: inline-block;
  36. text-decoration: none;
  37. text-align: center;
  38. transition: .1s ease;
  39. &:hover, &:focus {
  40. background-color: $musare_color_secondary_blue;
  41. cursor: pointer;
  42. }
  43. }
  44. }
  45. }
  46. @include responsive(smallest) {
  47. header {
  48. height: 64px;
  49. .hamburger {
  50. height: 64px;
  51. width: 64px;
  52. span {
  53. width: 34px;
  54. height: 2px;
  55. &:nth-child(2) {
  56. margin-top: 11px;
  57. }
  58. &:nth-child(3) {
  59. margin-top: 11px;
  60. }
  61. }
  62. }
  63. navbar {
  64. visibility: hidden;
  65. display: none;
  66. width: 100%;
  67. height: calc(100% - 64px);
  68. flex-direction: column;
  69. position: absolute;
  70. top: 64px;
  71. z-index: 100;
  72. &.show {
  73. visibility: visible;
  74. display: flex;
  75. }
  76. a {
  77. width: 100%;
  78. height: 64px;
  79. line-height: 64px;
  80. font-size: 27px;
  81. }
  82. }
  83. }
  84. }
  85. @include responsive(large) {
  86. header {
  87. .hamburger {
  88. visibility: hidden;
  89. display: none;
  90. }
  91. navbar {
  92. visibility: unset;
  93. display: flex;
  94. flex-direction: row;
  95. height: 64px;
  96. width: unset;
  97. position: unset;
  98. a {
  99. height: 24px;
  100. line-height: 24px;
  101. font-size: 18px;
  102. padding: 20px 10px;
  103. }
  104. }
  105. }
  106. }