mirror of
https://github.com/minio/docs.git
synced 2025-04-24 06:05:11 +03:00
- 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.  - Added icons to represent the hierarchy level.  - 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)
75 lines
1.2 KiB
SCSS
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);
|
|
}
|
|
} |