algolia.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. // stylelint-disable declaration-no-important
  2. // Docsearch overrides
  3. //
  4. // `!important` indicates overridden properties.
  5. .algolia-autocomplete {
  6. display: block !important;
  7. // Menu container
  8. .ds-dropdown-menu {
  9. width: 100%;
  10. min-width: 0 !important;
  11. max-width: none !important;
  12. padding: 10px 0 !important;
  13. background-color: #fff;
  14. background-clip: padding-box;
  15. border: 1px solid #ddd;
  16. border: 1px solid rgba(0, 0, 0, .1);
  17. box-shadow: 0 8px 15px rgba(0, 0, 0, .175);
  18. @media (min-width: @screen-sm-min) {
  19. width: 175%;
  20. }
  21. // Caret
  22. &:before {
  23. display: none !important;
  24. }
  25. [class^="ds-dataset-"] {
  26. padding: 0 !important;
  27. overflow: visible !important;
  28. background-color: transparent !important;
  29. border: 0 !important;
  30. }
  31. .ds-suggestions {
  32. margin-top: 0 !important;
  33. }
  34. .ds-input {
  35. box-shadow: none;
  36. }
  37. }
  38. .algolia-docsearch-suggestion {
  39. padding: 0 !important;
  40. overflow: visible !important;
  41. }
  42. .algolia-docsearch-suggestion--category-header {
  43. padding: 2px 15px !important;
  44. margin-top: 0 !important;
  45. font-size: 13px !important;
  46. font-weight: 500 !important;
  47. color: #7952b3 !important;
  48. border-bottom: 0 !important;
  49. }
  50. .algolia-docsearch-suggestion--wrapper {
  51. float: none !important;
  52. padding-top: 0 !important;
  53. }
  54. // Section header
  55. .algolia-docsearch-suggestion--subcategory-column {
  56. float: none !important;
  57. width: auto !important;
  58. padding: 0 !important;
  59. text-align: left !important;
  60. }
  61. .algolia-docsearch-suggestion--content {
  62. float: none !important;
  63. width: auto !important;
  64. padding: 0 !important;
  65. // Vertical divider between column header and content
  66. &:before {
  67. display: none !important;
  68. }
  69. }
  70. .ds-suggestion {
  71. &:not(:first-child) {
  72. .algolia-docsearch-suggestion--category-header {
  73. padding-top: 10px !important;
  74. margin-top: 10px !important;
  75. border-top: 1px solid #eee;
  76. }
  77. }
  78. .algolia-docsearch-suggestion--subcategory-column {
  79. display: none !important;
  80. }
  81. }
  82. .algolia-docsearch-suggestion--title {
  83. display: block;
  84. padding: 4px 15px !important;
  85. margin-bottom: 0 !important;
  86. font-size: 13px !important;
  87. font-weight: 400 !important;
  88. }
  89. .algolia-docsearch-suggestion--text {
  90. padding: 0 15px 8px !important;
  91. margin-top: -4px;
  92. font-size: 13px !important;
  93. font-weight: 400;
  94. line-height: 1.25 !important;
  95. }
  96. .algolia-docsearch-footer {
  97. float: none !important;
  98. width: auto !important;
  99. height: auto !important;
  100. padding: 10px 15px 0;
  101. font-size: 10px !important;
  102. line-height: 1 !important;
  103. color: #767676 !important;
  104. border-top: 1px solid #eee;
  105. }
  106. .algolia-docsearch-footer--logo {
  107. display: inline !important;
  108. overflow: visible !important;
  109. color: inherit !important;
  110. text-indent: 0 !important;
  111. background: none !important;
  112. }
  113. .algolia-docsearch-suggestion--highlight {
  114. color: #5f2dab;
  115. background-color: #eee;
  116. }
  117. .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
  118. box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, .5) !important;
  119. }
  120. .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
  121. background-color: #e5e5e5 !important;
  122. }
  123. }