Skip to content

Commit 9314c32

Browse files
AlexVlasoDruxight
andauthored
th-171: Scroll Bar styling (#182)
* th-171: + scrollBar styles * th-171: * scroll bar styles renamed * th-171: * scroll bar styles added vars --------- Co-authored-by: Stanislav Malyshevskyi <[email protected]>
1 parent 121922f commit 9314c32

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Works on Firefox */
2+
html {
3+
scrollbar-color: $scroll-bar-thumb rgba(238 239 242 / 50%);
4+
scrollbar-width: thin;
5+
}
6+
7+
/* Works on Chrome, Edge, and Safari */
8+
body::-webkit-scrollbar {
9+
width: 3px;
10+
background: $scroll-bar;
11+
border-radius: 5px;
12+
opacity: 0.5;
13+
}
14+
15+
body::-webkit-scrollbar-thumb {
16+
background: $scroll-bar-thumb;
17+
border-radius: 5px;
18+
}

frontend/src/assets/css/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
@import "./scaffolding.scss";
44
@import "./typography.scss";
55
@import "./animations.scss";
6+
@import "./scroll-bar.scss";

frontend/src/assets/css/vars.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ $green: #00ca99;
1717
$background-color-grey: #f6f7f9;
1818
$body-background: #f6f7f9;
1919
$header-background: #000955;
20+
$scroll-bar: #e6e8eb;
21+
$scroll-bar-thumb: #3563ad;
2022
$shadow-light: 0 4px 8px -2px rgb(0 85 255 / 16%);
2123
$shadow: 0 2px 4px -2px rgb(0 44 132 / 6%);
2224
$font-family: "Plus Jakarta Sans", sans-serif;

0 commit comments

Comments
 (0)