_top-bar.scss 3.2 KB

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