_header.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. .header {
  2. position: fixed;
  3. top: 0;
  4. background: $color-lightsteelblue-transparent;
  5. height: 130px;
  6. width: 100%;
  7. &__logo {
  8. padding-top: 10px;
  9. margin: 0;
  10. text-align: center;
  11. &::first-letter {
  12. color: $color-red;
  13. }
  14. &--i-letter {
  15. color: $color-green;
  16. }
  17. &--divider {
  18. width: 30%;
  19. margin: auto;
  20. margin-top: 5px;
  21. }
  22. }
  23. &__flex-wrapper {
  24. margin: auto;
  25. margin-top: 20px;
  26. width: 95%;
  27. display: flex;
  28. justify-content: space-between;
  29. }
  30. nav {
  31. font-family: 'Poiret One', cursive;
  32. font-weight: bold;
  33. ul {
  34. display: flex;
  35. margin-bottom: 25px;
  36. .header-nav {
  37. }
  38. li {
  39. a {
  40. color: $color-white;
  41. text-shadow: 1px 1px 2px black;
  42. font-size: 22px;
  43. transition: all 300ms ease-in-out;
  44. padding: 10px 20px;
  45. }
  46. .nav__list-item--admin-only {
  47. color: orange;
  48. }
  49. a:hover {
  50. border-bottom: 2px solid white;
  51. background: $color-lightgrey-transparent;
  52. }
  53. .nav__list-item--admin-only:hover {
  54. border-bottom: 2px solid orange;
  55. background: $color-lightgrey-transparent;
  56. }
  57. }
  58. }
  59. }
  60. .header__links {
  61. &--sign-in {
  62. margin-right: 1.5vw;
  63. }
  64. &--sign-up {
  65. margin-right: 20px;
  66. }
  67. }
  68. @media screen and (max-width: 1200px) {
  69. &__flex-wrapper {
  70. width: 100%;
  71. display: block;
  72. margin-top: 15px;
  73. }
  74. &__toggle-trigger {
  75. position: absolute;
  76. top: 65%;
  77. cursor: pointer;
  78. left: 0;
  79. margin-left: 1em;
  80. & span,
  81. & span::after,
  82. & span::before {
  83. display: block;
  84. height: 2px;
  85. width: 2em;
  86. border-radius: 2px;
  87. background: white;
  88. }
  89. & span {
  90. position: relative;
  91. }
  92. & span::after,
  93. & span::before {
  94. position: absolute;
  95. content: "";
  96. }
  97. & span::after {
  98. top: 7px;
  99. }
  100. & span::before {
  101. bottom: 7px;
  102. }
  103. }
  104. .nav-toggle-status {
  105. &--closed {
  106. transform: scale(1, 0);
  107. }
  108. &--opened {
  109. transform: scale(1, 1);
  110. }
  111. }
  112. nav {
  113. position: absolute;
  114. width: 100%;
  115. top: 100%;
  116. background: $color-lightsteelgrey-transparent;
  117. transition: transform 400ms ease-in-out;
  118. transform-origin: top;
  119. & a {
  120. font-size: 18px;
  121. }
  122. & a:hover {
  123. font-size: 22px;
  124. }
  125. ul {
  126. display: block;
  127. margin: 0;
  128. }
  129. ul li {
  130. padding: 1em;
  131. border-bottom: 1px solid $color-lightgrey;
  132. a {
  133. transition: none !important;
  134. padding: 0;
  135. }
  136. }
  137. ul li:first-of-type {
  138. border-top: 1px solid $color-lightgrey;
  139. }
  140. }
  141. .header__links {
  142. display: flex;
  143. justify-content: center;
  144. &--sign-in {
  145. margin-right: 1.5vw;
  146. }
  147. &--sign-up {
  148. margin-left: 1.5vw;
  149. margin-right: 0;
  150. }
  151. }
  152. }
  153. }