Skip to content

Commit b9f2a5e

Browse files
committed
fix
1 parent 92c1db9 commit b9f2a5e

File tree

1 file changed

+20
-60
lines changed

1 file changed

+20
-60
lines changed

src/components/settingsPage.scss

Lines changed: 20 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
wc-page.main-settings-page {
2-
background: var(--secondary-color);
3-
4-
.main-settings-list {
1+
@mixin settings-page-shell($list-selector) {
2+
#{$list-selector} {
53
display: flex;
64
flex-direction: column;
75
gap: 1.2rem;
@@ -42,6 +40,21 @@ wc-page.main-settings-page {
4240
overflow: hidden;
4341
box-sizing: border-box;
4442
}
43+
}
44+
45+
@mixin settings-icon-reset {
46+
.icon {
47+
&:active,
48+
&.active {
49+
transform: none;
50+
background-color: transparent !important;
51+
}
52+
}
53+
}
54+
55+
wc-page.main-settings-page {
56+
background: var(--secondary-color);
57+
@include settings-page-shell(".main-settings-list");
4558

4659
.main-settings-list > .list-item,
4760
.settings-section-card > .list-item {
@@ -372,59 +385,12 @@ wc-page.main-settings-page {
372385
}
373386
}
374387

375-
.icon {
376-
&:active,
377-
&.active {
378-
transform: none;
379-
background-color: transparent !important;
380-
}
381-
}
388+
@include settings-icon-reset;
382389
}
383390

384391
wc-page.detail-settings-page {
385392
background: var(--secondary-color);
386-
387-
.detail-settings-list {
388-
display: flex;
389-
flex-direction: column;
390-
gap: 1.2rem;
391-
width: 100%;
392-
max-width: 48rem;
393-
margin: 0 auto;
394-
padding: 0.5rem 0 5.5rem;
395-
box-sizing: border-box;
396-
background: var(--secondary-color);
397-
}
398-
399-
.settings-section {
400-
display: flex;
401-
flex-direction: column;
402-
gap: 0;
403-
width: 100%;
404-
}
405-
406-
.settings-search-summary {
407-
padding: 0.2rem 1rem;
408-
font-size: 0.84rem;
409-
font-weight: 600;
410-
line-height: 1.35;
411-
color: var(--secondary-text-color);
412-
color: color-mix(in srgb, var(--secondary-text-color), transparent 18%);
413-
}
414-
415-
.settings-section-label {
416-
padding: 0.5rem 1rem 0.45rem;
417-
font-size: 0.84rem;
418-
font-weight: 600;
419-
line-height: 1.3;
420-
color: color-mix(in srgb, var(--active-color), transparent 18%);
421-
}
422-
423-
.settings-section-card {
424-
width: 100%;
425-
overflow: hidden;
426-
box-sizing: border-box;
427-
}
393+
@include settings-page-shell(".detail-settings-list");
428394

429395
.detail-settings-list > .list-item,
430396
.settings-section-card > .list-item {
@@ -794,13 +760,7 @@ wc-page.detail-settings-page {
794760
);
795761
}
796762

797-
.icon {
798-
&:active,
799-
&.active {
800-
transform: none;
801-
background-color: transparent !important;
802-
}
803-
}
763+
@include settings-icon-reset;
804764
}
805765

806766
wc-page.detail-settings-page.formatter-settings-page {

0 commit comments

Comments
 (0)