File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ const App = () => (
15
15
< Typography />
16
16
< StatusCards />
17
17
< div className = "o-site-wrap o-site-wrap--padding" >
18
+ < div className = "c-scroll" style = { { maxHeight : '100px' } } >
19
+ < div style = { { padding : '100px 0' } } >
20
+ Hello World
21
+ </ div >
22
+ </ div >
18
23
< Tooltip direction = "north" />
19
24
< Tooltip direction = "south" />
20
25
< Tooltip direction = "west" />
Original file line number Diff line number Diff line change 14
14
@import ' ./components/pagination' ;
15
15
@import ' ./components/pills' ;
16
16
@import ' ./components/progress-bar' ;
17
+ @import ' ./components/scroll' ;
17
18
@import ' ./components/search' ;
18
19
@import ' ./components/select' ;
19
20
@import ' ./components/table' ;
Original file line number Diff line number Diff line change
1
+ @if $nb-use-scroll {
2
+ .#{$nb-namespace } c-scroll {
3
+ overflow : auto ;
4
+
5
+ & ::-webkit-scrollbar {
6
+ width : 8px ;
7
+ }
8
+
9
+ & ::-webkit-scrollbar-track {
10
+ background : $nb-color-white ;
11
+ border : 1px solid $nb-color-grey-light ;
12
+ }
13
+
14
+ & ::-webkit-scrollbar-thumb {
15
+ background-color : $nb-color-grey ;
16
+ }
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ $nb-use-modal: true !default;
11
11
$nb-use-pagination : true !default ;
12
12
$nb-use-pills : true !default ;
13
13
$nb-use-progress-bar : true !default ;
14
+ $nb-use-scroll : true !default ;
14
15
$nb-use-select : true !default ;
15
16
$nb-use-status-card : true !default ;
16
17
$nb-use-table : true !default ;
You can’t perform that action at this time.
0 commit comments