Skip to content

Commit 69805da

Browse files
committed
chore: fix new design test
1 parent 57a9ddb commit 69805da

File tree

2 files changed

+43
-35
lines changed

2 files changed

+43
-35
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
[#{$sidebar-display}] & {
4142
transform: translateX(0);
@@ -83,6 +84,7 @@ $sidebar-display: 'sidebar-display';
8384
.profile-wrapper {
8485
@include mx.mt-mb(2.5rem);
8586
@extend %clickable-transition;
87+
8688
padding-left: 2.5rem;
8789
padding-right: 1.25rem;
8890
width: 100%;
@@ -101,6 +103,7 @@ $sidebar-display: 'sidebar-display';
101103
.site-title {
102104
@extend %clickable-transition;
103105
@extend %sidebar-link-hover;
106+
104107
font-family: inherit;
105108
font-weight: 900;
106109
font-size: 1.75rem;
@@ -151,6 +154,7 @@ $sidebar-display: 'sidebar-display';
151154

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

179183
&:hover {
180184
background-color: var(--sidebar-hover-bg);
181-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
185+
box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
182186

183187
&::before {
184188
left: 100%;
@@ -205,7 +209,7 @@ $sidebar-display: 'sidebar-display';
205209
color: var(--sidebar-active-color);
206210
background-color: var(--sidebar-hover-bg);
207211
box-shadow:
208-
0 4px 12px rgba(0, 0, 0, 0.1),
212+
0 4px 12px rgb(0 0 0 / 10%),
209213
inset 3px 0 0 var(--sidebar-active-color);
210214

211215
i {
@@ -256,7 +260,7 @@ $sidebar-display: 'sidebar-display';
256260
&:not(:focus-visible) {
257261
box-shadow:
258262
var(--sidebar-border-color) 0 0 0 1px,
259-
0 2px 8px rgba(0, 0, 0, 0.1);
263+
0 2px 8px rgb(0 0 0 / 10%);
260264
}
261265

262266
// Ripple effect
@@ -268,7 +272,7 @@ $sidebar-display: 'sidebar-display';
268272
width: 0;
269273
height: 0;
270274
border-radius: 50%;
271-
background: rgba(255, 255, 255, 0.2);
275+
background: rgb(255 255 255 / 20%);
272276
transition: all 0.3s ease;
273277
transform: translate(-50%, -50%);
274278
}
@@ -277,8 +281,8 @@ $sidebar-display: 'sidebar-display';
277281
background-color: var(--sidebar-hover-bg);
278282
transform: translateY(-2px) scale(1.05);
279283
box-shadow:
280-
0 8px 25px rgba(0, 0, 0, 0.15),
281-
0 4px 10px rgba(0, 0, 0, 0.1);
284+
0 8px 25px rgb(0 0 0 / 15%),
285+
0 4px 10px rgb(0 0 0 / 10%);
282286

283287
&::before {
284288
width: 100%;
@@ -327,6 +331,7 @@ $sidebar-display: 'sidebar-display';
327331
.icon-border {
328332
@extend %no-cursor;
329333
@include mx.ml-mr(calc((v.$sb-btn-gap - $btn-border-width) / 2));
334+
330335
background-color: var(--sidebar-btn-color);
331336
content: '';
332337
width: $btn-border-width;

_sass/pages/_home.scss

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
.card {
2222
box-shadow:
23-
0 25px 50px -12px rgba(0, 0, 0, 0.08),
24-
0 8px 16px -8px rgba(0, 0, 0, 0.06),
25-
0 0 0 1px rgba(255, 255, 255, 0.05);
23+
0 25px 50px -12px rgb(0 0 0 / 8%),
24+
0 8px 16px -8px rgb(0 0 0 / 6%),
25+
0 0 0 1px rgb(255 255 255 / 5%);
2626
}
2727

2828
.preview-img img {
@@ -44,12 +44,11 @@
4444
}
4545

4646
.card {
47-
border: 0;
4847
background: var(--card-bg);
4948
border-radius: v.$radius-lg;
5049
backdrop-filter: blur(20px) saturate(180%);
5150
-webkit-backdrop-filter: blur(20px) saturate(180%);
52-
border: 1px solid rgba(255, 255, 255, 0.08);
51+
border: 1px solid rgb(255 255 255 / 8%);
5352
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
5453
overflow: hidden;
5554
position: relative;
@@ -64,7 +63,7 @@
6463
height: 1px;
6564
background: linear-gradient(90deg,
6665
transparent 0%,
67-
rgba(255, 255, 255, 0.1) 50%,
66+
rgb(255 255 255 / 10%) 50%,
6867
transparent 100%);
6968
z-index: 1;
7069
}
@@ -79,11 +78,13 @@
7978

8079
.preview-img {
8180
@extend %img-radius;
81+
8282
overflow: hidden;
8383
position: relative;
8484

8585
img {
8686
@extend %img-radius;
87+
8788
transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
8889
will-change: transform;
8990
}
@@ -92,14 +93,11 @@
9293
&::after {
9394
content: '';
9495
position: absolute;
95-
top: 0;
96-
left: 0;
97-
right: 0;
98-
bottom: 0;
96+
inset: 0 0 0 0;
9997
background: linear-gradient(
10098
180deg,
101-
rgba(0, 0, 0, 0) 0%,
102-
rgba(0, 0, 0, 0.02) 100%
99+
rgb(0 0 0 / 0%) 0%,
100+
rgb(0 0 0 / 2%) 100%
103101
);
104102
pointer-events: none;
105103
}
@@ -117,6 +115,7 @@
117115

118116
.card-title {
119117
@extend %text-clip;
118+
120119
color: var(--heading-color) !important;
121120
font-size: 1.375rem;
122121
font-weight: 600;
@@ -142,10 +141,12 @@
142141

143142
&.content {
144143
@extend %muted;
144+
145145
margin-bottom: 1.25rem;
146146

147147
p {
148148
@extend %text-clip;
149+
149150
line-height: 1.6;
150151
margin: 0;
151152
font-size: 0.95rem;
@@ -156,6 +157,7 @@
156157

157158
.post-meta {
158159
@extend %muted;
160+
159161
font-size: 0.875rem;
160162
font-weight: 500;
161163
display: flex;
@@ -206,6 +208,7 @@
206208

207209
em {
208210
@extend %normal-font-style;
211+
209212
color: inherit;
210213
font-weight: 500;
211214
}
@@ -252,11 +255,10 @@
252255
align-items: center;
253256
justify-content: center;
254257
border-radius: 12px;
255-
border: 0;
256258
background-color: var(--card-bg);
257259
backdrop-filter: blur(20px) saturate(180%);
258260
-webkit-backdrop-filter: blur(20px) saturate(180%);
259-
border: 1px solid rgba(255, 255, 255, 0.06);
261+
border: 1px solid rgb(255 255 255 / 6%);
260262
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
261263
font-weight: 500;
262264
position: relative;
@@ -273,7 +275,7 @@
273275
background: linear-gradient(
274276
90deg,
275277
transparent 0%,
276-
rgba(255, 255, 255, 0.1) 50%,
278+
rgb(255 255 255 / 10%) 50%,
277279
transparent 100%
278280
);
279281
transition: left 0.5s ease;
@@ -289,13 +291,13 @@
289291
background: linear-gradient(
290292
135deg,
291293
var(--link-color) 0%,
292-
color-mix(in srgb, var(--link-color) 80%, #000) 100%
294+
color-mix(in srgb, var(--link-color) 80%, #000000) 100%
293295
);
294296
color: white;
295297
border-color: var(--link-color);
296298
box-shadow:
297-
0 4px 12px rgba(var(--link-color-rgb), 0.3),
298-
0 2px 4px rgba(0, 0, 0, 0.1);
299+
0 4px 12px rgb(var(--link-color-rgb), 0.3),
300+
0 2px 4px rgb(0 0 0 / 10%);
299301
transform: translateY(-1px);
300302
}
301303
}
@@ -304,11 +306,11 @@
304306
.page-link {
305307
&:hover {
306308
background-color: var(--btn-paginator-hover-color);
307-
border-color: rgba(255, 255, 255, 0.12);
309+
border-color: rgb(255 255 255 / 12%);
308310
transform: translateY(-2px);
309311
box-shadow:
310-
0 8px 25px rgba(0, 0, 0, 0.1),
311-
0 4px 10px rgba(0, 0, 0, 0.06);
312+
0 8px 25px rgb(0 0 0 / 10%),
313+
0 4px 10px rgb(0 0 0 / 6%);
312314
}
313315
}
314316
}
@@ -334,7 +336,7 @@
334336
padding: 0.75rem 1.5rem;
335337
background: var(--card-bg);
336338
border-radius: 12px;
337-
border: 1px solid rgba(255, 255, 255, 0.06);
339+
border: 1px solid rgb(255 255 255 / 6%);
338340
backdrop-filter: blur(20px) saturate(180%);
339341
-webkit-backdrop-filter: blur(20px) saturate(180%);
340342

@@ -355,21 +357,22 @@
355357

356358
@keyframes subtle-pulse {
357359
0%, 100% {
358-
box-shadow: 0 0 0 0 rgba(var(--link-color-rgb), 0);
360+
box-shadow: 0 0 0 0 rgb(var(--link-color-rgb), 0);
359361
}
362+
360363
50% {
361-
box-shadow: 0 0 0 4px rgba(var(--link-color-rgb), 0.1);
364+
box-shadow: 0 0 0 4px rgb(var(--link-color-rgb), 0.1);
362365
}
363366
}
364367

365368
// Dark mode specific enhancements
366369
@media (prefers-color-scheme: dark) {
367370
#post-list .card {
368-
background: rgba(28, 28, 30, 0.8);
369-
border-color: rgba(255, 255, 255, 0.06);
371+
background: rgb(28 28 30 / 80%);
372+
border-color: rgb(255 255 255 / 6%);
370373
}
371374

372375
.pagination .page-link {
373-
background: rgba(28, 28, 30, 0.8);
376+
background: rgb(28 28 30 / 80%);
374377
}
375378
}

0 commit comments

Comments
 (0)