Skip to content

Commit ef08d27

Browse files
committed
chore: fix sidebar.scss linut
1 parent 7ddfcb3 commit ef08d27

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

_sass/layout/_sidebar.scss

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ $sidebar-display: 'sidebar-display';
3333

3434
@include bp.lt(bp.get(lg)) {
3535
@include mx.slide;
36+
3637
transform: translateX(-#{v.$sidebar-width});
3738
-webkit-transform: translateX(-#{v.$sidebar-width});
38-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
39+
box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
3940

4041
/* Toggle sidebar visibility on mobile when sidebar-display attribute is present */
4142
[#{$sidebar-display}] & {
@@ -84,6 +85,7 @@ $sidebar-display: 'sidebar-display';
8485
.profile-wrapper {
8586
@include mx.mt-mb(2.5rem);
8687
@extend %clickable-transition;
88+
8789
padding-left: 2.5rem;
8890
padding-right: 1.25rem;
8991
width: 100%;
@@ -102,6 +104,7 @@ $sidebar-display: 'sidebar-display';
102104
.site-title {
103105
@extend %clickable-transition;
104106
@extend %sidebar-link-hover;
107+
105108
font-family: inherit;
106109
font-weight: 900;
107110
font-size: 1.75rem;
@@ -152,6 +155,7 @@ $sidebar-display: 'sidebar-display';
152155

153156
a.nav-link {
154157
@include mx.pt-pb(0.6rem);
158+
155159
display: flex;
156160
align-items: center;
157161
border-radius: 12px;
@@ -171,15 +175,15 @@ $sidebar-display: 'sidebar-display';
171175
background: linear-gradient(
172176
90deg,
173177
transparent 0%,
174-
rgba(255, 255, 255, 0.05) 50%,
178+
rgb(255 255 255 / 5%) 50%,
175179
transparent 100%
176180
);
177181
transition: left 0.5s ease;
178182
}
179183

180184
&:hover {
181185
background-color: var(--sidebar-hover-bg);
182-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
186+
box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
183187

184188
&::before {
185189
left: 100%;
@@ -206,7 +210,7 @@ $sidebar-display: 'sidebar-display';
206210
color: var(--sidebar-active-color);
207211
background-color: var(--sidebar-hover-bg);
208212
box-shadow:
209-
0 4px 12px rgba(0, 0, 0, 0.1),
213+
0 4px 12px rgb(0 0 0 / 10%),
210214
inset 3px 0 0 var(--sidebar-active-color);
211215

212216
i {
@@ -257,7 +261,7 @@ $sidebar-display: 'sidebar-display';
257261
&:not(:focus-visible) {
258262
box-shadow:
259263
var(--sidebar-border-color) 0 0 0 1px,
260-
0 2px 8px rgba(0, 0, 0, 0.1);
264+
0 2px 8px rgb(0 0 0 / 10%);
261265
}
262266

263267
// Ripple effect
@@ -269,7 +273,7 @@ $sidebar-display: 'sidebar-display';
269273
width: 0;
270274
height: 0;
271275
border-radius: 50%;
272-
background: rgba(255, 255, 255, 0.2);
276+
background: rgb(255 255 255 / 20%);
273277
transition: all 0.3s ease;
274278
transform: translate(-50%, -50%);
275279
}
@@ -278,8 +282,8 @@ $sidebar-display: 'sidebar-display';
278282
background-color: var(--sidebar-hover-bg);
279283
transform: translateY(-2px) scale(1.05);
280284
box-shadow:
281-
0 8px 25px rgba(0, 0, 0, 0.15),
282-
0 4px 10px rgba(0, 0, 0, 0.1);
285+
0 8px 25px rgb(0 0 0 / 15%),
286+
0 4px 10px rgb(0 0 0 / 10%);
283287

284288
&::before {
285289
width: 100%;
@@ -328,6 +332,7 @@ $sidebar-display: 'sidebar-display';
328332
.icon-border {
329333
@extend %no-cursor;
330334
@include mx.ml-mr(calc((v.$sb-btn-gap - $btn-border-width) / 2));
335+
331336
background-color: var(--sidebar-btn-color);
332337
content: '';
333338
width: $btn-border-width;

0 commit comments

Comments
 (0)