navbar.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. > a {
  9. img {
  10. height: 100%;
  11. }
  12. }
  13. .hamburger {
  14. background-color: $musare_color_primary_blue;
  15. transition: .1s ease;
  16. &:hover, &:focus {
  17. background-color: $musare_color_secondary_blue;
  18. cursor: pointer;
  19. }
  20. span {
  21. background-color: $musare_color_white;
  22. display: flex;
  23. margin-left: auto;
  24. margin-right: auto;
  25. box-shadow: 0 3px 6px $musare_shadow_color;
  26. }
  27. }
  28. navbar {
  29. background-color: $musare_color_primary_blue;
  30. display: flex;
  31. a {
  32. color: $musare_color_white;
  33. text-shadow: 0 3px 6px $musare_shadow_color;
  34. display: inline-block;
  35. text-decoration: none;
  36. text-align: center;
  37. transition: .1s ease;
  38. &:hover, &:focus {
  39. background-color: $musare_color_secondary_blue;
  40. cursor: pointer;
  41. }
  42. }
  43. }
  44. }
  45. @include responsive(smallest) {
  46. $height: 64px;
  47. header {
  48. height: $height;
  49. > a {
  50. height: 38px;
  51. margin: 13px;
  52. }
  53. .hamburger {
  54. height: $height;
  55. width: $height;
  56. span {
  57. width: 34px;
  58. height: 2px;
  59. &:nth-child(2) {
  60. margin-top: 11px;
  61. }
  62. &:nth-child(3) {
  63. margin-top: 11px;
  64. }
  65. }
  66. }
  67. navbar {
  68. visibility: hidden;
  69. display: none;
  70. width: 100%;
  71. height: calc(100% - #{$height});
  72. flex-direction: column;
  73. position: absolute;
  74. top: $height;
  75. &.show {
  76. visibility: visible;
  77. display: flex;
  78. }
  79. a {
  80. width: 100%;
  81. height: $height;
  82. line-height: $height;
  83. font-size: 27px;
  84. }
  85. }
  86. }
  87. }
  88. @include responsive(small) {
  89. $height: 120px;
  90. header {
  91. height: $height;
  92. > a {
  93. height: 64px;
  94. margin: 28px;
  95. }
  96. .hamburger {
  97. height: $height;
  98. width: $height;
  99. span {
  100. width: 64px;
  101. height: 3px;
  102. &:nth-child(2) {
  103. margin-top: 22px;
  104. }
  105. &:nth-child(3) {
  106. margin-top: 22px;
  107. }
  108. }
  109. }
  110. navbar {
  111. top: $height;
  112. height: calc(100% - #{$height});
  113. a {
  114. height: $height;
  115. line-height: $height;
  116. font-size: 51px; //TODO Change this
  117. }
  118. }
  119. }
  120. }
  121. @include responsive(medium) {
  122. $height: 180px;
  123. header {
  124. height: $height;
  125. > a {
  126. height: 106px;
  127. margin: 37px;
  128. }
  129. .hamburger {
  130. height: $height;
  131. width: $height;
  132. span {
  133. width: 96px;
  134. height: 4px;
  135. &:nth-child(2) {
  136. margin-top: 33px;
  137. }
  138. &:nth-child(3) {
  139. margin-top: 33px;
  140. }
  141. }
  142. }
  143. navbar {
  144. top: $height;
  145. height: calc(100% - #{$height});
  146. a {
  147. height: $height;
  148. line-height: $height;
  149. font-size: 76px; //TODO Change this
  150. }
  151. }
  152. }
  153. }
  154. @include responsive(large) {
  155. $height: 80px;
  156. header {
  157. height: $height;
  158. > a {
  159. height: 50px;
  160. margin: 15px;
  161. }
  162. .hamburger {
  163. visibility: hidden;
  164. display: none;
  165. }
  166. navbar {
  167. visibility: unset;
  168. display: flex;
  169. flex-direction: row;
  170. height: $height;
  171. width: unset;
  172. position: unset;
  173. a {
  174. height: $height;
  175. line-height: $height;
  176. font-size: 27px;
  177. padding: 0 20px;
  178. }
  179. }
  180. }
  181. }