_top-bar.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @import "variables";
  2. .top-bar {
  3. position: fixed;
  4. padding: 0 24px;
  5. background-color: #2a2929;
  6. width: 100%;
  7. top: 0;
  8. height: $top-bar-height;
  9. transition: background-color 0.7s;
  10. z-index: 10;
  11. display: flex;
  12. align-items: center;
  13. .top-bar-content {
  14. display: flex;
  15. flex: 1;
  16. align-items: center;
  17. max-width: $container-max-width;
  18. margin: auto;
  19. }
  20. @media all and (max-width: $sm-breakpoint){
  21. padding: 12px;
  22. }
  23. &.landing-page {
  24. background-color: transparent;
  25. .right {
  26. a:link, a:visited {
  27. color: $gray-700;
  28. }
  29. a:hover {
  30. color: $gray-500;
  31. text-decoration: none;
  32. }
  33. }
  34. &.floating {
  35. background-color: #2a2929;
  36. .right {
  37. a:link, a:visited {
  38. color: $gray-400;
  39. }
  40. a:hover {
  41. color: $gray-100;
  42. text-decoration: none;
  43. }
  44. }
  45. }
  46. }
  47. .flex-spacer {
  48. flex: 1;
  49. }
  50. .left {
  51. display: flex;
  52. align-items: center;
  53. }
  54. .logo {
  55. img {
  56. max-width: 32px;
  57. margin-right: 12px;
  58. }
  59. display: flex;
  60. align-items: end;
  61. color: $brand-color;
  62. font-size: 18px;
  63. font-size: 24px;
  64. letter-spacing: 0px;
  65. font-weight: 600;
  66. .logotype {
  67. font-family: $brand-font-face;
  68. display: inline-block;
  69. margin-right: 12px;
  70. @media all and (max-width: $sm-breakpoint){
  71. display: none;
  72. }
  73. }
  74. }
  75. .alpha-label {
  76. display: inline-block;
  77. background-color: #ffd400;
  78. padding: 3px 6px;
  79. border-radius: 3px;
  80. font-size: 14px;
  81. font-weight: bold;
  82. text-transform: uppercase;
  83. color: #736108;
  84. }
  85. .right {
  86. @media all and (max-width: $sm-breakpoint){
  87. text-align: right;
  88. }
  89. a {
  90. margin-left: 12px;
  91. }
  92. a:link, a:visited {
  93. color: $gray-400;
  94. }
  95. a:hover {
  96. color: $gray-100;
  97. text-decoration: none;
  98. }
  99. }
  100. .search-input {
  101. display: flex;
  102. }
  103. #searchInput {
  104. width: 100%;
  105. border-radius: 3px;
  106. border: 1px solid $gray-900;
  107. padding: 6px 9px;
  108. background-color: transparentize($gray-300, 0.2);
  109. color: $gray-900;
  110. transition: background-color 0.2s;
  111. margin: 0;
  112. &:focus {
  113. background-color: $gray-300;
  114. }
  115. @media all and (max-width: $sm-breakpoint){
  116. background-color: $gray-300;
  117. }
  118. }
  119. button.search-icon {
  120. background-color: transparent;
  121. padding: 0;
  122. margin: 0;
  123. border: none;
  124. display: none;
  125. img {
  126. width: 24px;
  127. height: 24px;
  128. }
  129. @media all and (max-width: $sm-breakpoint){
  130. display: block;
  131. }
  132. }
  133. }