1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00

Additional CSS/JS FIxups

This commit is contained in:
ravindk89
2020-09-21 19:33:01 -04:00
parent 61884974d1
commit d2657ec80a
4 changed files with 42 additions and 13 deletions

View File

@ -8,7 +8,7 @@
:root { :root {
--table-border-color: #e6e6e6; --table-border-color: #e6e6e6;
--minio-red: #c72e49; --minio-red: rgb(199, 46, 73);
--minio-midnight: #012b35; --minio-midnight: #012b35;
--minio-nautical: #00303f; --minio-nautical: #00303f;
--minio-meridian: #132742; --minio-meridian: #132742;
@ -16,6 +16,10 @@
} }
html {
scroll-behavior: smooth;
}
body { body {
font-family: Mark, Helvetica, sans-serif; font-family: Mark, Helvetica, sans-serif;
font-size: 100%; font-size: 100%;
@ -26,12 +30,11 @@ div.flexwrapper {
flex-flow: row wrap; flex-flow: row wrap;
width: auto; width: auto;
height: 100vh;
/* overflow: hidden; /* overflow: hidden;
Have to comment this out because clicking anchors breaks layout. */ Have to comment this out because clicking anchors breaks layout. */
} }
div :target.h1,h2,h3,h4 { body :target {
scroll-margin-top: 100px; scroll-margin-top: 100px;
} }
@ -46,6 +49,7 @@ body div.left {
top: 85px; top: 85px;
color: var(--minio-meridian); color: var(--minio-meridian);
z-index: 5; z-index: 5;
border-right: 1px solid var(--minio-glacier);
} }
body div.left li.toctree-l1 a { body div.left li.toctree-l1 a {
@ -53,6 +57,7 @@ body div.left li.toctree-l1 a {
} }
body div.left div.sphinxsidebarwrapper { body div.left div.sphinxsidebarwrapper {
padding: 0 0 0 5px; padding: 0 0 0 5px;
margin-top: 15px;
} }
body div.left div.sphinxsidebarwrapper ul { body div.left div.sphinxsidebarwrapper ul {
@ -62,10 +67,11 @@ body div.left div.sphinxsidebarwrapper ul {
body div.left button.sphinxsidebarbutton { body div.left button.sphinxsidebarbutton {
width: 100px; width: 100px;
margin-left: auto;
background: none; background: none;
border: none; border: none;
margin-bottom: 5px; position: fixed;
left: 115px;
top: 75px;
} }
body div.left div.sphinxsidebarwrapper a.current.reference.internal { body div.left div.sphinxsidebarwrapper a.current.reference.internal {
@ -78,6 +84,11 @@ body div.left div.sphinxsidebarwrapper a.current.reference.internal {
} }
body div.left div.sphinxsidebarwrapper h1.logo {
font-size: 110%;
margin: 0px;
}
body div.left div.sphinxsidebarwrapper li.toctree-l1 { body div.left div.sphinxsidebarwrapper li.toctree-l1 {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
@ -194,6 +205,7 @@ body div.right {
flex-shrink: 0; flex-shrink: 0;
margin-left: 10px; margin-left: 10px;
margin-top: 85px; margin-top: 85px;
border-left: 1px solid var(--minio-glacier);
} }
body div.right div.topic { body div.right div.topic {
@ -201,14 +213,30 @@ body div.right div.topic {
border-style: none; border-style: none;
} }
body div.right div.localtoc {
position: sticky;
top: 85px;
}
body div.right ul.simple { body div.right ul.simple {
margin-left: 5px; margin-left: 5px;
} }
body div.right ul li {
border-top: 1px solid var(--minio-glacier);
border-bottom: 1px solid var(--minio-glacier);
padding-top: 5px;
padding-bottom: 5px;
}
body div.right ul { body div.right ul {
list-style: none; list-style: none;
} }
body div.right ul li ul {
margin-left: 10px;
}
body div.right a.reference.internal { body div.right a.reference.internal {
color: var(--minio-meridian); color: var(--minio-meridian);
text-decoration: none; text-decoration: none;
@ -221,6 +249,7 @@ body div.right p.active-p {
margin-left: -10px; margin-left: -10px;
} }
/* Collapse CSS */ /* Collapse CSS */
body div.left.collapsed { body div.left.collapsed {

View File

@ -18,8 +18,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
// how to resolve that. // how to resolve that.
let options = { let options = {
root: document.querySelector('div.center'), rootMargin: '-85px 0px 0px 0px'
rootMargin: '-150px 0px -300px 0px'
} }
const observer = new IntersectionObserver(entries => { const observer = new IntersectionObserver(entries => {
@ -69,11 +68,11 @@ window.addEventListener('DOMContentLoaded', (event) => {
leftcolumn.classList.toggle('collapsed'); leftcolumn.classList.toggle('collapsed');
centercolumn.classList.toggle('collapsed'); centercolumn.classList.toggle('collapsed');
sidebarwrapper.classList.toggle('collapsed'); sidebarwrapper.classList.toggle('collapsed');
if (button.textContent == "[x] Collapse") { if (button.textContent == "Collapse x") {
button.textContent = "[x] Expand"; button.textContent = "Expand x";
} }
else { else {
button.textContent = "[x] Collapse"; button.textContent = "Collapse x";
} }
} }

View File

@ -53,7 +53,7 @@
{%- block content %} {%- block content %}
<div class="left column"> <div class="left column">
<button class="sphinxsidebarbutton button-collapse">[x] Collapse</button> <button class="sphinxsidebarbutton button-collapse">Collapse x</button>
{{ miniosidebar() }} {{ miniosidebar() }}
</div> </div>
<div class="flexwrapper"> <div class="flexwrapper">
@ -62,7 +62,8 @@
{% block alertbar -%} {% block alertbar -%}
<div class="alert alert-info"> <div class="alert alert-info">
<span class="alert-message"> <span class="alert-message">
<p>We're building a new version of the MinIO Documentation! <p>Welcome to the upcoming version of the MinIO Documentation!
The content of these pages may change at any time.
If you can't find what you're looking for, check our If you can't find what you're looking for, check our
<a href="https://docs.min.io"> legacy documentation</a>. <a href="https://docs.min.io"> legacy documentation</a>.
Thank you for your patience. Thank you for your patience.

View File

@ -22,7 +22,7 @@ sys.path.append(os.path.abspath('../sphinxext'))
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'DOCS@MinIO' project = 'MinIO Documentation'
copyright = '2020, MinIO' copyright = '2020, MinIO'
author = 'Ravind Kumar' author = 'Ravind Kumar'