_top-bar.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. .version-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. a {
  87. margin-left: 18px;
  88. }
  89. a:link, a:visited {
  90. color: $gray-400;
  91. }
  92. a:hover {
  93. color: $gray-100;
  94. text-decoration: none;
  95. }
  96. @media all and (max-width: $sm-breakpoint){
  97. text-align: right;
  98. a {
  99. margin-left: 12px;
  100. }
  101. }
  102. }
  103. .search-input {
  104. display: flex;
  105. }
  106. #searchInput {
  107. width: 100%;
  108. border-radius: 3px;
  109. border: 1px solid $gray-900;
  110. padding: 6px 9px;
  111. background-color: transparentize($gray-300, 0.2);
  112. color: $gray-900;
  113. transition: background-color 0.2s;
  114. margin: 0;
  115. &:focus {
  116. background-color: $gray-300;
  117. }
  118. @media all and (max-width: $sm-breakpoint){
  119. background-color: $gray-300;
  120. }
  121. }
  122. button.search-icon {
  123. background-color: transparent;
  124. padding: 0;
  125. margin: 0;
  126. border: none;
  127. display: none;
  128. img {
  129. width: 24px;
  130. height: 24px;
  131. }
  132. @media all and (max-width: $sm-breakpoint){
  133. display: block;
  134. }
  135. }
  136. }