1
0
mirror of https://github.com/minio/docs.git synced 2025-04-25 17:22:39 +03:00
Rushan 1bb0e097b7
Add responsive wrappers for tables (#533)
* Add responsive wrappers for tables

* Add missing styles
2022-08-23 14:49:05 -05:00

156 lines
2.4 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: 3rem;
font-weight: $font-weight-bold;
color: var(--header-headings-color);
margin: 0 0 2rem;
}
}
}
&.read-mode {
.header__top {
border: 0;
}
.header__logo {
& > svg {
width: 5rem;
}
}
.header__hero {
position: absolute;
right: 0;
width: 100%;
height: $search-height;
padding: 0 var(--content-padding);
top: 3.3rem;
& > h2 {
display: none;
}
@include breakpoint-min(breakpoints(xl)) {
max-width: 31.5rem;
}
@include breakpoint-max(breakpoints(lg)) {
top: 7.2rem
}
&:not(.active) {
display: none;
}
}
}
}