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)
126 lines
1.9 KiB
SCSS
126 lines
1.9 KiB
SCSS
.header {
|
|
background-color: var(--header-bg);
|
|
box-shadow: 0 0 0.75rem rgba($black, 0.1);
|
|
width: 100%;
|
|
position: relative;
|
|
z-index: $z-index-header;
|
|
|
|
& > .container {
|
|
position: relative;
|
|
}
|
|
|
|
&.inactive {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.header__top {
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
border-bottom: 1px solid var(--nav-top-border-color);
|
|
display: flex;
|
|
padding: 0.4rem 0;
|
|
height: 3rem;
|
|
|
|
.nav {
|
|
font-size: $font-size-sm;
|
|
margin: 0 -1rem 0 auto !important;
|
|
}
|
|
}
|
|
|
|
.header__logo {
|
|
& > svg {
|
|
width: 6.25rem;
|
|
fill: var(--logo-fill-color);
|
|
}
|
|
}
|
|
|
|
.header__top__title {
|
|
line-height: 100%;
|
|
font-weight: 500;
|
|
color: var(--header-headings-color);
|
|
margin-left: 0.5rem;
|
|
font-size: $font-size-sm;
|
|
padding-bottom: 0.1rem;
|
|
}
|
|
|
|
.header__actions {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-left: auto;
|
|
z-index: 1;
|
|
|
|
.icon {
|
|
&:not(.icon--switch) {
|
|
& > svg {
|
|
fill: var(--header-text-color);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--header-actions-icon-alt-hover-bg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.icon--switch {
|
|
transition: background-color 500ms, border-color 500ms;
|
|
background-color: var(--header-actions-icon-bg);
|
|
border-color: var(--header-actions-icon-border-color);
|
|
|
|
&:hover {
|
|
background-color: var(--header-actions-icon-hover-bg);
|
|
}
|
|
|
|
& > svg {
|
|
stroke: var(--header-actions-icon-stroke);
|
|
stroke-width: var(--header-actions-icon-stroke-width);
|
|
|
|
&:last-child {
|
|
& > path {
|
|
&:last-child {
|
|
fill: var(--header-actions-icon-path-fill);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.header__title {
|
|
font-size: 2.5rem;
|
|
text-align: center;
|
|
color: $white;
|
|
margin: 3rem 1rem 0;
|
|
}
|
|
|
|
#read-mode-toggle {
|
|
@include breakpoint-max(breakpoints(xl)) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
:root {
|
|
&:not(.read-mode) {
|
|
.header__actions {
|
|
position: absolute;
|
|
bottom: 2.5rem;
|
|
right: var(--content-padding);
|
|
}
|
|
}
|
|
|
|
&.read-mode {
|
|
.header__top {
|
|
border: 0;
|
|
}
|
|
|
|
.header__logo {
|
|
& > svg {
|
|
width: 5rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|