1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

sticky/overflow scrolling sidebar interaction

This commit is contained in:
Matthias Kretschmann 2018-11-10 01:29:10 +01:00
parent 497a7cebcc
commit 01f7c2b62a
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 28 additions and 5 deletions

View File

@ -1,4 +1,4 @@
- group: Tutorials
- group: Data Science
items:
- title: Jupyter Notebooks
link: /tutorials/jupyter/

View File

@ -1,7 +1,7 @@
@import 'variables';
.headerSection {
padding: $spacer 0;
padding: $spacer / $line-height 0;
border-bottom: .1rem solid $brand-grey-lighter;
}

View File

@ -1,7 +1,32 @@
@import 'variables';
.sidebar {
padding-top: $spacer / 2;
padding-bottom: $spacer;
padding-right: $spacer / 2;
position: sticky;
top: 0;
max-height: 100vh;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar,
&::-moz-scrollbar {
display: none;
}
&::-webkit-scrollbar {
width: 6px;
height: 6px;
}
&::-webkit-scrollbar-thumb {
background: $brand-grey-lighter;
}
&::-webkit-scrollbar-track {
background: darken($brand-white, 3%);
}
}
.groupTitle {

View File

@ -8,9 +8,7 @@
.sidebar {
flex: 0 0 27%;
padding-right: $spacer;
margin-top: $spacer / 2;
position: sticky;
top: $spacer;
+ .main {