Skip to content

Commit 45ef1a8

Browse files
Merge pull request #58 from madhuramendis/main
Update styling
2 parents 83eae01 + 0966cd3 commit 45ef1a8

File tree

3 files changed

+58
-6
lines changed

3 files changed

+58
-6
lines changed

_layouts/docs.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@
2828
<script src="/js/prism.js"></script>
2929
<link href="/css/prism.css" rel="stylesheet" />
3030

31-
31+
{% include scripts.html %}
3232

3333
</head>
3434
<body>
3535
{% include nav.html %}
3636

3737
<div class="container-fluid">
3838
<div class="row">
39+
<a class="cDocsMenu">
40+
Docs Menu
41+
<img src="/img/docsmenu.svg"/>
42+
43+
</a>
3944
<nav class="col-lg-2 col-md-3 bg-light sidebar py-4">
4045

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

4752
</nav>
4853

49-
50-
51-
52-
54+
5355

5456
<!-- Main Documentation Content -->
5557
<main class="col-lg-8 col-md-9 col-12 py-4">
@@ -165,6 +167,11 @@ <h6 class="text-muted">On this page</h6>
165167
document.title = h1.textContent + "";
166168
}
167169
});
170+
$(document).ready(function() {
171+
$(".cDocsMenu").on("click", function() {
172+
$(".sidebar").toggleClass("cShow");
173+
});
174+
});
168175
</script>
169176
</body>
170177
</html>

css/openchoreo-docs.css

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,16 +412,60 @@ body.cDarkMode .copy-btn.copied {
412412
body.cDarkMode .copy-btn.copied svg {
413413
fill: white;
414414
}
415+
416+
.cDocsMenu {
417+
border: 1px solid #d9d9d9;
418+
padding: 5px 15px;
419+
width: auto;
420+
border-radius: 10px;
421+
margin-top: 10px;
422+
margin-left: 5px;
423+
text-decoration: none !important;
424+
color: #000;
425+
line-height: 30px;
426+
display: none;
427+
428+
}
429+
430+
body.cDarkMode .cDocsMenu {
431+
border: 1px solid #d9d9d9;
432+
color: #fff;
433+
434+
}
435+
436+
.cDocsMenu img {
437+
height: 30px;
438+
width: 30px;
439+
margin-left: 10px;
440+
441+
}
442+
443+
body.cDarkMode .cDocsMenu img {
444+
filter: invert(1);
445+
446+
}
447+
448+
415449
/* #mainAccordion a {
416450
color: #B7B7B7;
417451
} */
418452

419453
/* Responsive */
420-
@media (max-width: 991.98px) {
454+
@media (max-width: 998px) {
421455
.sidebar {
422456
position: relative;
423457
height: auto;
424458
top: auto;
459+
display: none !important;
460+
}
461+
.cDocsMenu {
462+
display: block;
463+
margin-bottom: 10px;
464+
}
465+
466+
.sidebar.cShow {
467+
display:block !important;
468+
position: static !important;
425469
}
426470

427471
.toc {

img/docsmenu.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)