You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
3.2 KiB

  1. .nav {
  2. align-items: stretch;
  3. background-color: mc($primary, '500');
  4. display: flex;
  5. min-height: 50px;
  6. position: relative;
  7. text-align: center;
  8. box-shadow: 0 2px 3px rgba(mc($primary, '500'), 0.2);
  9. z-index: 2;
  10. color: #FFF;
  11. transition: background-color 1s ease;
  12. /* THEME OVERRIDE - START */
  13. @each $color, $colorvalue in $material-colors {
  14. &.is-#{$color} {
  15. background-color: mc($color, '500');
  16. box-shadow: 0 2px 3px rgba(mc($color, '500'), 0.2);
  17. .nav-item a, a.nav-item {
  18. color: mc($color, '50');
  19. &:hover {
  20. color: mc($color, '200');
  21. }
  22. }
  23. h1:hover {
  24. color: mc($color, '100');
  25. }
  26. .nav-item {
  27. .button {
  28. background-color: mc($color, '800');
  29. &.is-outlined {
  30. background-color: mc($color, '600');
  31. color: mc($color, '100');
  32. }
  33. &:hover {
  34. background-color: mc($color, '900');
  35. }
  36. }
  37. }
  38. .control {
  39. input[type=text] {
  40. background-color: mc($color, '800');
  41. border-color: mc($color, '400');
  42. color: mc($color, '50');
  43. &:focus {
  44. border-color: mc($color, '200');
  45. box-shadow: inset 0 0 5px 0 rgba(mc($color, '900'), 0.5);
  46. }
  47. @include placeholder {
  48. color: mc($color, '200');
  49. }
  50. }
  51. }
  52. }
  53. }
  54. /* THEME OVERRIDE - END */
  55. }
  56. .nav-left {
  57. align-items: stretch;
  58. display: flex;
  59. flex-basis: 0;
  60. flex-grow: 1;
  61. justify-content: flex-start;
  62. overflow: hidden;
  63. overflow-x: auto;
  64. white-space: nowrap;
  65. }
  66. .nav-center {
  67. align-items: stretch;
  68. display: flex;
  69. justify-content: center;
  70. margin-left: auto;
  71. margin-right: auto;
  72. }
  73. .nav-right {
  74. @include tablet {
  75. align-items: stretch;
  76. display: flex;
  77. flex-basis: 0;
  78. flex-grow: 1;
  79. justify-content: flex-end;
  80. }
  81. .nav-item {
  82. align-items: stretch;
  83. padding: 0 0 0 10px;
  84. }
  85. }
  86. .nav-item {
  87. align-items: center;
  88. display: flex;
  89. justify-content: center;
  90. padding: 0 10px;
  91. // LINKS
  92. @at-root .nav-item a, a.nav-item {
  93. color: mc($primary, '50');
  94. transition: color .4s ease;
  95. cursor: pointer;
  96. &:hover {
  97. color: mc($primary, '200');
  98. text-decoration: none;
  99. }
  100. }
  101. // LOGO
  102. img {
  103. max-height: 34px;
  104. }
  105. // HEADERS
  106. h1 {
  107. font-size: 16px;
  108. font-weight: 400;
  109. letter-spacing: 0.5px;
  110. text-transform: uppercase;
  111. transition: color .4s ease;
  112. color: #FFF;
  113. padding-left: 10px;
  114. i {
  115. margin-right: 8px;
  116. }
  117. &:hover {
  118. color: mc($primary, '100');
  119. }
  120. }
  121. @at-root h2.nav-item, .nav-item h2 {
  122. color: mc($primary, '50');
  123. }
  124. // BUTTONS
  125. .button {
  126. border: none;
  127. background-color: mc($primary, '600');
  128. transition: all .4s ease;
  129. color: #FFF;
  130. border-radius: 0;
  131. height: auto;
  132. &.is-outlined {
  133. background-color: mc($primary, '500');
  134. color: mc($primary, '100');
  135. }
  136. &:hover {
  137. background-color: mc($primary, '700');
  138. color: #FFF;
  139. }
  140. }
  141. // INPUTS
  142. .control {
  143. input[type=text] {
  144. background-color: mc($primary, '800');
  145. border-color: mc($primary, '400');
  146. color: mc($primary, '50');
  147. &:focus {
  148. border-color: mc($primary, '200');
  149. box-shadow: inset 0 0 5px 0 rgba(mc($primary, '900'), 0.5);
  150. }
  151. @include placeholder {
  152. color: mc($primary, '200');
  153. }
  154. }
  155. }
  156. }