_top-bar.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import "variables";
  2. .top-bar {
  3. position: fixed;
  4. padding: 12px 24px;
  5. background-color: #1e1e1e;
  6. width: 100%;
  7. top: 0;
  8. height: $top-bar-height;
  9. display: flex;
  10. align-items: center;
  11. transition: background-color 0.7s;
  12. @media all and (max-width: $sm-breakpoint){
  13. padding: 12px;
  14. }
  15. &.landing-page {
  16. background-color: transparent;
  17. &.floating {
  18. background-color: #1e1e1e;
  19. }
  20. }
  21. .flex-spacer {
  22. flex: 1;
  23. }
  24. .logo {
  25. img {
  26. max-width: 32px;
  27. margin-right: 12px;
  28. }
  29. color: $brand-color;
  30. font-size: 18px;
  31. font-size: 24px;
  32. letter-spacing: 0px;
  33. font-weight: 600;
  34. }
  35. .right {
  36. @media all and (max-width: $sm-breakpoint){
  37. text-align: right;
  38. }
  39. a {
  40. margin-left: 12px;
  41. }
  42. a:link, a:visited {
  43. color: $gray-400;
  44. }
  45. a:hover {
  46. color: $gray-100;
  47. text-decoration: none;
  48. }
  49. }
  50. .search-input {
  51. display: flex;
  52. }
  53. #searchInput {
  54. width: 100%;
  55. border-radius: 3px;
  56. border: 1px solid $gray-900;
  57. padding: 6px 9px;
  58. background-color: transparentize($gray-300, 0.2);
  59. color: $gray-900;
  60. transition: background-color 0.2s;
  61. margin: 0;
  62. &:focus {
  63. background-color: $gray-300;
  64. }
  65. @media all and (max-width: $sm-breakpoint){
  66. background-color: $gray-300;
  67. }
  68. }
  69. button.search-icon {
  70. background-color: transparent;
  71. padding: 0;
  72. margin: 0;
  73. border: none;
  74. display: none;
  75. img {
  76. width: 24px;
  77. height: 24px;
  78. }
  79. @media all and (max-width: $sm-breakpoint){
  80. display: block;
  81. }
  82. }
  83. }