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;
.docs ul > li > a, .docs ul > li > a > code { font-size: .90rem; }
all: unset; } .docs ul > li {
.docs ul > li > a:hover { margin: 0.5rem 0 0.5rem 0; }
border: 0; .docs ul > li > a, .docs ul > li > a > code {
cursor: pointer; } all: unset; }
.docs ul > li > a:hover {
.docs > ul { border: 0;
margin: 0; } cursor: pointer; }
.docs > ul > li > a { .docs ul > li.active > a {
color: #1C1C1C; color: #C72C48;
padding: 0.5rem 0; font-weight: 500; }
display: -webkit-box; .docs ul > li.active-parent > a {
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;
color: #494949; color: #494949;
display: block; font-weight: 500; }
padding: 0.4rem 0; } .docs ul > li > ul > li {
.docs > ul > li > ul > li > a:hover { margin: 0.5rem 0 0.5rem 0.5rem;
color: black; } font-size: 0.85rem; }
.docs > ul > li > ul > li > a.current {
color: black;
font-weight: 500; }
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 {
& > a { color: $docs-item-main-active-color;
color: $docs-item-main-color; font-weight: $font-weight-medium;
padding: 0.5rem 0; }
display: flex;
align-items: center;
&:hover {
color: $docs-item-main-hover-color;
}
} }
&.current { &.active-parent {
& > a {
color: $docs-item-main-active-color; & > a {
font-weight: $font-weight-medium; color: $docs-item-sub-color;
} font-weight: $font-weight-medium;
}
} }
& > ul { & > ul {
margin: 0 0 0.5rem;
& > li { & > li {
& > a { margin: 0.5rem 0 0.5rem 0.5rem;
font-size: 0.85rem; font-size: 0.85rem;
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;
}
}
}
} }
} }
} }