Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,19 @@
<script src="/js/prism.js"></script>
<link href="/css/prism.css" rel="stylesheet" />


{% include scripts.html %}

</head>
<body>
{% include nav.html %}

<div class="container-fluid">
<div class="row">
<a class="cDocsMenu">
Docs Menu
<img src="/img/docsmenu.svg"/>

</a>
<nav class="col-lg-2 col-md-3 bg-light sidebar py-4">

<div class="accordion" id="mainAccordion">
Expand All @@ -46,10 +51,7 @@

</nav>







<!-- Main Documentation Content -->
<main class="col-lg-8 col-md-9 col-12 py-4">
Expand Down Expand Up @@ -165,6 +167,11 @@ <h6 class="text-muted">On this page</h6>
document.title = h1.textContent + "";
}
});
$(document).ready(function() {
$(".cDocsMenu").on("click", function() {
$(".sidebar").toggleClass("cShow");
});
});
</script>
</body>
</html>
46 changes: 45 additions & 1 deletion css/openchoreo-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -412,16 +412,60 @@ body.cDarkMode .copy-btn.copied {
body.cDarkMode .copy-btn.copied svg {
fill: white;
}

.cDocsMenu {
border: 1px solid #d9d9d9;
padding: 5px 15px;
width: auto;
border-radius: 10px;
margin-top: 10px;
margin-left: 5px;
text-decoration: none !important;
color: #000;
line-height: 30px;
display: none;

}

body.cDarkMode .cDocsMenu {
border: 1px solid #d9d9d9;
color: #fff;

}

.cDocsMenu img {
height: 30px;
width: 30px;
margin-left: 10px;

}

body.cDarkMode .cDocsMenu img {
filter: invert(1);

}


/* #mainAccordion a {
color: #B7B7B7;
} */

/* Responsive */
@media (max-width: 991.98px) {
@media (max-width: 998px) {
.sidebar {
position: relative;
height: auto;
top: auto;
display: none !important;
}
.cDocsMenu {
display: block;
margin-bottom: 10px;
}

.sidebar.cShow {
display:block !important;
position: static !important;
}

.toc {
Expand Down
1 change: 1 addition & 0 deletions img/docsmenu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.