diff options
| author | Larvan2 <[email protected]> | 2026-01-01 15:52:18 +0800 |
|---|---|---|
| committer | Larvan2 <[email protected]> | 2026-01-01 15:52:18 +0800 |
| commit | a547b3c8dc48791c4f767da0314d907eba543cc1 (patch) | |
| tree | 70a0d500147dcb972574e9a9641da956e033a963 /src/components/Rules.module.scss | |
| parent | 6768024fc9460f7f5a459de32de4cf771c75e19c (diff) | |
chore: adjust style
Diffstat (limited to 'src/components/Rules.module.scss')
| -rw-r--r-- | src/components/Rules.module.scss | 95 |
1 files changed, 70 insertions, 25 deletions
diff --git a/src/components/Rules.module.scss b/src/components/Rules.module.scss index ee49394..48eb8a0 100644 --- a/src/components/Rules.module.scss +++ b/src/components/Rules.module.scss @@ -6,40 +6,85 @@ height: 100%; } -.header { - display: flex; - justify-content: space-between; - align-items: center; - padding: 16px 20px; - margin-bottom: 8px; - flex-shrink: 0; +.filterWrapper { + width: 100%; + max-width: 300px; - @media (--breakpoint-not-small) { - padding: 12px 40px; + @media (max-width: 768px) { + max-width: none; + margin-top: 8px; } } -.title { - margin: 0; - font-size: 1.5rem; - font-weight: 700; - color: var(--color-text); - white-space: nowrap; +.listWrapper { + margin: 0 45px 20px; + border-radius: 12px; + box-shadow: var(--shadow-card); + border: 1px solid var(--color-separator); + overflow: hidden; - @media (--breakpoint-not-small) { - font-size: 1.75rem; + @media (max-width: 768px) { + margin: 0 15px 15px; } } -.filterWrapper { - width: 100%; - max-width: 300px; - margin-left: 20px; +.RuleProviderItemWrapper { + border-bottom: 1px solid var(--color-separator); } -.RuleProviderItemWrapper { - padding: 8px 15px; - @media (--breakpoint-not-small) { - padding: 10px 40px; +.tabsContainer { + display: flex; + align-items: center; + background-color: var(--color-bg-sidebar); + border-radius: 12px; + padding: 4px; + + @media (max-width: 768px) { + flex: 1; } } + +.tab { + display: flex; + align-items: center; + padding: 8px 16px; + border-radius: 8px; + cursor: pointer; + font-size: 1em; + font-weight: 500; + color: var(--color-text-secondary); + transition: all 0.2s ease; + user-select: none; + + @media (max-width: 768px) { + padding: 6px 10px; + font-size: 0.85em; + flex: 1; + justify-content: center; + } + + &:hover { + color: var(--color-text-primary); + background: var(--bg-near-transparent); + } + + &.active { + background-color: var(--color-focus-blue); + color: #fff; + box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3); + } +} + +.tabCount { + font-family: var(--font-normal); + font-size: 0.7em; + margin-left: 6px; + padding: 2px 8px; + display: inline-flex; + justify-content: center; + align-items: center; + background-color: rgba(255, 255, 255, 0.15); + border-radius: 10px; + font-weight: 600; + min-width: 20px; +} |
