This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 9101d22b2b doc: fix site sidebar logo position (#5990)
9101d22b2b is described below
commit 9101d22b2b4e954805339a56f9c0d43c0e9ec153
Author: Jeffrey <[email protected]>
AuthorDate: Sat Apr 15 02:16:07 2023 +1000
doc: fix site sidebar logo position (#5990)
* Fix doc site sidebar logo position
* Add padding to logo
---
docs/source/_static/theme_overrides.css | 13 +++----------
docs/source/_templates/docs-sidebar.html | 8 ++++----
2 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/docs/source/_static/theme_overrides.css
b/docs/source/_static/theme_overrides.css
index 1e972cc6fc..838eab067a 100644
--- a/docs/source/_static/theme_overrides.css
+++ b/docs/source/_static/theme_overrides.css
@@ -45,16 +45,9 @@ code {
.navbar-brand {
height: auto;
width: auto;
+ padding: 0 2em;
}
-a.navbar-brand img {
- height: auto;
- width: auto;
- max-height: 15vh;
- max-width: 100%;
-}
-
-
/* This is the bootstrap CSS style for "table-striped". Since the theme does
not yet provide an easy way to configure this globaly, it easier to simply
include this snippet here than updating each table in all rst files to
@@ -69,12 +62,12 @@ add ":class: table-striped" */
custimized template, there is more content above the navigation, i.e.
larger logo: if we don't decrease the max-height, it will overlap with
the footer.
-Details: min(15vh, 110px) for the logo size, 8rem for search box etc*/
+Details: 8rem for search box etc*/
@media (min-width:720px) {
@supports (position:-webkit-sticky) or (position:sticky) {
.bd-links {
- max-height: calc(100vh - min(15vh, 110px) - 8rem)
+ max-height: calc(100vh - 8rem)
}
}
}
diff --git a/docs/source/_templates/docs-sidebar.html
b/docs/source/_templates/docs-sidebar.html
index 20a682b624..2b400b4dca 100644
--- a/docs/source/_templates/docs-sidebar.html
+++ b/docs/source/_templates/docs-sidebar.html
@@ -13,9 +13,9 @@
{{ generate_nav_html("sidebar", startdepth=0, maxdepth=4, collapse=False,
includehidden=True, titles_only=True) }}
{% endif %}
</div>
-</nav>
+ <a class="navbar-brand" href="{{ pathto(master_doc) }}">
+ <img src="{{ pathto('_static/images/DataFusion-Logo-Background-White.png',
1) }}" class="logo" alt="logo">
+ </a>
+</nav>
-<a class="navbar-brand" href="{{ pathto(master_doc) }}">
- <img src="{{ pathto('_static/images/DataFusion-Logo-Background-White.png',
1) }}" class="logo" alt="logo">
-</a>