Skip to content

Commit 186e3f4

Browse files
committed
Remove scrollbar style on sidebar
1 parent bb1eebb commit 186e3f4

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

src/styles/components/_page.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// page
22
.cr-page {
3+
min-height: 100vh;
34
&__header {
45
@include media-breakpoint-down(sm) {
56
flex-direction: column;
@@ -14,7 +15,7 @@
1415
@include media-breakpoint-down(sm) {
1516
margin-bottom: 0;
1617
}
17-
padding-right: .5rem;
18+
padding-right: 0.5rem;
1819
margin-bottom: 1rem;
1920
}
2021

@@ -25,12 +26,13 @@
2526
align-self: flex-end;
2627
padding: 0;
2728
text-transform: capitalize;
28-
background: theme-color("light");
29+
background: theme-color('light');
2930
}
3031

3132
.row {
3233
// stylelint-disable-next-line
33-
.col, > [class^="col-"] {
34+
.col,
35+
> [class^='col-'] {
3436
margin-bottom: 1rem;
3537
}
3638
}

src/styles/components/_sidebar.scss

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
color: #fff;
1414
background-position: center center;
1515
background-size: cover;
16-
transition: left .1s ease-in;
16+
transition: left 0.1s ease-in;
1717

1818
+ .cr-content {
19-
transition: margin .1s ease-in;
19+
transition: margin 0.1s ease-in;
2020
}
2121

2222
&::after,
@@ -28,12 +28,12 @@
2828
display: block;
2929
width: 100%;
3030
height: 100%;
31-
content: "";
31+
content: '';
3232
}
3333

3434
&::before {
3535
background: #000;
36-
opacity: .33;
36+
opacity: 0.33;
3737
}
3838

3939
&::after {
@@ -45,15 +45,22 @@
4545
}
4646

4747
&[data-image]:after {
48-
opacity: .77;
48+
opacity: 0.77;
4949
}
5050

5151
&__content {
5252
position: relative;
5353
z-index: 4;
5454
height: calc(100vh - 20px);
5555
padding-bottom: 30px;
56-
overflow: auto;
56+
overflow-x: hidden;
57+
overflow-y: auto;
58+
scrollbar-width: none;
59+
-ms-overflow-style: none;
60+
61+
&::-webkit-scrollbar {
62+
width: 0;
63+
}
5764
}
5865

5966
&__background {
@@ -81,16 +88,16 @@
8188
// }
8289
width: 1.5rem;
8390
height: 1.5rem;
84-
padding-right: .5rem;
91+
padding-right: 0.5rem;
8592
}
8693

8794
&--open {
8895
left: 0;
89-
transition: left .2s ease-in;
96+
transition: left 0.2s ease-in;
9097

9198
+ .cr-content {
9299
margin: 0 0 0 $cr-sidebar-width;
93-
transition: margin .2s ease-in;
100+
transition: margin 0.2s ease-in;
94101
}
95102
}
96103

@@ -101,7 +108,7 @@
101108
margin: 5px 10px;
102109
color: theme-color(light);
103110
border-radius: 4px;
104-
opacity: .86;
111+
opacity: 0.86;
105112
}
106113

107114
.nav-link {
@@ -111,7 +118,7 @@
111118
color: theme-color(light);
112119

113120
&:hover {
114-
background: rgba(theme-color(light), .15);
121+
background: rgba(theme-color(light), 0.15);
115122
}
116123
}
117124
}

0 commit comments

Comments
 (0)