_algolia.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. // stylelint-disable declaration-no-important
  2. // Docsearch overrides
  3. //
  4. // `!important` indicates overridden properties.
  5. .algolia-autocomplete {
  6. display: block !important;
  7. flex: 1;
  8. // Menu container
  9. .ds-dropdown-menu {
  10. width: 100%;
  11. min-width: 0 !important;
  12. max-width: none !important;
  13. padding: .75rem 0 !important;
  14. background-color: #fff;
  15. background-clip: padding-box;
  16. border: 1px solid rgba(0, 0, 0, .1);
  17. box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175);
  18. @include media-breakpoint-up(md) {
  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. }
  35. .algolia-docsearch-suggestion {
  36. padding: 0 !important;
  37. overflow: visible !important;
  38. }
  39. .algolia-docsearch-suggestion--category-header {
  40. padding: .125rem 1rem !important;
  41. margin-top: 0 !important;
  42. font-size: .875rem !important;
  43. font-weight: 500 !important;
  44. color: $bd-purple-bright !important;
  45. border-bottom: 0 !important;
  46. }
  47. .algolia-docsearch-suggestion--wrapper {
  48. float: none !important;
  49. padding-top: 0 !important;
  50. }
  51. // Section header
  52. .algolia-docsearch-suggestion--subcategory-column {
  53. float: none !important;
  54. width: auto !important;
  55. padding: 0 !important;
  56. text-align: left !important;
  57. }
  58. .algolia-docsearch-suggestion--content {
  59. float: none !important;
  60. width: auto !important;
  61. padding: 0 !important;
  62. // Vertical divider between column header and content
  63. &::before {
  64. display: none !important;
  65. }
  66. }
  67. .ds-suggestion {
  68. &:not(:first-child) {
  69. .algolia-docsearch-suggestion--category-header {
  70. padding-top: .75rem !important;
  71. margin-top: .75rem !important;
  72. border-top: 1px solid rgba(0, 0, 0, .1);
  73. }
  74. }
  75. .algolia-docsearch-suggestion--subcategory-column {
  76. display: none !important;
  77. }
  78. }
  79. .algolia-docsearch-suggestion--title {
  80. display: block;
  81. padding: .25rem 1rem !important;
  82. margin-bottom: 0 !important;
  83. font-size: .875rem !important;
  84. font-weight: 400 !important;
  85. }
  86. .algolia-docsearch-suggestion--text {
  87. padding: 0 1rem .5rem !important;
  88. margin-top: -.25rem;
  89. font-size: .875rem !important;
  90. font-weight: 400;
  91. line-height: 1.25 !important;
  92. }
  93. .algolia-docsearch-footer {
  94. float: none !important;
  95. width: auto !important;
  96. height: auto !important;
  97. padding: .75rem 1rem 0;
  98. font-size: .75rem !important;
  99. line-height: 1 !important;
  100. color: #767676 !important;
  101. border-top: 1px solid rgba(0, 0, 0, .1);
  102. }
  103. .algolia-docsearch-footer--logo {
  104. display: inline !important;
  105. overflow: visible !important;
  106. color: inherit !important;
  107. text-indent: 0 !important;
  108. background: none !important;
  109. }
  110. .algolia-docsearch-suggestion--highlight {
  111. color: #5f2dab;
  112. background-color: rgba(154, 132, 187, .12);
  113. }
  114. .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
  115. box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, .5) !important;
  116. }
  117. .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
  118. background-color: rgba(208, 189, 236, .15) !important;
  119. }
  120. }