This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch branch-1.8.0
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/branch-1.8.0 by this push:
new b7f2b025b5 [DOCS] Fixed mobile sidebar navigation (#2382)
b7f2b025b5 is described below
commit b7f2b025b513f690a2e6d114851bbaca75323813
Author: Andrii Marushchak <[email protected]>
AuthorDate: Fri Oct 10 20:10:41 2025 +0300
[DOCS] Fixed mobile sidebar navigation (#2382)
---
docs-overrides/assets/stylesheets/components/_header.scss | 11 +++++++++++
docs-overrides/assets/stylesheets/pages/_page-home.scss | 10 +++++++++-
docs-overrides/main.html | 9 ---------
3 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/docs-overrides/assets/stylesheets/components/_header.scss
b/docs-overrides/assets/stylesheets/components/_header.scss
index 9a8ee1923d..5dcc397b51 100644
--- a/docs-overrides/assets/stylesheets/components/_header.scss
+++ b/docs-overrides/assets/stylesheets/components/_header.scss
@@ -83,6 +83,17 @@
justify-content: center;
align-items: center;
margin-right: 14px;
+
+ &.btn-search {
+ display: none;
+ }
+ }
+ }
+ @media (max-width: 959px) {
+ .md-header__button {
+ &.btn-search {
+ display: flex;
+ }
}
}
}
diff --git a/docs-overrides/assets/stylesheets/pages/_page-home.scss
b/docs-overrides/assets/stylesheets/pages/_page-home.scss
index 0d0925255f..c284536a18 100644
--- a/docs-overrides/assets/stylesheets/pages/_page-home.scss
+++ b/docs-overrides/assets/stylesheets/pages/_page-home.scss
@@ -6,9 +6,17 @@ body:has(.page-home) {
width: 100%;
max-width: 100%;
margin: 0;
- &>.md-sidebar{
+
+ & > .md-sidebar {
display: none;
}
+
+ @media (max-width: 1219px) {
+ & > .md-sidebar.md-sidebar--primary {
+ display: block;
+ }
+ }
+
}
}
}
diff --git a/docs-overrides/main.html b/docs-overrides/main.html
index 713c3c01c0..f7d1cd6462 100644
--- a/docs-overrides/main.html
+++ b/docs-overrides/main.html
@@ -26,15 +26,6 @@ You're not viewing the latest stable version.
{% if page.is_homepage %}
<div class="page-home">
- <!-- Mobile Navigation ( required ) -->
- <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar"
data-md-type="navigation" {{ hidden }}>
- <div class="md-sidebar__scrollwrap">
- <div class="md-sidebar__inner">
- {% include "partials/nav.html" %}
- </div>
- </div>
- </div>
-
<!-- Section Hero -->
<section class="section-hero">
<div class="container">