1
0
mirror of https://github.com/minio/docs.git synced 2025-04-24 06:05:11 +03:00
Rushan 594a9cfb6e
Replace Algolia DocSearch with InstantSearch (#621)
- Rendered only the relevant search results that has the match-level of
either `full` or `partial`.
- Added refinements to display results from other platforms (Active
platform is selected by default).
- Better title and hierarchical display.

![title](https://user-images.githubusercontent.com/13393018/198229684-3018b591-a54c-4b4f-80db-94c11e33ec65.svg)


- Added icons to represent the hierarchy level.

![icons](https://user-images.githubusercontent.com/13393018/198228150-143153bf-aa9a-4c41-baf8-bd9fa3d33bf2.png)
- Relevant results on full/partial match queries.
<img width="595" alt="Screenshot 2022-10-27 at 12 09 26"
src="https://user-images.githubusercontent.com/13393018/198228440-3a7b52a6-9f33-4778-a2ab-15b1454ede99.png">

- TODO: Keyboard shortcut to trigger/focus the search modal. (Will
address this with a new PR)
2022-11-02 09:21:21 -05:00

75 lines
1.2 KiB
SCSS

:root {
--content-padding: 1.75rem;
@include breakpoint-max(breakpoints(lg)) {
--content-padding: 1.25rem;
}
&.locked {
&,
body,
.content {
overflow: hidden;
}
}
}
.content {
flex: 1;
@include breakpoint-min(breakpoints(lg)) {
& > .container {
display: flex;
}
}
}
.content__main {
flex: 1;
min-width: 0;
padding: var(--content-padding);
}
.container {
margin: 0 auto;
padding: 0 var(--content-padding);
width: 100%;
}
:root {
&:not(.read-mode) {
.container {
max-width: $container-width;
}
}
&.read-mode {
.content {
@include breakpoint-min(breakpoints(lg)) {
overflow: auto;
}
& > .container {
padding-inline: 0;
}
}
}
}
// Keep only the main content when the page is loaded inside an iframe.
// Currently we load certain pages inside iframes for PathFactory analytics.
.inside-iframe {
.header,
.sidebar {
display: none;
}
.content {
height: 100vh;
}
.content__main {
padding-left: var(--content-padding);
}
}