aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/doc
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-08-26 12:31:00 +0200
committerTopi Reinio <topi.reinio@qt.io>2020-08-26 13:35:47 +0200
commitd92a25a384f4828c3d59d06d81a456f675cbaa26 (patch)
treedfd2759902298c260a0aa94812fc68396b6157c5 /sources/pyside2/doc
parentacb54ac2235199cbb710799d7934e56737bacfbb (diff)
CSS: Make sidebar stick to the top
With 'position: sticky' we can make the sidebar stick to the top but never go out of bounds to overlap the content or the footer. Fixes: PYSIDE-1148 Change-Id: Id3875d44caf88e070a8abdf7b81ab8e53ad5e4d5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/doc')
-rw-r--r--sources/pyside2/doc/_themes/pysidedocs/static/pyside.css7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/pyside2/doc/_themes/pysidedocs/static/pyside.css b/sources/pyside2/doc/_themes/pysidedocs/static/pyside.css
index c6a0c56a1..f6a1c5ae4 100644
--- a/sources/pyside2/doc/_themes/pysidedocs/static/pyside.css
+++ b/sources/pyside2/doc/_themes/pysidedocs/static/pyside.css
@@ -552,6 +552,9 @@ tt.descname {
.container {
padding:0 2%
}
+ .sphinxsidebar {
+ top: 16px !important;
+ }
}
#navbar .navbar-oneQt {
display:inline;
@@ -1172,7 +1175,9 @@ div.multi-column div {
.col-2 h2,.toc h3,.sidebar-content h2,
.sidebar-content h3,.sectionlist h2,
.sphinxsidebar {
- position: fixed;
+ position: -webkit-sticky;
+ position: sticky;
+ top: 64px;
overflow: scroll;
overflow-x: hidden;
overflow-y: hidden;