release: v2.0 - 完整功能管理系统
主要功能: - 完整的Flask-Admin后台管理系统 - 网站/标签/新闻管理功能 - 用户登录认证系统 - 科技感/未来风UI设计 - 标签分类系统(取代传统分类) - 详情页面展示 - 数据库迁移脚本 - 书签导入解析工具 技术栈: - Flask + SQLAlchemy - Flask-Admin管理界面 - Bootstrap 4响应式设计 - 用户认证与权限管理 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
97
static/css/admin-actions.css
Normal file
97
static/css/admin-actions.css
Normal file
@@ -0,0 +1,97 @@
|
||||
/* 管理后台操作按钮样式 - 添加中文文字 */
|
||||
|
||||
/* 表格操作列 */
|
||||
td.list-buttons-column,
|
||||
th.list-buttons-column {
|
||||
white-space: nowrap;
|
||||
min-width: 140px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 隐藏所有图标 */
|
||||
td.list-buttons-column a.icon .glyphicon,
|
||||
td.list-buttons-column a.icon .fa,
|
||||
td.list-buttons-column a.icon span.glyphicon,
|
||||
td.list-buttons-column a.icon i,
|
||||
td.list-buttons-column form .glyphicon,
|
||||
td.list-buttons-column form .fa,
|
||||
td.list-buttons-column form span.glyphicon,
|
||||
td.list-buttons-column form i {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 通用操作按钮样式(链接) */
|
||||
td.list-buttons-column a.icon {
|
||||
display: inline-flex !important;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 60px;
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
margin: 0 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
}
|
||||
|
||||
/* 删除表单样式 */
|
||||
td.list-buttons-column form {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 删除表单的提交按钮 */
|
||||
td.list-buttons-column form button,
|
||||
td.list-buttons-column form input[type="submit"] {
|
||||
display: inline-flex !important;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 60px;
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
margin: 0 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
background: #E34D59 !important;
|
||||
color: white !important;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
td.list-buttons-column form button:hover,
|
||||
td.list-buttons-column form input[type="submit"]:hover {
|
||||
background: #C9353F !important;
|
||||
}
|
||||
|
||||
/* 使用::before添加删除文字 */
|
||||
td.list-buttons-column form button::before,
|
||||
td.list-buttons-column form input[type="submit"]::before {
|
||||
content: "删除";
|
||||
}
|
||||
|
||||
/* 编辑按钮 - 通过href匹配 */
|
||||
td.list-buttons-column a[href*="/edit/"] {
|
||||
background: #0052D9 !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
td.list-buttons-column a[href*="/edit/"]:hover {
|
||||
background: #0041A8 !important;
|
||||
}
|
||||
|
||||
td.list-buttons-column a[href*="/edit/"]::after {
|
||||
content: "编辑";
|
||||
}
|
||||
|
||||
/* 查看按钮 - 完全隐藏 */
|
||||
td.list-buttons-column a[href*="/details/"] {
|
||||
display: none !important;
|
||||
}
|
||||
83
static/css/admin-i18n.css
Normal file
83
static/css/admin-i18n.css
Normal file
@@ -0,0 +1,83 @@
|
||||
/* Flask-Admin 界面中文化样式 */
|
||||
|
||||
/* ========== 顶部导航栏中文化 ========== */
|
||||
|
||||
/* List (4) 标签页 - 只针对第一个li */
|
||||
.nav-tabs li:first-child a {
|
||||
font-size: 0 !important;
|
||||
}
|
||||
|
||||
.nav-tabs li:first-child a::after {
|
||||
font-size: 14px;
|
||||
content: "列表";
|
||||
}
|
||||
|
||||
/* 保留数字显示 */
|
||||
.nav-tabs li a .badge {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
/* Create 按钮 - 通过href精确匹配 */
|
||||
.nav.nav-tabs ~ .btn-group a.btn-primary,
|
||||
a.btn.btn-primary[href$="/new/"] {
|
||||
font-size: 0 !important;
|
||||
}
|
||||
|
||||
.nav.nav-tabs ~ .btn-group a.btn-primary::before,
|
||||
a.btn.btn-primary[href$="/new/"]::before {
|
||||
font-size: 14px;
|
||||
content: "创建";
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.nav.nav-tabs ~ .btn-group a.btn-primary .fa,
|
||||
a.btn.btn-primary[href$="/new/"] .fa {
|
||||
font-size: 14px !important;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
/* Add Filter 下拉按钮 */
|
||||
.btn-group .dropdown-toggle {
|
||||
font-size: 0 !important;
|
||||
}
|
||||
|
||||
.btn-group .dropdown-toggle::before {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 根据位置区分不同的dropdown */
|
||||
/* Add Filter - 第一个dropdown */
|
||||
.btn-group:nth-of-type(1) .dropdown-toggle::before {
|
||||
content: "添加筛选";
|
||||
}
|
||||
|
||||
/* With selected - 第二个dropdown (通常在表格上方) */
|
||||
form[id^="action_confirmation"] ~ .btn-group .dropdown-toggle::before,
|
||||
.actions-nav .dropdown-toggle::before {
|
||||
content: "批量操作";
|
||||
}
|
||||
|
||||
/* 保留下拉箭头 */
|
||||
.btn-group .dropdown-toggle .caret {
|
||||
font-size: 0;
|
||||
margin-left: 4px;
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-top: 4px solid currentColor;
|
||||
}
|
||||
|
||||
/* Delete 批量删除选项 */
|
||||
.dropdown-menu li a {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
/* ========== 修正:避免影响其他链接 ========== */
|
||||
/* 重置可能被误伤的元素 */
|
||||
.admin-sidebar a,
|
||||
.nav-item a,
|
||||
table a {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
636
static/css/admin-sidebar.css
Normal file
636
static/css/admin-sidebar.css
Normal file
@@ -0,0 +1,636 @@
|
||||
/* ========== Flask-Admin 左侧菜单布局 - ZJPB焦提示词 ========== */
|
||||
|
||||
/* TDesign 色彩系统 */
|
||||
:root {
|
||||
--td-brand-color: #0052D9;
|
||||
--td-brand-color-hover: #266FE8;
|
||||
--td-brand-color-active: #0034B5;
|
||||
--td-brand-color-light: #ECF2FE;
|
||||
--td-success-color: #00A870;
|
||||
--td-warning-color: #E37318;
|
||||
--td-error-color: #D54941;
|
||||
--td-bg-color-page: #F5F7FA;
|
||||
--td-bg-color-container: #FFFFFF;
|
||||
--td-bg-color-container-hover: #F5F5F5;
|
||||
--td-text-color-primary: #000000;
|
||||
--td-text-color-secondary: #606266;
|
||||
--td-text-color-placeholder: #C0C4CC;
|
||||
--td-border-color: #DCDFE6;
|
||||
--td-border-color-light: #E4E7ED;
|
||||
--td-border-radius: 3px;
|
||||
--td-border-radius-medium: 6px;
|
||||
--td-shadow-1: 0 1px 4px rgba(0, 0, 0, .05);
|
||||
--td-shadow-2: 0 2px 12px rgba(0, 0, 0, .08);
|
||||
--sidebar-width: 240px;
|
||||
}
|
||||
|
||||
/* 全局样式重置 */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body.admin-sidebar-layout {
|
||||
background: var(--td-bg-color-page);
|
||||
color: var(--td-text-color-primary);
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ========== 左侧边栏 ========== */
|
||||
.admin-sidebar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: var(--sidebar-width);
|
||||
background: var(--td-bg-color-container);
|
||||
border-right: 1px solid var(--td-border-color);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
/* Logo */
|
||||
.sidebar-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 20px 24px;
|
||||
border-bottom: 1px solid var(--td-border-color);
|
||||
}
|
||||
|
||||
.sidebar-logo .logo-icon {
|
||||
font-size: 32px;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.sidebar-logo .logo-text {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
font-family: 'Space Grotesk', sans-serif;
|
||||
}
|
||||
|
||||
/* 导航区域 */
|
||||
.sidebar-nav {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
.nav-section {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.nav-section-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 8px 24px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
margin: 2px 12px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 12px;
|
||||
color: var(--td-text-color-secondary);
|
||||
text-decoration: none;
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background: var(--td-bg-color-container-hover);
|
||||
color: var(--td-text-color-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-item.active .nav-link {
|
||||
background: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
font-size: 20px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-text {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 用户信息 */
|
||||
.sidebar-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 16px 24px;
|
||||
border-top: 1px solid var(--td-border-color);
|
||||
background: var(--td-bg-color-page);
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: var(--td-brand-color-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.user-avatar .material-symbols-outlined {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--td-text-color-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.user-email {
|
||||
font-size: 12px;
|
||||
color: var(--td-text-color-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* ========== 主内容区域 ========== */
|
||||
.admin-main {
|
||||
margin-left: var(--sidebar-width);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 顶部导航 */
|
||||
.admin-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: var(--td-bg-color-container);
|
||||
border-bottom: 1px solid var(--td-border-color);
|
||||
padding: 16px 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-shadow: var(--td-shadow-1);
|
||||
}
|
||||
|
||||
.header-breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.breadcrumb-link {
|
||||
color: var(--td-text-color-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.breadcrumb-link:hover {
|
||||
color: var(--td-brand-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.breadcrumb-separator {
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.breadcrumb-current {
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
position: relative;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: 8px 12px 8px 40px;
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius);
|
||||
font-size: 14px;
|
||||
background: var(--td-bg-color-page);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--td-brand-color);
|
||||
box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
|
||||
}
|
||||
|
||||
.header-btn {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: var(--td-border-radius);
|
||||
color: var(--td-text-color-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.header-btn:hover {
|
||||
background: var(--td-bg-color-container-hover);
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.header-btn .material-symbols-outlined {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* 页面内容 */
|
||||
.admin-content {
|
||||
flex: 1;
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
font-family: 'Space Grotesk', sans-serif;
|
||||
}
|
||||
|
||||
.page-description {
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ========== 表格样式 ========== */
|
||||
.table {
|
||||
background: var(--td-bg-color-container);
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--td-shadow-1);
|
||||
border: 1px solid var(--td-border-color);
|
||||
}
|
||||
|
||||
.table thead th {
|
||||
background: var(--td-bg-color-page);
|
||||
border: none;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid var(--td-border-color);
|
||||
}
|
||||
|
||||
.table tbody tr {
|
||||
border-bottom: 1px solid var(--td-border-color-light);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.table tbody tr:hover {
|
||||
background: var(--td-bg-color-page);
|
||||
}
|
||||
|
||||
.table tbody tr:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.table td {
|
||||
padding: 16px;
|
||||
vertical-align: middle;
|
||||
color: var(--td-text-color-primary);
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* ========== 表单样式 ========== */
|
||||
.form-control {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius);
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-primary);
|
||||
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: var(--td-brand-color);
|
||||
box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.form-control::placeholder {
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
label, .form-label {
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* ========== 按钮样式 ========== */
|
||||
.btn {
|
||||
padding: 8px 16px;
|
||||
border-radius: var(--td-border-radius);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--td-brand-color);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--td-brand-color-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px rgba(0, 82, 217, 0.2);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--td-success-color);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
background: var(--td-warning-color);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--td-error-color);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.btn-secondary, .btn-default {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.btn-secondary:hover, .btn-default:hover {
|
||||
background: var(--td-bg-color-container-hover);
|
||||
}
|
||||
|
||||
/* ========== 卡片样式 ========== */
|
||||
.card, .panel {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
box-shadow: var(--td-shadow-1);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.card-header, .panel-heading {
|
||||
background: transparent;
|
||||
border-bottom: 1px solid var(--td-border-color);
|
||||
padding: 16px 20px;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.card-body, .panel-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* ========== 警告框 ========== */
|
||||
.alert {
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
border: none;
|
||||
padding: 12px 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: rgba(0, 168, 112, 0.1);
|
||||
color: var(--td-success-color);
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
background: rgba(213, 73, 65, 0.1);
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background: rgba(0, 82, 217, 0.1);
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.alert-warning {
|
||||
background: rgba(227, 115, 24, 0.1);
|
||||
color: var(--td-warning-color);
|
||||
}
|
||||
|
||||
/* ========== 分页 ========== */
|
||||
.pagination {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.pagination .page-link {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
color: var(--td-text-color-primary);
|
||||
border-radius: var(--td-border-radius);
|
||||
padding: 6px 12px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.pagination .page-link:hover {
|
||||
background: var(--td-brand-color-light);
|
||||
border-color: var(--td-brand-color);
|
||||
color: var(--td-brand-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pagination .page-item.active .page-link {
|
||||
background: var(--td-brand-color);
|
||||
border-color: var(--td-brand-color);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.pagination .page-item.disabled .page-link {
|
||||
background: var(--td-bg-color-page);
|
||||
border-color: var(--td-border-color);
|
||||
color: var(--td-text-color-placeholder);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ========== 模态框 ========== */
|
||||
.modal-content {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
border-bottom: 1px solid var(--td-border-color);
|
||||
padding: 20px 24px;
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
border-top: 1px solid var(--td-border-color);
|
||||
padding: 16px 24px;
|
||||
}
|
||||
|
||||
/* ========== 下拉菜单 ========== */
|
||||
.dropdown-menu {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
color: var(--td-text-color-primary);
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.dropdown-item:hover {
|
||||
background: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
/* ========== Select2 ========== */
|
||||
.select2-container--bootstrap4 .select2-selection {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius);
|
||||
}
|
||||
|
||||
.select2-dropdown {
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color);
|
||||
border-radius: var(--td-border-radius-medium);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.select2-results__option {
|
||||
color: var(--td-text-color-primary);
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.select2-results__option--highlighted {
|
||||
background: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
/* ========== 滚动条 ========== */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--td-bg-color-page);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--td-border-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
/* ========== 响应式 ========== */
|
||||
@media (max-width: 768px) {
|
||||
.admin-sidebar {
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -1,295 +1,459 @@
|
||||
/* ========== Flask-Admin 后台科技感主题 - ZJPB焦提示词 ========== */
|
||||
/* ========== Flask-Admin TDesign主题 - ZJPB焦提示词 (亮色主题) ========== */
|
||||
|
||||
/* 深色主题覆盖 */
|
||||
body.admin-theme {
|
||||
background: #111618 !important;
|
||||
background-image:
|
||||
radial-gradient(at 20% 20%, rgba(37, 192, 244, 0.08) 0px, transparent 50%),
|
||||
radial-gradient(at 80% 80%, rgba(124, 58, 237, 0.08) 0px, transparent 50%);
|
||||
color: #ffffff !important;
|
||||
font-family: 'Space Grotesk', 'Noto Sans', sans-serif !important;
|
||||
/* TDesign 色彩系统 */
|
||||
:root {
|
||||
--td-brand-color: #0052D9;
|
||||
--td-brand-color-hover: #266FE8;
|
||||
--td-brand-color-active: #0034B5;
|
||||
--td-brand-color-light: #ECF2FE;
|
||||
--td-success-color: #00A870;
|
||||
--td-warning-color: #E37318;
|
||||
--td-error-color: #D54941;
|
||||
--td-bg-color-page: #F3F3F3;
|
||||
--td-bg-color-container: #FFFFFF;
|
||||
--td-bg-color-container-hover: #F5F5F5;
|
||||
--td-text-color-primary: #000000;
|
||||
--td-text-color-secondary: #606266;
|
||||
--td-text-color-placeholder: #C0C4CC;
|
||||
--td-border-color: #DCDFE6;
|
||||
--td-border-color-light: #E4E7ED;
|
||||
--td-border-radius: 3px;
|
||||
--td-border-radius-medium: 6px;
|
||||
--td-shadow-1: 0 1px 10px rgba(0, 0, 0, .05);
|
||||
--td-shadow-2: 0 2px 20px rgba(0, 0, 0, .08);
|
||||
}
|
||||
|
||||
/* 亮色模式 - 全局覆盖 */
|
||||
body, body.admin-theme, .admin-theme {
|
||||
background: var(--td-bg-color-page) !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif !important;
|
||||
}
|
||||
|
||||
/* 主容器 */
|
||||
.container-fluid, .container {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
/* 导航栏 */
|
||||
.navbar-admin {
|
||||
background: rgba(27, 36, 39, 0.95) !important;
|
||||
backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid #283539;
|
||||
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
|
||||
.navbar, .navbar-default, .navbar-inverse, .navbar-admin {
|
||||
background: #FFFFFF !important;
|
||||
border-bottom: 1px solid var(--td-border-color) !important;
|
||||
box-shadow: var(--td-shadow-1) !important;
|
||||
border: none !important;
|
||||
min-height: 64px !important;
|
||||
}
|
||||
|
||||
.navbar-admin .navbar-brand {
|
||||
background: linear-gradient(to right, #25c0f4, #c084fc);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-weight: 700;
|
||||
font-family: 'Space Grotesk', sans-serif !important;
|
||||
.navbar-brand, .navbar .navbar-brand {
|
||||
color: var(--td-brand-color) !important;
|
||||
font-weight: 600 !important;
|
||||
font-size: 18px !important;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link, .navbar-nav > li > a {
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
font-size: 14px !important;
|
||||
padding: 8px 16px !important;
|
||||
border-radius: var(--td-border-radius) !important;
|
||||
transition: all 0.2s ease !important;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link:hover, .navbar-nav > li > a:hover,
|
||||
.navbar-nav .nav-link:focus, .navbar-nav > li > a:focus {
|
||||
color: var(--td-text-color-primary) !important;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
}
|
||||
|
||||
/* 侧边栏 */
|
||||
.nav-sidebar {
|
||||
background: rgba(27, 36, 39, 0.8) !important;
|
||||
.nav-sidebar, .nav.nav-pills {
|
||||
background: #FFFFFF !important;
|
||||
border-right: 1px solid var(--td-border-color) !important;
|
||||
}
|
||||
|
||||
.nav-sidebar .nav-link {
|
||||
color: #9cb2ba !important;
|
||||
transition: all 0.3s ease;
|
||||
.nav-sidebar .nav-link, .nav-sidebar > li > a,
|
||||
.nav-pills > li > a {
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
padding: 12px 16px !important;
|
||||
margin: 4px 8px !important;
|
||||
border-radius: var(--td-border-radius-medium) !important;
|
||||
font-size: 14px !important;
|
||||
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1) !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.nav-sidebar .nav-link:hover,
|
||||
.nav-sidebar .nav-link.active {
|
||||
color: #ffffff !important;
|
||||
background: rgba(37, 192, 244, 0.15) !important;
|
||||
border-left: 3px solid #25c0f4;
|
||||
.nav-sidebar .nav-link:hover, .nav-sidebar > li > a:hover,
|
||||
.nav-pills > li > a:hover {
|
||||
color: var(--td-text-color-primary) !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
}
|
||||
|
||||
.nav-sidebar .nav-link.active, .nav-sidebar > li.active > a,
|
||||
.nav-pills > li.active > a {
|
||||
color: var(--td-brand-color) !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
font-weight: 500 !important;
|
||||
}
|
||||
|
||||
/* 卡片和面板 */
|
||||
.card, .panel {
|
||||
background: rgba(27, 36, 39, 0.6) !important;
|
||||
backdrop-filter: blur(20px);
|
||||
border: 1px solid #283539 !important;
|
||||
border-radius: 12px !important;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
border-radius: var(--td-border-radius-medium) !important;
|
||||
box-shadow: var(--td-shadow-1);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.card-header, .panel-heading {
|
||||
background: rgba(37, 192, 244, 0.08) !important;
|
||||
border-bottom: 1px solid #283539 !important;
|
||||
color: #ffffff !important;
|
||||
background: transparent !important;
|
||||
border-bottom: 1px solid var(--td-border-color) !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
padding: 16px !important;
|
||||
}
|
||||
|
||||
/* 表格 */
|
||||
.table {
|
||||
color: #ffffff !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
font-size: 14px;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.table thead th {
|
||||
background: rgba(30, 39, 44, 0.8) !important;
|
||||
border-color: #283539 !important;
|
||||
color: #9cb2ba !important;
|
||||
font-size: 11px;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
border: none !important;
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 12px 16px !important;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.table thead th:first-child {
|
||||
border-top-left-radius: var(--td-border-radius);
|
||||
}
|
||||
|
||||
.table thead th:last-child {
|
||||
border-top-right-radius: var(--td-border-radius);
|
||||
}
|
||||
|
||||
.table tbody tr {
|
||||
background: transparent !important;
|
||||
border-color: #283539 !important;
|
||||
transition: all 0.2s ease;
|
||||
border-bottom: 1px solid var(--td-border-color-light) !important;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.table tbody tr:hover {
|
||||
background: rgba(30, 39, 44, 0.5) !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
}
|
||||
|
||||
.table td, .table th {
|
||||
border-color: #283539 !important;
|
||||
color: #ffffff !important;
|
||||
.table tbody tr:last-child {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.table td {
|
||||
border: none !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
padding: 16px !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.table th {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
/* 表单 */
|
||||
.form-control {
|
||||
background: #111618 !important;
|
||||
border: 1px solid #283539 !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 8px !important;
|
||||
transition: all 0.3s ease;
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
border-radius: var(--td-border-radius) !important;
|
||||
padding: 8px 12px !important;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
background: rgba(27, 36, 39, 0.8) !important;
|
||||
border-color: #25c0f4 !important;
|
||||
box-shadow: 0 0 0 3px rgba(37, 192, 244, 0.1) !important;
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border-color: var(--td-brand-color) !important;
|
||||
box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1) !important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.form-control::placeholder {
|
||||
color: #9cb2ba !important;
|
||||
color: var(--td-text-color-placeholder) !important;
|
||||
}
|
||||
|
||||
.form-label, label {
|
||||
color: #9cb2ba !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.form-text {
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 按钮 */
|
||||
.btn {
|
||||
border-radius: var(--td-border-radius) !important;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
padding: 8px 16px !important;
|
||||
line-height: 22px;
|
||||
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #25c0f4 !important;
|
||||
border: none !important;
|
||||
color: #111618 !important;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 0 20px rgba(37, 192, 244, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
background: var(--td-brand-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
box-shadow: 0 2px 4px rgba(0, 82, 217, 0.2);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #1fa8d8 !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 0 30px rgba(37, 192, 244, 0.5);
|
||||
background: var(--td-brand-color-hover) !important;
|
||||
box-shadow: 0 4px 8px rgba(0, 82, 217, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-primary:active {
|
||||
background: var(--td-brand-color-active) !important;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--td-success-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
background: var(--td-warning-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--td-error-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
background: linear-gradient(135deg, #25c0f4 0%, #00f2fe 100%) !important;
|
||||
border: none !important;
|
||||
color: #111618 !important;
|
||||
font-weight: 600;
|
||||
background: #029CD4 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.btn-secondary, .btn-default {
|
||||
background: rgba(40, 53, 57, 0.6) !important;
|
||||
border: 1px solid #283539 !important;
|
||||
color: #ffffff !important;
|
||||
transition: all 0.3s ease;
|
||||
background: #FFFFFF !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
}
|
||||
|
||||
.btn-secondary:hover, .btn-default:hover {
|
||||
background: rgba(52, 66, 71, 0.8) !important;
|
||||
border-color: #4a5a60 !important;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
border-color: var(--td-border-color) !important;
|
||||
}
|
||||
|
||||
/* 模态框 */
|
||||
.modal-content {
|
||||
background: rgba(27, 36, 39, 0.95) !important;
|
||||
backdrop-filter: blur(20px);
|
||||
border: 1px solid #283539 !important;
|
||||
border-radius: 12px !important;
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
border-radius: var(--td-border-radius-medium) !important;
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
border-bottom-color: #283539 !important;
|
||||
background: rgba(37, 192, 244, 0.05);
|
||||
border-bottom: 1px solid var(--td-border-color) !important;
|
||||
padding: 20px 24px;
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
color: var(--td-text-color-primary) !important;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
border-top-color: #283539 !important;
|
||||
border-top: 1px solid var(--td-border-color) !important;
|
||||
padding: 16px 24px;
|
||||
}
|
||||
|
||||
/* 分页 */
|
||||
.pagination {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.pagination .page-link {
|
||||
background: rgba(27, 36, 39, 0.6) !important;
|
||||
border-color: #283539 !important;
|
||||
color: #9cb2ba !important;
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
border-radius: var(--td-border-radius) !important;
|
||||
padding: 6px 12px;
|
||||
margin: 0;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.pagination .page-link:hover {
|
||||
background: rgba(37, 192, 244, 0.1) !important;
|
||||
border-color: #25c0f4 !important;
|
||||
color: #ffffff !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
border-color: var(--td-brand-color) !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
.pagination .page-item.active .page-link {
|
||||
background: #25c0f4 !important;
|
||||
border-color: #25c0f4 !important;
|
||||
color: #111618 !important;
|
||||
background: var(--td-brand-color) !important;
|
||||
border-color: var(--td-brand-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.pagination .page-item.disabled .page-link {
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border-color: var(--td-border-color) !important;
|
||||
color: var(--td-text-color-placeholder) !important;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 警告框 */
|
||||
.alert {
|
||||
background: rgba(27, 36, 39, 0.8) !important;
|
||||
border: 1px solid #283539 !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 8px !important;
|
||||
border-radius: var(--td-border-radius-medium) !important;
|
||||
border: none !important;
|
||||
padding: 12px 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: rgba(34, 197, 94, 0.1) !important;
|
||||
border-color: rgba(34, 197, 94, 0.3) !important;
|
||||
color: #4ade80 !important;
|
||||
background: rgba(0, 168, 112, 0.1) !important;
|
||||
color: #00A870 !important;
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
background: rgba(239, 68, 68, 0.1) !important;
|
||||
border-color: rgba(239, 68, 68, 0.3) !important;
|
||||
color: #f87171 !important;
|
||||
background: rgba(213, 73, 65, 0.1) !important;
|
||||
color: #D54941 !important;
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background: rgba(37, 192, 244, 0.1) !important;
|
||||
border-color: rgba(37, 192, 244, 0.3) !important;
|
||||
color: #25c0f4 !important;
|
||||
background: rgba(2, 156, 212, 0.1) !important;
|
||||
color: #029CD4 !important;
|
||||
}
|
||||
|
||||
.alert-warning {
|
||||
background: rgba(251, 191, 36, 0.1) !important;
|
||||
border-color: rgba(251, 191, 36, 0.3) !important;
|
||||
color: #fbbf24 !important;
|
||||
background: rgba(227, 115, 24, 0.1) !important;
|
||||
color: #E37318 !important;
|
||||
}
|
||||
|
||||
/* 链接 */
|
||||
a {
|
||||
color: #25c0f4 !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #1fa8d8 !important;
|
||||
color: var(--td-brand-color-hover) !important;
|
||||
}
|
||||
|
||||
/* 文本颜色 */
|
||||
.text-muted {
|
||||
color: #9cb2ba !important;
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
}
|
||||
|
||||
/* 输入组 */
|
||||
.input-group-text {
|
||||
background: rgba(27, 36, 39, 0.6) !important;
|
||||
border-color: #283539 !important;
|
||||
color: #9cb2ba !important;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
}
|
||||
|
||||
/* Select2 下拉框 */
|
||||
.select2-container--bootstrap4 .select2-selection {
|
||||
background: #111618 !important;
|
||||
border-color: #283539 !important;
|
||||
color: #ffffff !important;
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
border-radius: var(--td-border-radius) !important;
|
||||
}
|
||||
|
||||
.select2-dropdown {
|
||||
background: rgba(27, 36, 39, 0.95) !important;
|
||||
border-color: #283539 !important;
|
||||
backdrop-filter: blur(10px);
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
border-radius: var(--td-border-radius-medium) !important;
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.select2-results__option {
|
||||
color: #ffffff !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.select2-results__option--highlighted {
|
||||
background: rgba(37, 192, 244, 0.2) !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
/* 徽章 */
|
||||
.badge {
|
||||
border-radius: 2px !important;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 2px 8px;
|
||||
}
|
||||
|
||||
.badge-primary {
|
||||
background: #25c0f4 !important;
|
||||
color: #111618 !important;
|
||||
background: var(--td-brand-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.badge-success {
|
||||
background: var(--td-success-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.badge-warning {
|
||||
background: var(--td-warning-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.badge-danger {
|
||||
background: var(--td-error-color) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.badge-secondary {
|
||||
background: #283539 !important;
|
||||
color: #9cb2ba !important;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
}
|
||||
|
||||
/* 进度条 */
|
||||
.progress {
|
||||
background: rgba(27, 36, 39, 0.6) !important;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
border-radius: 2px !important;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background: #25c0f4 !important;
|
||||
background: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
/* 额外优化 */
|
||||
.navbar-nav .nav-link {
|
||||
color: #9cb2ba !important;
|
||||
/* 复选框和单选框 */
|
||||
.form-check-input {
|
||||
background-color: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link:hover {
|
||||
color: #ffffff !important;
|
||||
.form-check-input:checked {
|
||||
background-color: var(--td-brand-color) !important;
|
||||
border-color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
.form-check-input:focus {
|
||||
box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1) !important;
|
||||
}
|
||||
|
||||
/* 自定义滚动条 */
|
||||
@@ -299,15 +463,123 @@ a:hover {
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #111618;
|
||||
background: var(--td-bg-color-page);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #283539;
|
||||
background: var(--td-border-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #3a4b50;
|
||||
background: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
/* 工具提示 */
|
||||
.tooltip-inner {
|
||||
background: var(--td-text-color-primary) !important;
|
||||
color: #FFFFFF !important;
|
||||
border-radius: var(--td-border-radius) !important;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 面包屑 */
|
||||
.breadcrumb {
|
||||
background: transparent !important;
|
||||
padding: 0;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.breadcrumb-item {
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.breadcrumb-item.active {
|
||||
color: var(--td-text-color-primary) !important;
|
||||
}
|
||||
|
||||
.breadcrumb-item + .breadcrumb-item::before {
|
||||
color: var(--td-text-color-placeholder) !important;
|
||||
}
|
||||
|
||||
/* 标签页 */
|
||||
.nav-tabs {
|
||||
border-bottom: 1px solid var(--td-border-color) !important;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link {
|
||||
border: none !important;
|
||||
color: var(--td-text-color-secondary) !important;
|
||||
padding: 12px 24px;
|
||||
margin-bottom: -1px;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link:hover {
|
||||
color: var(--td-text-color-primary) !important;
|
||||
border-bottom-color: var(--td-border-color) !important;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link.active {
|
||||
color: var(--td-brand-color) !important;
|
||||
background: transparent !important;
|
||||
border-bottom-color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
/* 下拉菜单 */
|
||||
.dropdown-menu {
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-border-color) !important;
|
||||
border-radius: var(--td-border-radius-medium) !important;
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
color: var(--td-text-color-primary) !important;
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.dropdown-item:hover {
|
||||
background: var(--td-brand-color-light) !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
/* 表格操作按钮 */
|
||||
.table .btn-sm {
|
||||
padding: 4px 12px !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 48px 24px;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.empty-state-icon {
|
||||
font-size: 48px;
|
||||
color: var(--td-text-color-placeholder);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* 加载状态 */
|
||||
.spinner-border {
|
||||
border-color: var(--td-brand-color);
|
||||
border-right-color: transparent;
|
||||
}
|
||||
|
||||
/* 响应式优化 */
|
||||
@media (max-width: 768px) {
|
||||
.table {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.table td, .table th {
|
||||
padding: 8px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user