navbar.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. &.show {
  72. visibility: visible;
  73. display: flex;
  74. }
  75. a {
  76. width: 100%;
  77. height: 64px;
  78. line-height: 64px;
  79. font-size: 27px;
  80. }
  81. }
  82. }
  83. }
  84. @include responsive(large) {
  85. header {
  86. .hamburger {
  87. visibility: hidden;
  88. display: none;
  89. }
  90. navbar {
  91. visibility: unset;
  92. display: flex;
  93. flex-direction: row;
  94. height: 64px;
  95. width: unset;
  96. position: unset;
  97. a {
  98. height: 38px;
  99. line-height: 38px;
  100. font-size: 29px;
  101. padding: 13px;
  102. }
  103. }
  104. }
  105. }