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 { .docs ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
font-size: .95rem; } 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 { .docs ul > li > a, .docs ul > li > a > code {
all: unset; } all: unset; }
.docs ul > li > a:hover { .docs ul > li > a:hover {
border: 0; border: 0;
cursor: pointer; } cursor: pointer; }
.docs ul > li.active > a {
.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; color: #C72C48;
font-weight: 500; } font-weight: 500; }
.docs > ul > li > ul { .docs ul > li.active-parent > a {
margin: 0 0 0.5rem; }
.docs > ul > li > ul > li > a {
font-size: 0.85rem;
color: #494949; 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 { div#localtoc {
font-size: 13px; 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")); .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 // Toggle Sidebars
$('body').on('click', '[data-toggle]', function() { $('body').on('click', '[data-toggle]', function() {
var target = $(this).attr('data-toggle'); var target = $(this).attr('data-toggle');

View File

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