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

SCSS fixups

This commit is contained in:
ravindk89
2021-05-18 20:28:04 -04:00
committed by Ravind Kumar
parent d4739f7db5
commit 946c43785b
4 changed files with 57 additions and 74 deletions

View File

@ -732,41 +732,24 @@ table.docutils {
.docs ul {
list-style: none;
padding: 0;
font-size: .95rem; }
.docs ul > li > a, .docs ul > li > a > code {
all: unset; }
.docs ul > li > a:hover {
border: 0;
cursor: pointer; }
.docs > ul {
margin: 0; }
.docs > ul > li > a {
color: #1C1C1C;
padding: 0.5rem 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; }
.docs > ul > li > a:hover {
color: #000000; }
.docs > ul > li.current > a {
color: #C72C48;
font-weight: 500; }
.docs > ul > li > ul {
margin: 0 0 0.5rem; }
.docs > ul > li > ul > li > a {
font-size: 0.85rem;
margin: 0.5rem 0 0.5rem 0;
font-size: .90rem; }
.docs ul > li {
margin: 0.5rem 0 0.5rem 0; }
.docs ul > li > a, .docs ul > li > a > code {
all: unset; }
.docs ul > li > a:hover {
border: 0;
cursor: pointer; }
.docs ul > li.active > a {
color: #C72C48;
font-weight: 500; }
.docs ul > li.active-parent > a {
color: #494949;
display: block;
padding: 0.4rem 0; }
.docs > ul > li > ul > li > a:hover {
color: black; }
.docs > ul > li > ul > li > a.current {
color: black;
font-weight: 500; }
font-weight: 500; }
.docs ul > li > ul > li {
margin: 0.5rem 0 0.5rem 0.5rem;
font-size: 0.85rem; }
div#localtoc {
font-size: 13px;

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,23 @@ window.addEventListener("DOMContentLoaded", (event) => {
.appendChild(document.getElementById("table-of-contents"));
}
var l3 = document.getElementsByClassName("toctree-l3 current")
var l2 = document.getElementsByClassName("toctree-l2 current")
var l1 = document.getElementsByClassName("toctree-l1 current")
if (l3.length > 0) {
l3[0].classList.add("active");
l2[0].classList.add("active-parent");
l1[0].classList.add("active-parent");
}
else if (l2.length > 0 ) {
l2[0].classList.add("active");
l1[0].classList.add("active-parent");
}
else if (l1.length > 0 ) {
l1[0].classList.add("active");
}
// Toggle Sidebars
$('body').on('click', '[data-toggle]', function() {
var target = $(this).attr('data-toggle');

View File

@ -92,9 +92,13 @@
ul {
list-style: none;
padding: 0;
font-size: .95rem;
margin: 0.5rem 0 0.5rem 0;
font-size: .90rem;
& > li {
margin: 0.5rem 0 0.5rem 0;
& > a {
&, & > code {
all: unset;
@ -105,51 +109,30 @@
cursor: pointer;
}
}
}
}
& > ul {
margin: 0;
&.active {
& > li {
& > a {
color: $docs-item-main-color;
padding: 0.5rem 0;
display: flex;
align-items: center;
&:hover {
color: $docs-item-main-hover-color;
}
& > a {
color: $docs-item-main-active-color;
font-weight: $font-weight-medium;
}
}
&.current {
& > a {
color: $docs-item-main-active-color;
font-weight: $font-weight-medium;
}
&.active-parent {
& > a {
color: $docs-item-sub-color;
font-weight: $font-weight-medium;
}
}
& > ul {
margin: 0 0 0.5rem;
& > li {
& > a {
font-size: 0.85rem;
color: $docs-item-sub-color;
display: block;
padding: 0.4rem 0;
& > li {
margin: 0.5rem 0 0.5rem 0.5rem;
font-size: 0.85rem;
}
&:hover {
color: $docs-item-sub-hover-color;
}
&.current {
color: $docs-item-sub-active-color;
font-weight: $font-weight-medium;
}
}
}
}
}
}