Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
142 lines (130 loc) · 3.05 KB
/
Copy pathstyle.css
File metadata and controls
142 lines (130 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
:root {
/* SqlParserX 主题色(浅色商务风) */
--px-primary: #2563eb; /* 主蓝 */
--px-primary-2: #3b82f6; /* 亮蓝 */
--px-primary-3: #7c3aed; /* 紫 */
--px-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
--px-bg: #ffffff; /* 卡片/导航背景 */
--px-bg-muted: #f7f8fa; /* 页面浅灰背景 */
--px-bg-light: #f3f4f6; /* 输入区域背景 */
--px-border: #e5e7eb;
--px-border-strong: #d1d5db;
--px-text: #1f2937;
--px-text-dim: #6b7280;
--px-muted: #9ca3af;
--px-success: #10b981;
--px-danger: #ef4444;
font-family: Inter, system-ui, Avenir, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light;
color: var(--px-text);
background-color: var(--px-bg-muted);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
min-width: 320px;
min-height: 100vh;
}
body {
min-height: 100vh;
color: var(--px-text);
background-color: var(--px-bg-muted);
display: block;
}
a {
font-weight: 500;
color: var(--px-primary);
text-decoration: inherit;
}
a:hover {
color: var(--px-primary-2);
}
h1, h2, h3 {
color: var(--px-text);
}
/* 全局滚动条(浅色主题) */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
#app {
max-width: none;
margin: 0;
padding: 0;
text-align: left;
min-height: 100vh;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: border-color 0.25s;
}
/* ===== element-ui 浅色主题适配 ===== */
/* 普通按钮 */
.el-button {
background-color: #ffffff;
border-color: #d1d5db;
color: #374151;
}
.el-button:hover,
.el-button:focus {
background-color: #eff6ff;
border-color: #2563eb;
color: #2563eb;
}
/* 消息提示 */
.el-message {
background-color: #ffffff;
border-color: #d1d5db;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.el-message__content { color: #1f2937; }
/* 下拉菜单 */
.el-dropdown-menu {
background-color: #ffffff !important;
border: 1px solid #e5e7eb !important;
}
.el-dropdown-menu__item { color: #374151; }
.el-dropdown-menu__item:hover { background-color: #eff6ff !important; color: #2563eb; }
/* Tooltip */
.el-tooltip__popper.is-dark {
background: #1f2937;
border: none;
color: #f9fafb;
}
/* 消息弹窗 */
.el-message-box {
background-color: #ffffff;
border: 1px solid #e5e7eb;
}
.el-message-box__title { color: #1f2937; }
.el-message-box__content { color: #4b5563; }
.el-message-box__headerbtn .el-message-box__close { color: #9ca3af; }
.el-message-box__btns .el-button--primary {
background: #2563eb;
border: none;
}