/* app/styles/pages/rule-groups_index.css */ /* 使用命名空间限制样式作用范围,避免覆盖全局样式 */ .rule-groups-page a.badge.bg-primary.text-white { color: white; text-decoration: none; transition: color 0.2s; } .rule-groups-page a.badge.bg-primary.text-white:hover { color: white; opacity: 0.9; text-decoration: underline; } /* 修改分组名称链接颜色为绿色 */ .rule-groups-page .tree-table a.text-primary { color: #00684a; text-decoration: none; } .rule-groups-page .tree-table a.text-primary:hover { text-decoration: underline; color: #005a3f; } /* 分组名称链接样式 */ .rule-groups-page .group-name-link { color: #00684a; text-decoration: none; transition: all 0.2s; } .rule-groups-page .group-name-link:hover { text-decoration: underline; color: #005a3f; } /* 展开/收起图标颜色 */ .rule-groups-page .expand-icon i { color: #00684a; } /* 树形结构样式 */ .rule-groups-page .tree-table .group-row { transition: all 0.2s; font-weight: 400; /* 减少文字粗细度 */ } .rule-groups-page .tree-table .group-row:hover { background-color: rgba(0, 104, 74, 0.05); } .rule-groups-page .tree-table .parent-row { background-color: #f9f9f9; font-weight: 400; /* 减少文字粗细度 */ } .rule-groups-page .tree-table .child-row { border-left: 3px solid #f0f0f0; } .rule-groups-page .expand-icon { width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; } .rule-groups-page .expand-icon:hover { background-color: rgba(0, 104, 74, 0.1); } .rule-groups-page .group-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; font-size: 12px; margin-left: 8px; } .rule-groups-page .parent-badge { background-color: rgba(0, 104, 74, 0.1); color: var(--color-primary); } .rule-groups-page .child-badge { background-color: rgba(0, 104, 74, 0.05); color: var(--color-primary); } /* 状态点样式 */ .rule-groups-page .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; } .rule-groups-page .status-success { background-color: #52c41a; } .rule-groups-page .status-error { background-color: #f5222d; } /* 表单样式 */ .rule-groups-page .form-label { display: block; margin-bottom: 8px; color: #495057; font-size: 14px; } .rule-groups-page .form-input, .rule-groups-page .form-select { width: 100%; height: 38px; padding: 8px 12px; border: 1px solid #dee2e6; border-radius: 4px; font-size: 14px; transition: all 0.2s; } .rule-groups-page .form-input:focus, .rule-groups-page .form-select:focus { border-color: #00684a; box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.2); outline: none; } /* 卡片样式 */ .rule-groups-page .ant-card { background-color: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e9ecef; } .rule-groups-page .ant-card-body { padding: 16px; } /* 表格样式 */ .rule-groups-page .ant-table { width: 100%; border-collapse: collapse; } .rule-groups-page .ant-table th, .rule-groups-page .ant-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e9ecef; } .rule-groups-page .ant-table th { background-color: #f8f9fa; font-weight: 400; /* 减少文字粗细度 */ color: #495057; font-size: 14px; } /* 分页样式 */ .rule-groups-page .ant-pagination { display: flex; align-items: center; gap: 8px; } .rule-groups-page .ant-pagination-item { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #dee2e6; border-radius: 4px; background-color: white; cursor: pointer; transition: all 0.2s; } .rule-groups-page .ant-pagination-item:hover { border-color: #00684a; color: #00684a; } .rule-groups-page .ant-pagination-item-active { background-color: #00684a; border-color: #00684a; color: white; } .rule-groups-page .ant-pagination-prev, .rule-groups-page .ant-pagination-next { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #dee2e6; border-radius: 4px; background-color: white; cursor: pointer; transition: all 0.2s; } .rule-groups-page .ant-pagination-prev:disabled, .rule-groups-page .ant-pagination-next:disabled { opacity: 0.5; cursor: not-allowed; } /* 特定链接样式 */ .rule-groups-page .badge { display: inline-flex; align-items: center; justify-content: center; padding: 0.25rem 0.5rem; border-radius: 0.75rem; font-size: 0.75rem; font-weight: 400; /* 减少文字粗细度 */ } /* 添加badge链接的特殊悬停样式 */ .rule-groups-page a.badge.bg-primary.text-white:hover { color: white; opacity: 0.9; } /* 仅在rule-groups页面内生效的样式 */ .rule-groups-page .bg-primary { background-color: #00684a; } .rule-groups-page .text-white { color: white; } .rule-groups-page .text-secondary { color: #6c757d; } .rule-groups-page .text-error { color: #f5222d; } /* 行操作按钮 */ .rule-groups-page .ant-btn-text { background: transparent; margin: 10px; border: none; padding: 4px 0; cursor: pointer; transition: color 0.2s; } .rule-groups-page .ant-btn-text.text-primary { color: #00684a; } .rule-groups-page .ant-btn-text.text-primary:hover { color: #005a3f; } .rule-groups-page .ant-btn-text.text-error { color: #f5222d; } .rule-groups-page .ant-btn-text.text-error:hover { color: #cf1f29; } /* 响应式调整 */ @media (max-width: 768px) { .rule-groups-page .flex-wrap { flex-direction: column; } .rule-groups-page .flex-1 { width: 100%; } .rule-groups-page .ant-table { font-size: 14px; } } /* 搜索框样式 */ .rule-groups-page .search-box { display: flex; align-items: center; } .rule-groups-page .search-box .form-input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; } .rule-groups-page .search-box .ant-btn { border-top-left-radius: 0; border-bottom-left-radius: 0; } /* 无按钮搜索框样式 */ .rule-groups-page .search-box.form-input-only .form-input { border-radius: 0.25rem; width: 100%; }