_search.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. input[type="search"] {
  2. -moz-appearance: none;
  3. -webkit-appearance: none;
  4. }
  5. .navSearchWrapper {
  6. align-self: center;
  7. position: relative;
  8. &::before {
  9. border: 3px solid $primary-overlay-special;
  10. border-radius: 50%;
  11. content: " ";
  12. display: block;
  13. height: 6px;
  14. left: 15px;
  15. width: 6px;
  16. position: absolute;
  17. top: 4px;
  18. z-index: 1;
  19. }
  20. &::after {
  21. background: $primary-overlay-special;
  22. content: " ";
  23. height: 7px;
  24. left: 24px;
  25. position: absolute;
  26. transform: rotate(-45deg);
  27. top: 12px;
  28. width: 3px;
  29. z-index: 1;
  30. }
  31. .aa-dropdown-menu {
  32. background: $secondary-bg;
  33. border: 3px solid rgba($text, 0.25);
  34. color: $text;
  35. font-size: 14px;
  36. left: auto !important;
  37. line-height: 1.2em;
  38. right: 0 !important;
  39. .algolia-docsearch-suggestion--category-header {
  40. background: $primary-overlay-special;
  41. color: $primary-bg;
  42. .algolia-docsearch-suggestion--highlight {
  43. background-color: $primary-bg;
  44. color: $primary-overlay;
  45. }
  46. }
  47. .algolia-docsearch-suggestion--title .algolia-docsearch-suggestion--highlight,
  48. .algolia-docsearch-suggestion--subcategory-column .algolia-docsearch-suggestion--highlight {
  49. color: $primary-bg;
  50. }
  51. .algolia-docsearch-suggestion__secondary,
  52. .algolia-docsearch-suggestion--subcategory-column {
  53. border-color: rgba($text, 0.3);
  54. }
  55. }
  56. }
  57. input#search_input {
  58. padding-left: 25px;
  59. font-size: 14px;
  60. line-height: 20px;
  61. border-radius: 20px;
  62. background-color: rgba($primary-overlay-special, 0.25);
  63. border: none;
  64. color: rgba($primary-overlay-special, 0);
  65. outline: none;
  66. position: relative;
  67. transition: background-color .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), width .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), color .2s ease;
  68. width: 60px;
  69. &:focus, &:active {
  70. background-color: $secondary-bg;
  71. color: $text;
  72. width: 240px;
  73. }
  74. }
  75. .navigationSlider {
  76. .navSearchWrapper {
  77. &::before {
  78. left: 6px;
  79. top: 6px;
  80. }
  81. &::after {
  82. left: 15px;
  83. top: 14px;
  84. }
  85. }
  86. input#search_input_react {
  87. box-sizing: border-box;
  88. padding-left: 25px;
  89. font-size: 14px;
  90. line-height: 20px;
  91. border-radius: 20px;
  92. background-color: rgba($primary-overlay-special, 0.25);
  93. border: none;
  94. color: $text;
  95. outline: none;
  96. position: relative;
  97. transition: background-color .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), width .2s cubic-bezier(0.68, -0.55, 0.265, 1.55), color .2s ease;
  98. width: 100%;
  99. &:focus, &:active {
  100. background-color: $primary-bg;
  101. color: $primary-overlay;
  102. }
  103. }
  104. .algolia-docsearch-suggestion--subcategory-inline {
  105. display: none;
  106. }
  107. & > span {
  108. width: 100%;
  109. }
  110. .aa-dropdown-menu {
  111. background: $secondary-bg;
  112. border: 0px solid $secondary-bg;
  113. color: $text;
  114. font-size: 12px;
  115. line-height: 2em;
  116. max-height: 140px;
  117. min-width: auto;
  118. overflow-y: scroll;
  119. -webkit-overflow-scrolling: touch;
  120. padding: 0;
  121. border-radius: 0;
  122. position: relative !important;
  123. width: 100%;
  124. }
  125. }