|
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} { |
5 | 3 | display: flex; |
6 | 4 | flex-direction: column; |
7 | 5 | gap: 1.2rem; |
@@ -42,6 +40,21 @@ wc-page.main-settings-page { |
42 | 40 | overflow: hidden; |
43 | 41 | box-sizing: border-box; |
44 | 42 | } |
| 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"); |
45 | 58 |
|
46 | 59 | .main-settings-list > .list-item, |
47 | 60 | .settings-section-card > .list-item { |
@@ -372,59 +385,12 @@ wc-page.main-settings-page { |
372 | 385 | } |
373 | 386 | } |
374 | 387 |
|
375 | | - .icon { |
376 | | - &:active, |
377 | | - &.active { |
378 | | - transform: none; |
379 | | - background-color: transparent !important; |
380 | | - } |
381 | | - } |
| 388 | + @include settings-icon-reset; |
382 | 389 | } |
383 | 390 |
|
384 | 391 | wc-page.detail-settings-page { |
385 | 392 | 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"); |
428 | 394 |
|
429 | 395 | .detail-settings-list > .list-item, |
430 | 396 | .settings-section-card > .list-item { |
@@ -794,13 +760,7 @@ wc-page.detail-settings-page { |
794 | 760 | ); |
795 | 761 | } |
796 | 762 |
|
797 | | - .icon { |
798 | | - &:active, |
799 | | - &.active { |
800 | | - transform: none; |
801 | | - background-color: transparent !important; |
802 | | - } |
803 | | - } |
| 763 | + @include settings-icon-reset; |
804 | 764 | } |
805 | 765 |
|
806 | 766 | wc-page.detail-settings-page.formatter-settings-page { |
|
0 commit comments