summaryrefslogtreecommitdiff
path: root/src/components/rules/Rules.module.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/rules/Rules.module.scss')
-rw-r--r--src/components/rules/Rules.module.scss127
1 files changed, 60 insertions, 67 deletions
diff --git a/src/components/rules/Rules.module.scss b/src/components/rules/Rules.module.scss
index f764d09..701fe14 100644
--- a/src/components/rules/Rules.module.scss
+++ b/src/components/rules/Rules.module.scss
@@ -1,97 +1,90 @@
-@use '~/styles/utils/custom-media' as *;
-
-.container {
+.page {
display: flex;
flex-direction: column;
height: 100%;
+ min-height: 0;
}
-.filterWrapper {
- width: 100%;
- max-width: 300px;
+.listArea {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ min-height: 0;
+ margin: 12px 32px 24px;
+
+ @media (max-width: 1024px) {
+ margin: 12px 16px 16px;
+ }
@media (max-width: 768px) {
- order: 3;
- flex: 1 1 100%;
- max-width: none;
- margin-top: 8px;
+ margin: 8px 12px 10px;
}
}
-.listWrapper {
- margin: 10px 45px 20px;
- background-color: var(--bg-log-info-card);
- border-radius: 12px;
+// 与连接页表格同一张卡:窄屏下退掉卡片边界,直接铺在页面底色上
+.card {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ min-height: 0;
+ border-radius: 16px;
+ background: var(--color-card);
+ border: 1px solid var(--color-card-border);
box-shadow: var(--shadow-card);
- border: 1px solid var(--color-separator);
overflow: hidden;
@media (max-width: 768px) {
- margin: 10px 15px 15px;
+ background: transparent;
+ border: none;
+ box-shadow: none;
+ border-radius: 0;
}
}
-.RuleProviderItemWrapper {
- border-bottom: 1px solid var(--color-separator);
+.listWrap {
+ flex: 1;
+ min-height: 0;
+ min-width: 0;
}
-.tabsContainer {
- display: flex;
- align-items: center;
- background-color: var(--color-bg-sidebar);
- border-radius: 12px;
- padding: 4px;
-
- @media (max-width: 768px) {
- order: 1;
- flex: 1 1 100%;
- width: 100%;
- }
+.row {
+ border-bottom: 1px solid var(--color-card-border);
}
-.tab {
+/* ---------- 空态 ---------- */
+
+.empty {
display: flex;
+ flex-direction: column;
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;
- min-width: 0;
- white-space: nowrap;
- }
+ justify-content: center;
+ gap: 6px;
+ height: 100%;
+}
- &:hover {
- color: var(--color-focus-blue);
- background: rgba(176, 206, 255, 0.221);
- }
+.emptyTitle {
+ font-size: 0.88rem;
+ color: var(--color-text);
+}
- &.active {
- background-color: var(--color-focus-blue);
- color: #fff;
- }
+.emptyHint {
+ font-size: 0.78rem;
+ color: var(--color-text-secondary);
}
-.tabCount {
- font-family: var(--font-normal);
- font-size: 0.7em;
- margin-left: 6px;
- padding: 2px 8px;
- display: inline-flex;
- justify-content: center;
+/* ---------- 页脚 ---------- */
+
+.footer {
+ display: flex;
align-items: center;
- background-color: rgba(255, 255, 255, 0.15);
- border-radius: 10px;
- font-weight: 600;
- min-width: 20px;
+ gap: 14px;
+ height: 36px;
flex-shrink: 0;
+ padding: 0 18px;
+ border-top: 1px solid var(--color-card-border);
+ background: var(--color-track);
+ font-size: 0.72rem;
+ color: var(--color-text-secondary);
+ white-space: nowrap;
+ overflow: hidden;
}