aboutsummaryrefslogtreecommitdiff
path: root/src/App.scss
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-04-08 10:17:23 +0300
committerHenry Jameson <me@hjkos.com>2022-04-08 10:17:23 +0300
commit6109fab14e4dac3a85ffa51ddfcd7e3aaef5149a (patch)
treee31a9539981075cfe9913f64d902ef43db23edda /src/App.scss
parentc71cf72eea0fe8cd8d5af2cd9b5922cce5884cab (diff)
cleanup, fix some things, try to disable scrollbars on mobile
Diffstat (limited to 'src/App.scss')
-rw-r--r--src/App.scss28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/App.scss b/src/App.scss
index dd3d8cbb..0deac2b1 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -116,7 +116,7 @@ nav {
#content {
overscroll-behavior-y: none;
- overflow-y: auto;
+ overflow-y: scroll;
overflow-x: hidden;
position: sticky;
}
@@ -198,19 +198,23 @@ nav {
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;
+ // Only show custom scrollbars on devices which
+ // have a cursor/pointer to operate them
+ @media (pointer: fine) {
+ &:not(.-show-scrollbar) {
+ scrollbar-width: none;
+ margin-right: -2em;
+ padding-right: 2.5em;
+
+ &::-webkit-scrollbar {
+ display: block;
+ width: 0;
+ }
}
- }
- .panel-heading.-sticky {
- top: -10px;
+ .panel-heading.-sticky {
+ top: -10px;
+ }
}
}
}