mirror of
https://github.com/minio/docs.git
synced 2025-06-01 10:21:51 +03:00
- Default Sphinx search page has been replaced with Algolia's - Enabled routing to sync the search results with URL **Preview:** <img width="1458" alt="Screenshot 2022-12-30 at 14 47 28" src="https://user-images.githubusercontent.com/13393018/210061993-c906461e-87e2-426f-b956-462cfa77ed40.png"> **How to test:** 1. Click on a search result, navigate back using the browser back button and check whether the search result modal is open and available. 2. Type a search keyword and press the enter key to navigate to the search results page, where you can find all the results listed. Note: You might need to start the local web server on the exact build sub-directory to test the point number 2. `build/[branch]/[platform]/html/` - ✔️ `build/` - ❌
127 lines
2.0 KiB
SCSS
127 lines
2.0 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;
|
|
padding-bottom: 3rem;
|
|
}
|
|
|
|
#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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|