From da987658a20f00b0c3bae2d7a7b48439c10c5b7f Mon Sep 17 00:00:00 2001 From: ac-mmi Date: Sat, 4 Jan 2025 20:00:04 +0530 Subject: [PATCH 1/2] did some changes in the file to improve the responsiveness of the site --- docs/guide/overview/what-is-nightwatch.md | 5 +- public/css/mobile.css | 2 +- public/css/sidebar.css | 4 +- public/css/style.css | 12 +++-- src/includes/footer.ejs | 17 +++---- src/includes/guide-sidebar.ejs | 61 ++++++++++++++++------- src/includes/navbar.ejs | 31 ++++++++++++ src/pages/guide/index.ejs | 10 ++-- 8 files changed, 101 insertions(+), 41 deletions(-) diff --git a/docs/guide/overview/what-is-nightwatch.md b/docs/guide/overview/what-is-nightwatch.md index 4bb18f8b..6a2c6a04 100644 --- a/docs/guide/overview/what-is-nightwatch.md +++ b/docs/guide/overview/what-is-nightwatch.md @@ -46,8 +46,8 @@ Nightwatch also can be integrated with cloud-based testing platforms like [Brows ### Supported browsers WebDriver is implemented by all major browser vendors as a W3C compliant HTTP service. - - +
+
@@ -84,6 +84,7 @@ WebDriver is implemented by all major browser vendors as a W3C compliant HTTP se
Browser Driver
+ [1]: https://nodejs.org/ [2]: https://www.w3.org/TR/webdriver/ diff --git a/public/css/mobile.css b/public/css/mobile.css index ce5a925a..688d6a8e 100644 --- a/public/css/mobile.css +++ b/public/css/mobile.css @@ -290,4 +290,4 @@ width: auto; } -} +} \ No newline at end of file diff --git a/public/css/sidebar.css b/public/css/sidebar.css index 9dbf8c7a..0d3240e9 100644 --- a/public/css/sidebar.css +++ b/public/css/sidebar.css @@ -74,7 +74,7 @@ } .bs-sidebar .nav { - display: block; + display: block !important; } .doc-sidebar { @@ -87,7 +87,7 @@ display: none; } -@media only screen and (max-width: 767px) { +@media only screen and (max-width: 992px) { .doc-sidebar { border: none; background: #f5f5f5; diff --git a/public/css/style.css b/public/css/style.css index 52c33b59..9cb81309 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1272,16 +1272,16 @@ html { #doc-sidebar-nav { max-height: 100vh; - /* overflow-y: scroll; */ + overflow-y: scroll; } -@media only screen and (min-width: 768px) { +@media only screen and (min-width: 992px) { #doc-sidebar-nav { - display: block !important; + display: block !important; /* Show sidebar as block */ } } -@media only screen and (max-width: 768px) { +@media only screen and (max-width: 991px) { #doc-sidebar-nav { position: fixed; top: 79px; @@ -1291,7 +1291,9 @@ html { width: 280px; border-left: 1px solid #E1E6EE; padding: 30px 15px 10px; + height: 100%; max-height: calc(100vh - 79px); + overflow-y: auto; } #doc-sidebar-nav .nav.bs-sidenav li .btn { @@ -3369,4 +3371,4 @@ p.bottom-text { } } -/* Footer section end */ +/* Footer section end */ \ No newline at end of file diff --git a/src/includes/footer.ejs b/src/includes/footer.ejs index 5535d023..b8572f62 100644 --- a/src/includes/footer.ejs +++ b/src/includes/footer.ejs @@ -1,8 +1,8 @@