Skip to content

Commit 0022171

Browse files
fix the bugs of side-bar (#357)
Signed-off-by: aryan lamba <[email protected]>
1 parent 3bd0b94 commit 0022171

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

postdoc.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default {
4343
apidocs: {
4444
source: API_DOCS_FOLDER,
4545
layout: 'api/index.ejs',
46+
source: '/path/to/nightwatch/lib/api/',
4647

4748
createUrl(filePath) {
4849
const fileName = basename(filePath, extname(filePath));

public/css/sidebar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ body.navbar-visible .bs-sidebar {
449449

450450
.right-side-nav {
451451
position: fixed;
452-
right: 10px;
452+
right: 5px;
453453
top: 120px;
454454
}
455455

@@ -459,6 +459,7 @@ body.navbar-visible .bs-sidebar {
459459
padding-top: 10px;
460460
padding-left: 0;
461461
padding-right: 0px;
462+
462463
}
463464

464465
/* @media screen and (max-width: 1400px) {

public/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,12 +1244,11 @@ html {
12441244
.doc-sideNav {
12451245
top: 50px;
12461246
padding-top: 50px;
1247-
position: sticky;
1247+
/* position: static; */
12481248
height: 100%;
12491249
padding-right: 0;
12501250
padding-left: 0;
12511251
}
1252-
12531252
.doc-sideNav ul {
12541253
list-style-type: none;
12551254
padding-left: 20px;
@@ -2474,6 +2473,7 @@ section.secondary h1.community-support-title {
24742473

24752474
.doc-container.full-width .doc-main-body {
24762475
border-right: 1px solid #F6F6F6;
2476+
max-width: 60%;
24772477
}
24782478

24792479
.doc-main-body h1,

src/includes/rightSidebarContent.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const content = [...pageContent.matchAll(/<h3[^>]*id="([^"]+)".*?>(?:<a[^>]*>([^
77
}));
88
%>
99

10-
<div class="wrapper">
10+
<div class="wrapper22" style="position: static;">
1111
<h5>On this page</h5>
1212
<nav class="main-side-nav">
1313
<% content.forEach(({ id, title }) => { %>

src/includes/sections/guide.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
</div>
418418

419419
<div class="d-none d-xl-block col-xl-2 doc-sideNav right-side-nav">
420-
<div class="wrapper">
420+
<div class="wrapper" style="background-color: blueviolet;">
421421
<h5>On this page</h5>
422422
<nav class="main-side-nav">
423423
<% rightSidebarContent.forEach(({ id, title }) => { %>

0 commit comments

Comments
 (0)