_navbar.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. .nav {
  2. position: relative;
  3. }
  4. .navbar {
  5. padding: 0 0.75rem;
  6. height: 100%;
  7. @include flexbox();
  8. @include align-items(center);
  9. &__wrapper {
  10. width: 100%;
  11. height: $grid-nav-height;
  12. position: fixed;
  13. left: 0;
  14. right: 0;
  15. top: 0;
  16. z-index: z('navbar');
  17. box-shadow: 0 1px 0 rgba(12,13,14,0.1), 0 1px 6px rgba(60,65,70,0.1);
  18. @include flexbox();
  19. @include align-items(center);
  20. @include justify-content(center);
  21. @include themify($themes) {
  22. color: inherit;
  23. background-color: themed('navbar-background-color');
  24. }
  25. }
  26. &__menu {
  27. height: 100%;
  28. padding: 0 0.75rem;
  29. @include flexbox();
  30. &--wrapper {
  31. height: 100%;
  32. @include flexbox();
  33. @include align-items(center);
  34. }
  35. &--item {
  36. height: $grid-nav-height;
  37. padding: 0rem 0.75rem;
  38. & > a {
  39. height: 100%;
  40. font-family: $title-font;
  41. font-size: 16.8px;
  42. color: inherit;
  43. text-decoration: none !important;
  44. @include flexbox();
  45. @include align-items(center);
  46. @include justify-content(center);
  47. }
  48. @include themify($themes) {
  49. color: themed('body-color');
  50. &.active {
  51. font-weight: bold;
  52. color: themed('active-font-color');
  53. }
  54. }
  55. }
  56. &--mobile-item {
  57. width: 100%;
  58. @include flexbox();
  59. @include align-items(center);
  60. @include justify-content(flex-start);
  61. @include on-event {
  62. @include themify($themes) {
  63. background-color: themed('dropdown-hover-background-color');
  64. }
  65. }
  66. & > a {
  67. width: 100%;
  68. font-size: 18px;
  69. @include themify($themes) {
  70. color: themed('body-color');
  71. @include on-event {
  72. text-decoration: none;
  73. color: themed('link-hover');
  74. }
  75. &.active {
  76. font-weight: bold;
  77. color: themed('active-font-color');
  78. background-color: themed('dropdown-item-active-background-color');
  79. }
  80. }
  81. }
  82. }
  83. &--btn {
  84. height: $grid-nav-height;
  85. font-size: 20px;
  86. margin-left: 0.4rem;
  87. margin-right: 0.5rem;
  88. white-space: nowrap;
  89. cursor: pointer;
  90. border: none;
  91. @include flexbox();
  92. @include align-items(flex-end);
  93. @include themify($themes) {
  94. color: themed('body-color');
  95. background: transparent;
  96. @include on-event {
  97. color: themed('active-font-color');
  98. }
  99. }
  100. }
  101. }
  102. &__logo {
  103. width: 100%;
  104. height: 100%;
  105. margin: 0 0.25rem;
  106. &--wrapper {
  107. height: 100%;
  108. @include flexbox();
  109. @include align-items(center);
  110. @include justify-content(flex-start);
  111. @include themify($themes) {
  112. color: themed('body-color');
  113. @include on-event {
  114. color: themed('active-font-color');
  115. }
  116. }
  117. a {
  118. color: inherit;
  119. @include on-event {
  120. color: inherit;
  121. text-decoration: none;
  122. }
  123. }
  124. }
  125. &--link {
  126. width: 32.5px;
  127. height: 32.5px;
  128. @include flexbox();
  129. @include align-items(center);
  130. @include justify-content(center);
  131. @include flex-shrink(0);
  132. }
  133. &--text {
  134. font-size: 20px;
  135. margin-left: 0.5rem;
  136. margin-right: 1rem;
  137. white-space: nowrap;
  138. cursor: pointer;
  139. @include flexbox();
  140. @include align-items(flex-end);
  141. @include themify($themes) {
  142. color: themed('body-color');
  143. }
  144. }
  145. }
  146. &__long {
  147. &--link {
  148. width: 100%;
  149. height: 100%;
  150. padding: 0.6rem 0.2rem;
  151. margin: auto 0.25rem;
  152. @include flex-shrink(0);
  153. }
  154. }
  155. &__icons {
  156. height: 100%;
  157. @include flexbox();
  158. @include align-items(center);
  159. &--icon {
  160. width: 50px;
  161. height: $grid-nav-height;
  162. color: inherit;
  163. background-color: transparent;
  164. outline: none;
  165. border: none;
  166. cursor: pointer;
  167. @include flex-shrink(0);
  168. @include flexbox();
  169. @include align-items(center);
  170. @include justify-content(center);
  171. @include themify($themes) {
  172. color: themed('body-color');
  173. @include on-event {
  174. background-color: themed('dropdown-hover-background-color');
  175. }
  176. & > a {
  177. height: 100%;
  178. color: inherit;
  179. @include flexbox();
  180. @include align-items(center);
  181. @include justify-content(center);
  182. }
  183. }
  184. }
  185. }
  186. &__dropdown {
  187. height: 30px;
  188. font-size: 17.2px;
  189. @include flexbox();
  190. @include align-items(center);
  191. &--content {
  192. padding: 0.25rem 0;
  193. min-width: 120px;
  194. @include box-shadow(0, 1px, 3px, 0, rgba(0, 0, 0, 0.4));
  195. @include themify($themes) {
  196. background-color: themed('dropdown-background-color');
  197. }
  198. }
  199. &--title {
  200. font-size: 16.8px;
  201. font-family: $title-font;
  202. border: none;
  203. outline: none;
  204. margin-left: 1rem;
  205. height: $grid-nav-height;
  206. @include flexbox();
  207. @include align-items(center);
  208. @include themify($themes) {
  209. color: themed('body-color');
  210. background-color: themed('navbar-background-color');
  211. }
  212. }
  213. }
  214. }