mirror of
https://github.com/minio/docs.git
synced 2025-04-27 18:36:56 +03:00
- Give recommended video section a makeover <img width="355" alt="Screenshot 2023-02-08 at 14 05 44" src="https://user-images.githubusercontent.com/13393018/217500836-348b4063-2c54-4b23-8daa-20b127aa7d79.png"> - Fix k8s's active nav state - Fix nav links wrapping on mobile (current behaviour on production looks likes below) <img width="637" alt="Screenshot 2023-02-08 at 11 50 10" src="https://user-images.githubusercontent.com/13393018/217501024-1b8d21d6-0787-46b0-a8f4-fba8e1086f36.png">
492 lines
7.7 KiB
SCSS
492 lines
7.7 KiB
SCSS
:root {
|
|
&:not(.read-mode) {
|
|
.header {
|
|
.search__dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.search--focused {
|
|
z-index: 10;
|
|
|
|
&:before {
|
|
content: '';
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--is-container-background);
|
|
z-index: -1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.read-mode {
|
|
.header {
|
|
#search {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 10;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--is-container-background);
|
|
display: none;
|
|
padding: 2.8rem;
|
|
|
|
@include breakpoint-max(breakpoints(sm)) {
|
|
padding: 1rem;
|
|
}
|
|
|
|
&.search--active {
|
|
display: block;
|
|
}
|
|
|
|
.search-meta-key {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.search__input {
|
|
height: 3.1rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#search {
|
|
--search-hits-item-padding: 0.5rem;
|
|
|
|
isolation: isolate;
|
|
position: relative;
|
|
}
|
|
|
|
.search--active,
|
|
.search--focused {
|
|
.search__reset {
|
|
display: grid;
|
|
}
|
|
}
|
|
|
|
.search__form {
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: $border-radius;
|
|
}
|
|
|
|
.search__input {
|
|
background: transparent var(--is-search-icon) no-repeat center left 1rem;
|
|
background-size: 0.85rem;
|
|
appearance: none;
|
|
height: 2.75rem;
|
|
width: 100%;
|
|
padding: 0 1.5rem 0.05rem 2.5rem;
|
|
color: var(--text-color);
|
|
border-radius: $border-radius;
|
|
border: 0;
|
|
|
|
&::placeholder {
|
|
color: var(--text-muted-color);
|
|
}
|
|
}
|
|
|
|
.search__reset {
|
|
place-content: center;
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
appearance: none;
|
|
border: 0;
|
|
background: none;
|
|
border-radius: $border-radius-sm;
|
|
cursor: pointer;
|
|
display: none;
|
|
margin-right: 0.75rem;
|
|
|
|
&:focus,
|
|
&:hover {
|
|
background-color: var(--theme-light-bg);
|
|
}
|
|
|
|
& > svg {
|
|
width: 0.5rem;
|
|
fill: var(--text-color);
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
#search-clear {
|
|
position: absolute;
|
|
z-index: -1;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search__powered-by {
|
|
padding: 0.6rem 1rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--text-muted-color);
|
|
font-size: 0.65rem;
|
|
justify-content: flex-end;
|
|
transition: color 300ms;
|
|
float: right;
|
|
|
|
&:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
&:before {
|
|
content: "Search by";
|
|
white-space: nowrap;
|
|
}
|
|
|
|
& > a {
|
|
display: block;
|
|
}
|
|
|
|
svg {
|
|
margin-left: -3.2rem;
|
|
|
|
path {
|
|
fill: currentColor;
|
|
|
|
&:first-child {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.search__filters {
|
|
font-size: $font-size-sm;
|
|
}
|
|
|
|
.search__filters__list {
|
|
list-style: none;
|
|
padding: 0.75rem var(--content-padding) 1rem;
|
|
margin: 0;
|
|
gap: 0.35rem;
|
|
color: var(--text-muted-color);
|
|
white-space: nowrap;
|
|
overflow-y: auto;
|
|
|
|
@include hide-scrollbars();
|
|
|
|
& > li {
|
|
display: inline-block;
|
|
|
|
& + li {
|
|
margin-left: 0.5rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search__filters__label {
|
|
border: 1px solid var(--is-refine-list-border-color);
|
|
border-radius: $border-radius;
|
|
line-height: 100%;
|
|
padding: 0.35rem 0.5rem;
|
|
font-weight: $font-weight-medium;
|
|
font-size: $font-size-xs;
|
|
}
|
|
|
|
.search__filters__checkbox {
|
|
display: none;
|
|
|
|
&:checked {
|
|
& ~ .search__filters__label {
|
|
background-color: var(--is-refine-list-border-color);
|
|
color: var(--text-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.search__filters__count {
|
|
display: none;
|
|
}
|
|
|
|
.search__hits__text {
|
|
min-width: 0;
|
|
}
|
|
|
|
.search__hits__list {
|
|
list-style: none;
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.search__hits__item {
|
|
position: relative;
|
|
|
|
& > a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--search-hits-item-padding);
|
|
border-radius: $border-radius;
|
|
min-height: 3rem;
|
|
margin-bottom: 0.3rem;
|
|
|
|
&:focus,
|
|
&:hover {
|
|
background-color: var(--is-highlight-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.search__hits__label,
|
|
.search__hits__title {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.search__hits__title {
|
|
font-size: $font-size-sm;
|
|
color: var(--text-color);
|
|
width: 100%;
|
|
line-height: 1.1;
|
|
|
|
& > mark {
|
|
font-weight: $font-weight-medium;
|
|
background-color: transparent;
|
|
color: #0f77bf;
|
|
}
|
|
}
|
|
|
|
.search__hits__label {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
color: var(--text-muted-color);
|
|
font-size: 0.65rem;
|
|
/* display: flex;
|
|
align-items: center; */
|
|
line-height: 1;
|
|
//margin-top: 0.35rem;
|
|
min-height: 1rem;
|
|
padding-bottom: 0.1rem;
|
|
|
|
.search__hits__platform {
|
|
margin-top: 0.2rem;
|
|
}
|
|
|
|
& > svg {
|
|
height: 0.8rem;
|
|
width: 0.8rem;
|
|
stroke: var(--text-muted-color);
|
|
margin: 0 0.25rem;
|
|
position: relative;
|
|
top: 0.2rem;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.search__hits__icon {
|
|
height: 2.25rem;
|
|
width: 2.25rem;
|
|
flex-shrink: 0;
|
|
margin-right: 0.75rem;
|
|
border-radius: $border-radius;
|
|
background-color: var(--is-search-bg);
|
|
display: grid;
|
|
fill: var(--text-muted-color);
|
|
place-content: center;
|
|
}
|
|
|
|
.search__hits__platform {
|
|
font-size: 0.65rem;
|
|
color: var(--text-muted-color);
|
|
line-height: 1;
|
|
border: 1px solid var(--is-hit-platform-border-color);
|
|
border-radius: $border-radius-sm;
|
|
padding: 0.1rem 0.2rem;
|
|
width: fit-content;
|
|
margin: 0.4rem 0.35rem 0 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
|
|
.search__hits--empty {
|
|
display: grid;
|
|
place-content: center;
|
|
text-align: center;
|
|
font-size: $font-size-sm;
|
|
color: var(--text-muted-color);
|
|
|
|
svg {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
span {
|
|
background: var(--is-highlight-color);
|
|
padding: 0.2rem 0.4rem;
|
|
border-radius: $border-radius-sm;
|
|
color: var(--text-color);
|
|
}
|
|
}
|
|
|
|
.search__empty {
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
.search__loading {
|
|
position: absolute;
|
|
top: 0.75rem;
|
|
left: 1rem;
|
|
background-color: var(--is-search-bg);
|
|
|
|
svg {
|
|
stroke-width: 2px;
|
|
|
|
circle {
|
|
stroke: var(--is-loader-circle-stroke);
|
|
}
|
|
}
|
|
}
|
|
|
|
.header {
|
|
#search {
|
|
padding: 0 1rem 2.5rem;
|
|
display: flex;
|
|
|
|
.search-meta-key {
|
|
font-style: normal;
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 0.9rem;
|
|
pointer-events: none;
|
|
transition: opacity 300ms;
|
|
line-height: 1;
|
|
font-size: $font-size-xs;
|
|
color: var(--text-muted-color);
|
|
}
|
|
}
|
|
|
|
.search--focused {
|
|
.search__dropdown {
|
|
display: flex;
|
|
}
|
|
|
|
.search__form {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
.search-meta-key {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.search__form {
|
|
background-color: var(--is-search-bg);
|
|
}
|
|
|
|
.search__inner {
|
|
max-width: 35rem;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
border-radius: $border-radius-lg;
|
|
position: relative;
|
|
}
|
|
|
|
.search__dropdown {
|
|
background-color: var(--is-dropdown-bg);
|
|
z-index: 10;
|
|
flex-direction: column;
|
|
border-radius: 0 0 $border-radius-lg $border-radius-lg;
|
|
display: none;
|
|
max-height: 24.5rem;
|
|
}
|
|
|
|
.search__filters {
|
|
background-color: var(--is-search-bg);
|
|
|
|
&:not(.search__filters--empty) {
|
|
.search__filters__list {
|
|
padding-inline: 1.25rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
#search-results {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
@extend .scrollbar;
|
|
}
|
|
|
|
.search__filters__list {
|
|
text-align: center;
|
|
}
|
|
|
|
.search__hits__list {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
#search-documentation {
|
|
#search {
|
|
--search-hits-item-padding: 0.7rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.search__form {
|
|
border: 1px solid var(--is-search-border-color);
|
|
|
|
&:focus-within {
|
|
box-shadow: 0 0 0 3px var(--is-search-focus-box-shadow);
|
|
}
|
|
}
|
|
|
|
#search-powered-by {
|
|
position: absolute;
|
|
top: -2.25rem;
|
|
right: -0.85em;
|
|
}
|
|
|
|
#search-filters {
|
|
margin-inline: calc(var(--content-padding) * -1);
|
|
}
|
|
|
|
.search__hits {
|
|
margin: 2rem 0 0 -0.75rem;
|
|
|
|
&:not(.ais-Hits--empty) {
|
|
position: relative;
|
|
|
|
&:before {
|
|
content: "Search Results";
|
|
padding-left: 0.75rem;
|
|
font-size: $font-size-sm;
|
|
font-weight: $font-weight-medium;
|
|
display: inline-block;
|
|
background-color: var(--body-bg);
|
|
position: relative;
|
|
padding-right: 0.5rem;
|
|
z-index: 2;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
&:after {
|
|
content: "";
|
|
height: 1px;
|
|
position: absolute;
|
|
top: 1rem;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 1;
|
|
background-color: var(--theme-light-bg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.search__hits__icon {
|
|
--is-search-bg: var(--is-refine-list-border-color);
|
|
}
|
|
} |