mirror of
https://github.com/minio/docs.git
synced 2025-04-21 08:05:59 +03:00
JS update to allow a link into a closed tab. Tested with ``` :mc-conf:`~browser.hsts_seconds` ``` which goes to a tab in [this section](https://min.io/docs/minio/linux/reference/minio-server/settings/console.html#strict-transport-security) @rushenn Ravind and Andrea came up with this, need a JS intervention to ensure it's actually reasonable. 🙏🏻 Staged http://192.241.195.202:9000/staging/link-into-tab/linux/reference/minio-server/settings/console.html#strict-transport-security --------- Co-authored-by: Ravind Kumar <ravind@min.io> Co-authored-by: Rushan <rushenn123@gmail.com>
76 lines
1.3 KiB
SCSS
76 lines
1.3 KiB
SCSS
|
|
:root {
|
|
--content-padding: 1.75rem;
|
|
|
|
@include breakpoint-max(breakpoints(lg)) {
|
|
--content-padding: 1.25rem;
|
|
}
|
|
|
|
&.locked {
|
|
&,
|
|
body,
|
|
.content {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
|
|
@include breakpoint-min(breakpoints(lg)) {
|
|
& > .container {
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content__main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: var(--content-padding);
|
|
}
|
|
|
|
.container {
|
|
margin: 0 auto;
|
|
padding: 0 var(--content-padding);
|
|
width: 100%;
|
|
}
|
|
|
|
:root {
|
|
&:not(.read-mode) {
|
|
.container {
|
|
max-width: $container-width;
|
|
}
|
|
}
|
|
|
|
&.read-mode {
|
|
.content {
|
|
@include breakpoint-min(breakpoints(lg)) {
|
|
overflow: auto;
|
|
scroll-padding: 2rem;
|
|
}
|
|
|
|
& > .container {
|
|
padding-inline: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Keep only the main content when the page is loaded inside an iframe.
|
|
// Currently we load certain pages inside iframes for PathFactory analytics.
|
|
.inside-iframe {
|
|
.header,
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.content {
|
|
height: 100vh;
|
|
}
|
|
|
|
.content__main {
|
|
padding-left: var(--content-padding);
|
|
}
|
|
} |