Skip to content

Commit

Permalink
More sensitive scroll-bar behavior.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <[email protected]>
  • Loading branch information
thallgren committed Sep 3, 2024
1 parent 2b2e760 commit 9ca9934
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/components/Layout/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
@import './vars.less';
// @import './interFont.css';

::-webkit-scrollbar {
-webkit-appearance: none;
width: 9px;
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: rgba(0, 0, 0, .5);
}

/* source-sans-pro-300 - latin */
@font-face {
font-family: 'Source Sans Pro';
Expand Down
5 changes: 4 additions & 1 deletion src/templates/doc-page.less
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
.docs {
display: grid;
grid-template-columns: 300px auto;
grid-template-rows: auto min-content;
grid-template-rows: auto;
&__sidebar {
grid-column: 1;
grid-row-start: 1;
grid-row-end: 3;
}
&__main {
height: 85dvh;
overflow-y: auto;
grid-column: 2;
grid-row: 1;
}
&__footer {
grid-column: 2;
grid-row: 2;
padding: 0 10px 0px 10px;
}
}

0 comments on commit 9ca9934

Please sign in to comment.