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.

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