mirror of
https://github.com/minio/docs.git
synced 2025-07-27 08:41:57 +03:00
- Fixed the sidebar scroll - with this fix, you'll be able to scroll to the end of the left sidebar at any given screen height. - Renamed content-navigation component and CSS class names for better consistency. - Changed the footer style by including it as part of the main content area. This change is required to have the scroll fix mentioned at point no. 1. - Reduced the hero height by a small margin, in order to have more sidebar scroll room on smaller devices such as 13 inch laptop and all. - Used higher contrast color on search modal's bg and scrollbar thumb to have better color consistency. - Made scrollbar thumbs visible by default. - Set sidebar scroll position to match the active doc item. - Added custom scrollbars for code blocks.
130 lines
2.0 KiB
SCSS
130 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__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;
|
|
|
|
.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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#read-mode-toggle {
|
|
@include breakpoint-max(breakpoints(xl)) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
:root {
|
|
&:not(.read-mode) {
|
|
.header__actions {
|
|
position: absolute;
|
|
bottom: 2rem;
|
|
right: var(--content-padding);
|
|
}
|
|
|
|
.header__hero {
|
|
text-align: center;
|
|
padding: 3rem 0 2rem;
|
|
|
|
& > h2 {
|
|
font-size: 2.5rem;
|
|
font-weight: $font-weight-bold;
|
|
color: var(--header-headings-color);
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.read-mode {
|
|
.header__top {
|
|
border: 0;
|
|
}
|
|
|
|
.header__logo {
|
|
& > svg {
|
|
width: 5rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|