first commit
This commit is contained in:
38
src/assets/base.css
Normal file
38
src/assets/base.css
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
font-weight: normal;
|
||||
}
|
||||
:root {
|
||||
/* --color-background: #f5f7fa; */
|
||||
--color-text: #222;
|
||||
}
|
||||
body {
|
||||
min-height: 100vh;
|
||||
color: var(--color-text);
|
||||
/* background: var(--color-background); */
|
||||
transition:
|
||||
color 0.5s,
|
||||
background-color 0.5s;
|
||||
line-height: 1.6;
|
||||
font-family:
|
||||
Inter,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
'Segoe UI',
|
||||
Roboto,
|
||||
Oxygen,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
'Fira Sans',
|
||||
'Droid Sans',
|
||||
'Helvetica Neue',
|
||||
sans-serif;
|
||||
font-size: 15px;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
1
src/assets/logo.svg
Normal file
1
src/assets/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
|
||||
|
After Width: | Height: | Size: 276 B |
2
src/assets/main.css
Normal file
2
src/assets/main.css
Normal file
@@ -0,0 +1,2 @@
|
||||
@import './base.css';
|
||||
@import "tailwindcss";
|
||||
120
src/assets/styles/auth.css
Normal file
120
src/assets/styles/auth.css
Normal file
@@ -0,0 +1,120 @@
|
||||
/* 认证页面全局样式 */
|
||||
|
||||
/* 输入框样式优化 */
|
||||
.auth-input :deep(.el-input__wrapper) {
|
||||
border-radius: 8px !important;
|
||||
transition: all 0.3s ease !important;
|
||||
border: 1px solid #d1d5db !important;
|
||||
}
|
||||
|
||||
.auth-input :deep(.el-input__wrapper:hover) {
|
||||
border-color: #3b82f6 !important;
|
||||
}
|
||||
|
||||
.auth-input :deep(.el-input__wrapper.is-focus) {
|
||||
border-color: #3b82f6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
|
||||
}
|
||||
|
||||
/* 按钮样式优化 */
|
||||
.auth-button :deep(.el-button--primary) {
|
||||
border-radius: 8px !important;
|
||||
font-weight: 500 !important;
|
||||
transition: all 0.3s ease !important;
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.auth-button :deep(.el-button--primary:hover) {
|
||||
transform: translateY(-1px) !important;
|
||||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
|
||||
background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
|
||||
}
|
||||
|
||||
.auth-button :deep(.el-button--primary:active) {
|
||||
transform: translateY(0) !important;
|
||||
}
|
||||
|
||||
/* Radio button 样式优化 */
|
||||
.auth-radio :deep(.el-radio-button__inner) {
|
||||
border: none !important;
|
||||
background: transparent !important;
|
||||
color: #6b7280 !important;
|
||||
font-weight: 500 !important;
|
||||
transition: all 0.3s ease !important;
|
||||
padding: 12px 16px !important;
|
||||
}
|
||||
|
||||
.auth-radio :deep(.el-radio-button__original-radio:checked + .el-radio-button__inner) {
|
||||
background: white !important;
|
||||
color: #3b82f6 !important;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
|
||||
}
|
||||
|
||||
/* 表单标签样式 */
|
||||
.auth-label {
|
||||
@apply block text-sm font-medium text-gray-700 mb-2;
|
||||
}
|
||||
|
||||
/* 链接样式 */
|
||||
.auth-link {
|
||||
@apply text-gray-600 hover:text-sky-600 transition-colors mx-2;
|
||||
}
|
||||
|
||||
/* 卡片样式 */
|
||||
.auth-card {
|
||||
@apply bg-white/95 backdrop-blur-sm shadow-2xl rounded-2xl border border-white/20;
|
||||
}
|
||||
|
||||
/* 标题样式 */
|
||||
.auth-title {
|
||||
@apply text-2xl font-bold text-gray-900 mb-2;
|
||||
}
|
||||
|
||||
.auth-subtitle {
|
||||
@apply text-gray-600 text-sm;
|
||||
}
|
||||
|
||||
/* 响应式优化 */
|
||||
@media (max-width: 640px) {
|
||||
.auth-input :deep(.el-input__wrapper) {
|
||||
border-radius: 6px !important;
|
||||
}
|
||||
|
||||
.auth-button :deep(.el-button--primary) {
|
||||
border-radius: 6px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
.auth-fade-in {
|
||||
animation: fadeIn 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 加载状态样式 */
|
||||
.auth-loading {
|
||||
@apply opacity-75 pointer-events-none;
|
||||
}
|
||||
|
||||
/* 错误状态样式 */
|
||||
.auth-error :deep(.el-input__wrapper) {
|
||||
border-color: #ef4444 !important;
|
||||
box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
|
||||
}
|
||||
|
||||
/* 成功状态样式 */
|
||||
.auth-success :deep(.el-input__wrapper) {
|
||||
border-color: #10b981 !important;
|
||||
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
|
||||
}
|
||||
460
src/assets/styles/index.css
Normal file
460
src/assets/styles/index.css
Normal file
@@ -0,0 +1,460 @@
|
||||
@import "tailwindcss";
|
||||
@import "./performance.css";
|
||||
@import "./auth.css";
|
||||
@import "./list-pages.css";
|
||||
|
||||
/* 全局样式重置 */
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
/* background: #f8fafc; */
|
||||
}
|
||||
|
||||
/* Element Plus 样式覆盖 */
|
||||
.el-button {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.el-button--primary {
|
||||
background-color: #3b82f6;
|
||||
border-color: #3b82f6;
|
||||
}
|
||||
|
||||
.el-button--primary:hover {
|
||||
background-color: #2563eb;
|
||||
border-color: #2563eb;
|
||||
}
|
||||
|
||||
.el-button--primary:focus {
|
||||
background-color: #1d4ed8;
|
||||
border-color: #1d4ed8;
|
||||
}
|
||||
|
||||
.el-input__inner {
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.el-input__inner:focus {
|
||||
border-color: #3b82f6;
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
}
|
||||
|
||||
.el-message {
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.el-message--success {
|
||||
background-color: #f0fdf4;
|
||||
border-color: #bbf7d0;
|
||||
}
|
||||
|
||||
.el-message--error {
|
||||
background-color: #fef2f2;
|
||||
border-color: #fecaca;
|
||||
}
|
||||
|
||||
.el-message--warning {
|
||||
background-color: #fffbeb;
|
||||
border-color: #fed7aa;
|
||||
}
|
||||
|
||||
.el-message--info {
|
||||
background-color: #eff6ff;
|
||||
border-color: #bfdbfe;
|
||||
}
|
||||
|
||||
.el-dropdown-menu {
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.el-dropdown-menu__item {
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
.el-dropdown-menu__item:hover {
|
||||
background-color: #f3f4f6;
|
||||
}
|
||||
|
||||
.el-avatar {
|
||||
background-color: #3b82f6;
|
||||
color: white;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 自定义滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #f1f5f9;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #cbd5e1;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #94a3b8;
|
||||
}
|
||||
|
||||
/* Firefox 滚动条样式 */
|
||||
* {
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: #cbd5e1 #f1f5f9;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 768px) {
|
||||
.el-dropdown-menu {
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.el-button {
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.fade-enter-from,
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.slide-enter-active,
|
||||
.slide-leave-active {
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.slide-enter-from {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.slide-leave-to {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
/* 加载动画 */
|
||||
.loading-spinner {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 3px solid #f3f4f6;
|
||||
border-radius: 50%;
|
||||
border-top-color: #3b82f6;
|
||||
animation: spin 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* 工具类 */
|
||||
.text-ellipsis {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text-ellipsis-2 {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.text-ellipsis-3 {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 阴影效果 */
|
||||
.shadow-soft {
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.shadow-medium {
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.shadow-large {
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
/* 边框效果 */
|
||||
.border-soft {
|
||||
border: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.border-medium {
|
||||
border: 1px solid #d1d5db;
|
||||
}
|
||||
|
||||
/* 圆角效果 */
|
||||
.rounded-soft {
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.rounded-medium {
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.rounded-large {
|
||||
border-radius: 0.75rem;
|
||||
}
|
||||
|
||||
/* 间距工具类 */
|
||||
.space-y-soft > * + * {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.space-y-medium > * + * {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.space-y-large > * + * {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.space-x-soft > * + * {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.space-x-medium > * + * {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.space-x-large > * + * {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
/* 状态颜色 */
|
||||
.status-success {
|
||||
color: #059669;
|
||||
background-color: #d1fae5;
|
||||
}
|
||||
|
||||
.status-error {
|
||||
color: #dc2626;
|
||||
background-color: #fee2e2;
|
||||
}
|
||||
|
||||
.status-warning {
|
||||
color: #d97706;
|
||||
background-color: #fef3c7;
|
||||
}
|
||||
|
||||
.status-info {
|
||||
color: #2563eb;
|
||||
background-color: #dbeafe;
|
||||
}
|
||||
|
||||
/* 卡片样式 */
|
||||
.card {
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
padding-bottom: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.card-subtitle {
|
||||
font-size: 0.875rem;
|
||||
color: #6b7280;
|
||||
margin: 0.25rem 0 0 0;
|
||||
}
|
||||
|
||||
/* 表格样式 */
|
||||
.table-container {
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
background-color: #f9fafb;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
padding: 1rem 1.5rem;
|
||||
}
|
||||
|
||||
.table-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 表单样式 */
|
||||
.form-section {
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.form-section-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
margin: 0 0 1rem 0;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
/* 按钮组样式 */
|
||||
.button-group {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.button-group-vertical {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* 徽章样式 */
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.badge-success {
|
||||
background-color: #d1fae5;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
.badge-error {
|
||||
background-color: #fee2e2;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.badge-warning {
|
||||
background-color: #fef3c7;
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.badge-info {
|
||||
background-color: #dbeafe;
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.badge-gray {
|
||||
background-color: #f3f4f6;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
/* 空状态样式 */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 3rem 1.5rem;
|
||||
}
|
||||
|
||||
.empty-state-icon {
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
margin: 0 auto 1rem;
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
.empty-state-title {
|
||||
font-size: 1.125rem;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
margin: 0 0 0.5rem 0;
|
||||
}
|
||||
|
||||
.empty-state-description {
|
||||
font-size: 0.875rem;
|
||||
color: #6b7280;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 响应式工具类 */
|
||||
@media (max-width: 640px) {
|
||||
.sm\:hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sm\:block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sm\:flex {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.md\:hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.md\:block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.md\:flex {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.lg\:hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.lg\:block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.lg\:flex {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
445
src/assets/styles/list-pages.css
Normal file
445
src/assets/styles/list-pages.css
Normal file
@@ -0,0 +1,445 @@
|
||||
/* 列表页通用样式 - 科技感、简约、高级设计 */
|
||||
|
||||
/* ===== 页面容器 ===== */
|
||||
.list-page-container {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ===== 主卡片容器 ===== */
|
||||
.list-page-card {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
border-radius: 16px;
|
||||
box-shadow:
|
||||
0 4px 6px -1px rgba(0, 0, 0, 0.05),
|
||||
0 10px 15px -3px rgba(0, 0, 0, 0.03),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.1);
|
||||
overflow: hidden;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.list-page-card:hover {
|
||||
box-shadow:
|
||||
0 10px 25px -3px rgba(0, 0, 0, 0.08),
|
||||
0 4px 6px -2px rgba(0, 0, 0, 0.04),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
/* ===== 页面头部 ===== */
|
||||
.list-page-header {
|
||||
padding: 24px 24px 18px;
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.6);
|
||||
background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
|
||||
}
|
||||
|
||||
.list-page-title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
margin: 0 0 8px 0;
|
||||
letter-spacing: -0.025em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.list-page-subtitle {
|
||||
font-size: 14px;
|
||||
color: #64748b;
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.list-page-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* ===== 筛选区域 ===== */
|
||||
.list-page-filters {
|
||||
padding: 24px 32px;
|
||||
background: rgba(248, 250, 252, 0.5);
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.4);
|
||||
}
|
||||
|
||||
.filter-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.filter-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.filter-label {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
margin-bottom: 8px;
|
||||
letter-spacing: 0.025em;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid rgba(226, 232, 240, 0.4);
|
||||
}
|
||||
|
||||
.filter-stats {
|
||||
font-size: 14px;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.filter-buttons {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* ===== 表格区域 ===== */
|
||||
.list-page-table {
|
||||
/* padding: 32px; */
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(226, 232, 240, 0.6);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
/* ===== 分页区域 ===== */
|
||||
.list-page-pagination {
|
||||
padding: 24px 32px;
|
||||
border-top: 1px solid rgba(226, 232, 240, 0.4);
|
||||
background: rgba(248, 250, 252, 0.3);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* ===== Element Plus 组件样式覆盖 ===== */
|
||||
|
||||
/* 按钮样式 */
|
||||
.list-page-container .el-button {
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.025em;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.list-page-container .el-button--primary {
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
|
||||
}
|
||||
|
||||
.list-page-container .el-button--primary:hover {
|
||||
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
|
||||
border-color: #2563eb;
|
||||
box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.list-page-container .el-button--default {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(226, 232, 240, 0.8);
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.list-page-container .el-button--default:hover {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
border-color: #cbd5e1;
|
||||
color: #1e293b;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.list-page-container .el-button--danger {
|
||||
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
||||
border-color: #ef4444;
|
||||
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
|
||||
.list-page-container .el-button--danger:hover {
|
||||
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
|
||||
border-color: #dc2626;
|
||||
box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* 输入框样式 */
|
||||
.list-page-container .el-input__wrapper {
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.list-page-container .el-input__wrapper:hover {
|
||||
border-color: #cbd5e1;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.list-page-container .el-input__wrapper.is-focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
background: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.list-page-container .el-input__inner {
|
||||
color: #1e293b;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.list-page-container .el-input__inner::placeholder {
|
||||
color: #94a3b8;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* 选择器样式 */
|
||||
.list-page-container .el-select .el-input__wrapper {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.list-page-container .el-select-dropdown {
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
box-shadow:
|
||||
0 10px 25px -3px rgba(0, 0, 0, 0.1),
|
||||
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
}
|
||||
|
||||
.list-page-container .el-select-dropdown__item {
|
||||
color: #475569;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.list-page-container .el-select-dropdown__item:hover {
|
||||
background: rgba(59, 130, 246, 0.1);
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
.list-page-container .el-select-dropdown__item.selected {
|
||||
background: rgba(59, 130, 246, 0.15);
|
||||
color: #3b82f6;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 表格样式 */
|
||||
.list-page-container .el-table {
|
||||
background: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.list-page-container .el-table th {
|
||||
background: rgba(248, 250, 252, 0.8);
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.6);
|
||||
color: #475569;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.025em;
|
||||
padding: 16px 12px;
|
||||
}
|
||||
|
||||
.list-page-container .el-table td {
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.3);
|
||||
/* padding: 16px 12px; */
|
||||
color: #1e293b;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.list-page-container .el-table tr:hover > td {
|
||||
background: rgba(59, 130, 246, 0.02);
|
||||
}
|
||||
|
||||
.list-page-container .el-table--striped .el-table__body tr.el-table__row--striped td {
|
||||
background: rgba(248, 250, 252, 0.3);
|
||||
}
|
||||
|
||||
.list-page-container .el-table--striped .el-table__body tr.el-table__row--striped:hover td {
|
||||
background: rgba(59, 130, 246, 0.04);
|
||||
}
|
||||
|
||||
/* 标签样式 */
|
||||
.list-page-container .el-tag {
|
||||
border-radius: 6px;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.025em;
|
||||
border: none;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.list-page-container .el-tag--success {
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #16a34a;
|
||||
}
|
||||
|
||||
.list-page-container .el-tag--danger {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.list-page-container .el-tag--warning {
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.list-page-container .el-tag--info {
|
||||
background: rgba(59, 130, 246, 0.1);
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
/* 分页样式 */
|
||||
.list-page-container .el-pagination {
|
||||
--el-pagination-bg-color: transparent;
|
||||
--el-pagination-text-color: #475569;
|
||||
--el-pagination-border-radius: 8px;
|
||||
--el-pagination-button-color: #64748b;
|
||||
--el-pagination-button-bg-color: rgba(255, 255, 255, 0.8);
|
||||
--el-pagination-button-disabled-color: #cbd5e1;
|
||||
--el-pagination-button-disabled-bg-color: rgba(248, 250, 252, 0.5);
|
||||
--el-pagination-hover-color: #3b82f6;
|
||||
--el-pagination-hover-bg-color: rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
|
||||
.list-page-container .el-pagination .el-pager li {
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.list-page-container .el-pagination .el-pager li:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.list-page-container .el-pagination .el-pager li.is-active {
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
||||
color: white;
|
||||
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
|
||||
}
|
||||
|
||||
/* 卡片样式 */
|
||||
.list-page-container .el-card {
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(226, 232, 240, 0.6);
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
box-shadow:
|
||||
0 2px 4px rgba(0, 0, 0, 0.05),
|
||||
0 1px 2px rgba(0, 0, 0, 0.03);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.list-page-container .el-card:hover {
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.08),
|
||||
0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.list-page-container .el-card__body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* 加载状态 */
|
||||
.list-page-container .el-loading-mask {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 768px) {
|
||||
.list-page-container {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.list-page-header {
|
||||
padding: 24px 20px 20px;
|
||||
}
|
||||
|
||||
.list-page-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.list-page-filters {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.filter-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.list-page-table {
|
||||
padding: 0 20px 20px;
|
||||
}
|
||||
|
||||
.list-page-pagination {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.filter-buttons {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes fadeInUp {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.list-page-card {
|
||||
animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* 性能优化:减少动画效果 */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.list-page-card {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 科技感装饰元素 */
|
||||
.list-page-container::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.list-page-container::after {
|
||||
content: '';
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
height: 100vh;
|
||||
background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
|
||||
z-index: 1;
|
||||
}
|
||||
186
src/assets/styles/performance.css
Normal file
186
src/assets/styles/performance.css
Normal file
@@ -0,0 +1,186 @@
|
||||
/* 渲染性能优化样式文件 */
|
||||
|
||||
/* 1. 减少动画效果 - 尊重用户偏好 */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 2. 低端设备优化 */
|
||||
@media (max-width: 768px), (max-device-pixel-ratio: 1) {
|
||||
/* 简化背景渐变 */
|
||||
.bg-gradient-to-br,
|
||||
.bg-gradient-to-tl,
|
||||
.bg-gradient-to-tr,
|
||||
.bg-gradient-to-bl {
|
||||
background: #f8fafc !important;
|
||||
}
|
||||
|
||||
/* 简化阴影效果 */
|
||||
.shadow-soft,
|
||||
.shadow-medium,
|
||||
.shadow-large {
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
/* 移除复杂的边框效果 */
|
||||
.border-soft,
|
||||
.border-medium {
|
||||
border: 1px solid #e5e7eb !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 3. 硬件加速优化 */
|
||||
.gpu-accelerated {
|
||||
transform: translateZ(0);
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
/* 4. 简化backdrop-filter的替代方案 */
|
||||
.glass-effect {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
border: 1px solid rgba(226, 232, 240, 0.6);
|
||||
}
|
||||
|
||||
.glass-effect-light {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid rgba(226, 232, 240, 0.4);
|
||||
}
|
||||
|
||||
/* 5. 优化过渡效果 */
|
||||
.optimized-transition {
|
||||
transition: all 0.2s ease;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
/* 6. 移动端性能优化 */
|
||||
@media (max-width: 640px) {
|
||||
/* 减少复杂的CSS计算 */
|
||||
.mobile-optimized {
|
||||
transform: none !important;
|
||||
filter: none !important;
|
||||
}
|
||||
|
||||
/* 简化字体渲染 */
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
}
|
||||
|
||||
/* 7. 高DPI屏幕优化 */
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
/* 为高分辨率屏幕优化 */
|
||||
.high-dpi-optimized {
|
||||
image-rendering: -webkit-optimize-contrast;
|
||||
image-rendering: crisp-edges;
|
||||
}
|
||||
}
|
||||
|
||||
/* 8. 减少重绘和重排 */
|
||||
.layout-stable {
|
||||
contain: layout style paint;
|
||||
}
|
||||
|
||||
/* 9. 优化滚动性能 */
|
||||
.smooth-scroll {
|
||||
scroll-behavior: smooth;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* 10. 减少不必要的动画 */
|
||||
@media (max-width: 1024px) {
|
||||
.desktop-only-animation {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 11. 优化图片和媒体 */
|
||||
img, video, canvas {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* 12. 减少CSS选择器复杂度 */
|
||||
.simple-selector {
|
||||
/* 使用简单的选择器 */
|
||||
}
|
||||
|
||||
/* 13. 优化字体加载 */
|
||||
.font-optimized {
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* 14. 减少阴影复杂度 */
|
||||
.simple-shadow {
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 15. 优化边框半径 */
|
||||
.optimized-radius {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* 16. 减少透明度计算 */
|
||||
.solid-bg {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
/* 17. 优化渐变效果 */
|
||||
.simple-gradient {
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||
}
|
||||
|
||||
/* 18. 减少变换复杂度 */
|
||||
.simple-transform {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* 19. 优化伪元素 */
|
||||
.optimized-pseudo::before,
|
||||
.optimized-pseudo::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 20. 减少媒体查询嵌套 */
|
||||
@media (max-width: 768px) {
|
||||
.mobile-simple {
|
||||
/* 简化的移动端样式 */
|
||||
}
|
||||
}
|
||||
|
||||
/* 21. 性能等级模式样式 */
|
||||
.low-performance-mode {
|
||||
/* 低端设备:禁用复杂效果 */
|
||||
}
|
||||
|
||||
.medium-performance-mode {
|
||||
/* 中端设备:适度优化 */
|
||||
}
|
||||
|
||||
.high-performance-mode {
|
||||
/* 高端设备:启用所有功能 */
|
||||
}
|
||||
|
||||
/* 22. 硬件加速降级样式 */
|
||||
.no-hardware-acceleration {
|
||||
/* 不支持硬件加速时的降级样式 */
|
||||
}
|
||||
|
||||
/* 23. backdrop-filter降级样式 */
|
||||
.no-backdrop-filter {
|
||||
/* 不支持backdrop-filter时的降级样式 */
|
||||
}
|
||||
|
||||
/* 24. 减少动画模式样式 */
|
||||
.reduced-motion {
|
||||
/* 用户偏好减少动画时的样式 */
|
||||
}
|
||||
Reference in New Issue
Block a user