aboutsummaryrefslogtreecommitdiff
path: root/src/App.scss
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-04-07 15:11:23 +0300
committerHenry Jameson <me@hjkos.com>2022-04-07 15:11:23 +0300
commitb5ded67c0608724fe23be15e346dd6842819635f (patch)
tree6dab9bacf427db768d8e399c4718cdec7d7371f8 /src/App.scss
parentd3d219f15d4bac88f58d4fd0fed6f798b81cca82 (diff)
options to enable scrollbars and disable sticky headers
Diffstat (limited to 'src/App.scss')
-rw-r--r--src/App.scss27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/App.scss b/src/App.scss
index 1867a54d..ac6cf3f4 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -59,6 +59,7 @@ nav {
#content {
overscroll-behavior-y: none;
overflow-y: auto;
+ overflow-x: hidden;
position: sticky;
}
@@ -136,6 +137,19 @@ nav {
max-height: calc(100vh - var(--navbar-height));
overflow-y: auto;
overflow-x: hidden;
+ margin-left: -2em;
+ padding-left: 2.5em;
+
+ &:not(.-show-scrollbar) {
+ scrollbar-width: none;
+ margin-right: -2em;
+ padding-right: 2.5em;
+
+ &::-webkit-scrollbar {
+ display: block;
+ width: 0;
+ }
+ }
.panel-heading.-sticky {
top: -10px;
@@ -143,6 +157,15 @@ nav {
}
}
+ &.-no-sticky-headers {
+ .column {
+ .panel-heading.-sticky {
+ position: relative;
+ top: 0;
+ }
+ }
+ }
+
.column-inner {
display: grid;
grid-template-columns: 100%;
@@ -186,10 +209,6 @@ nav {
#content,
.column.-scrollable {
- &::-webkit-scrollbar {
- display: block;
- width: 0;
- }
}
.text-center {