|
|
@@ -1,14 +1,16 @@
|
|
1
|
1
|
/* Service Register Config 页面样式 */
|
|
2
|
|
-/* 采用与工作示例相同的布局结构 */
|
|
3
|
2
|
|
|
4
|
|
-/* 组件宿主元素 - 继承父容器高度 */
|
|
|
3
|
+/* ==================== 页面容器 ==================== */
|
|
|
4
|
+/* 专门为 sticky header 设置的容器 */
|
|
5
|
5
|
:host {
|
|
6
|
6
|
display: block;
|
|
7
|
7
|
height: 100%;
|
|
8
|
8
|
}
|
|
9
|
9
|
|
|
10
|
|
-/* ==================== 页面容器 ==================== */
|
|
11
|
10
|
.page-container {
|
|
|
11
|
+ /* 左右间距 */
|
|
|
12
|
+ padding-left: 16px;
|
|
|
13
|
+ padding-right: 16px;
|
|
12
|
14
|
display: flex;
|
|
13
|
15
|
flex-direction: column;
|
|
14
|
16
|
height: 100%;
|
|
|
@@ -18,172 +20,20 @@
|
|
18
|
20
|
position: relative; /* 为sticky定位创建定位上下文 */
|
|
19
|
21
|
}
|
|
20
|
22
|
|
|
21
|
|
-/* ==================== 工具条内容样式 ==================== */
|
|
22
|
|
-.page-toolbar {
|
|
23
|
|
- display: flex;
|
|
24
|
|
- justify-content: space-between;
|
|
25
|
|
- align-items: center;
|
|
26
|
|
- width: 100%;
|
|
27
|
|
- min-height: 48px; /* 与组件最小高度匹配 */
|
|
28
|
|
- padding: 0 16px; /* 与组件toolbar-area内边距匹配 */
|
|
29
|
|
-}
|
|
30
|
|
-
|
|
31
|
|
-.toolbar-content {
|
|
32
|
|
- display: flex;
|
|
33
|
|
- align-items: center;
|
|
34
|
|
-}
|
|
35
|
|
-
|
|
36
|
|
-/* 标题区域 */
|
|
37
|
|
-.title-section {
|
|
38
|
|
- display: flex;
|
|
39
|
|
- align-items: center;
|
|
40
|
|
- gap: 8px;
|
|
41
|
|
-}
|
|
42
|
|
-
|
|
43
|
|
-.title-icon {
|
|
44
|
|
- color: #3b82f6; /* 蓝色图标 */
|
|
45
|
|
- font-size: 1.5rem;
|
|
46
|
|
- width: 1.5rem;
|
|
47
|
|
- height: 1.5rem;
|
|
48
|
|
-}
|
|
49
|
|
-
|
|
50
|
|
-.page-title {
|
|
51
|
|
- margin: 0;
|
|
52
|
|
- font-size: 1.25rem; /* text-xl */
|
|
53
|
|
- font-weight: 600; /* font-semibold */
|
|
54
|
|
- color: #1f2937; /* text-gray-800 */
|
|
55
|
|
-}
|
|
56
|
|
-
|
|
57
|
|
-/* 按钮区域 */
|
|
58
|
|
-.button-section {
|
|
59
|
|
- display: flex;
|
|
60
|
|
- gap: 8px;
|
|
61
|
|
-}
|
|
62
|
|
-
|
|
63
|
|
-/* 按钮基础样式 */
|
|
64
|
|
-.btn {
|
|
65
|
|
- display: inline-flex;
|
|
66
|
|
- align-items: center;
|
|
67
|
|
- gap: 4px;
|
|
68
|
|
- padding: 0.5rem 1rem; /* px-4 py-2 */
|
|
69
|
|
- border: none;
|
|
70
|
|
- border-radius: 0.375rem; /* rounded-md */
|
|
71
|
|
- font-weight: 500;
|
|
72
|
|
- cursor: pointer;
|
|
73
|
|
- transition: background-color 0.2s;
|
|
74
|
|
- outline: none;
|
|
75
|
|
-}
|
|
76
|
|
-
|
|
77
|
|
-.btn:disabled {
|
|
78
|
|
- opacity: 0.5;
|
|
79
|
|
- cursor: not-allowed;
|
|
80
|
|
-}
|
|
81
|
|
-
|
|
82
|
|
-/* 主要按钮 */
|
|
83
|
|
-.btn-primary {
|
|
84
|
|
- background-color: #2563eb; /* bg-blue-600 */
|
|
85
|
|
- color: white;
|
|
86
|
|
-}
|
|
87
|
|
-
|
|
88
|
|
-.btn-primary:hover:not(:disabled) {
|
|
89
|
|
- background-color: #1d4ed8; /* hover:bg-blue-700 */
|
|
90
|
|
-}
|
|
91
|
|
-
|
|
92
|
|
-.btn-primary:focus {
|
|
93
|
|
- box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5); /* focus:ring-2 focus:ring-blue-500 */
|
|
94
|
|
-}
|
|
95
|
|
-
|
|
96
|
|
-/* 次要按钮 */
|
|
97
|
|
-.btn-secondary {
|
|
98
|
|
- background-color: #e5e7eb; /* bg-gray-200 */
|
|
99
|
|
- color: #1f2937; /* text-gray-800 */
|
|
100
|
|
-}
|
|
101
|
|
-
|
|
102
|
|
-.btn-secondary:hover:not(:disabled) {
|
|
103
|
|
- background-color: #d1d5db; /* hover:bg-gray-300 */
|
|
104
|
|
-}
|
|
105
|
|
-
|
|
106
|
|
-.btn-secondary:focus {
|
|
107
|
|
- box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5); /* focus:ring-2 focus:ring-gray-500 */
|
|
108
|
|
-}
|
|
109
|
|
-
|
|
110
|
|
-/* 旋转加载指示器 */
|
|
111
|
|
-.spinner {
|
|
112
|
|
- display: inline-block;
|
|
113
|
|
- width: 1rem;
|
|
114
|
|
- height: 1rem;
|
|
115
|
|
- border: 2px solid currentColor;
|
|
116
|
|
- border-radius: 50%;
|
|
117
|
|
- border-top-color: transparent;
|
|
118
|
|
- animation: spin 1s linear infinite;
|
|
119
|
|
-}
|
|
120
|
|
-
|
|
121
|
|
-@keyframes spin {
|
|
122
|
|
- to { transform: rotate(360deg); }
|
|
123
|
|
-}
|
|
124
|
|
-
|
|
125
|
|
-/* ==================== 提示区域样式 ==================== */
|
|
126
|
|
-.page-hint .hint-section {
|
|
127
|
|
- padding: 1rem; /* p-4 */
|
|
128
|
|
- background-color: #eff6ff; /* bg-blue-50 */
|
|
129
|
|
- border-bottom: 1px solid #dbeafe; /* border-blue-100 */
|
|
130
|
|
-}
|
|
131
|
|
-
|
|
132
|
|
-.hint-content {
|
|
133
|
|
- font-size: 0.875rem; /* text-sm */
|
|
134
|
|
- color: #1e40af; /* text-blue-800 */
|
|
135
|
|
-}
|
|
136
|
|
-
|
|
137
|
|
-.hint-content p {
|
|
138
|
|
- margin: 0;
|
|
139
|
|
- font-weight: 500; /* font-medium */
|
|
140
|
|
-}
|
|
141
|
|
-
|
|
142
|
|
-/* 调试信息区域 */
|
|
143
|
|
-.debug-section {
|
|
144
|
|
- padding: 0.75rem; /* p-3 */
|
|
145
|
|
- background-color: #fffbeb; /* bg-amber-50 */
|
|
146
|
|
- border-bottom: 1px solid #fef3c7; /* border-amber-100 */
|
|
147
|
|
- display: grid;
|
|
148
|
|
- grid-template-columns: 1fr;
|
|
149
|
|
- gap: 0.75rem; /* gap-3 */
|
|
150
|
|
-}
|
|
151
|
|
-
|
|
152
|
|
-@media (min-width: 768px) {
|
|
153
|
|
- .debug-section {
|
|
154
|
|
- grid-template-columns: repeat(3, 1fr); /* md:grid-cols-3 */
|
|
155
|
|
- }
|
|
156
|
|
-}
|
|
157
|
|
-
|
|
158
|
|
-.debug-item {
|
|
159
|
|
- font-size: 0.875rem; /* text-sm */
|
|
160
|
|
- color: #92400e; /* text-amber-800 */
|
|
161
|
|
-}
|
|
162
|
|
-
|
|
163
|
|
-.debug-label {
|
|
164
|
|
- font-weight: 500; /* font-medium */
|
|
165
|
|
-}
|
|
166
|
|
-
|
|
167
|
|
-.debug-value {
|
|
168
|
|
- margin-left: 0.5rem; /* ml-2 */
|
|
169
|
|
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
170
|
|
-}
|
|
171
|
|
-
|
|
172
|
23
|
/* ==================== 内容区域 ==================== */
|
|
173
|
24
|
/* 内部滚动容器,确保 sticky header 能正确检测滚动 */
|
|
174
|
|
-/* 采用工作示例的精确配置 */
|
|
175
|
25
|
.content-area {
|
|
176
|
|
- flex: 1 1 0%; /* 工作示例使用的精确值 */
|
|
|
26
|
+ flex: 1 1 0%; /* 占据剩余空间 */
|
|
177
|
27
|
overflow-y: auto !important; /* 确保优先级 */
|
|
178
|
28
|
overflow-x: hidden; /* 防止水平滚动 */
|
|
179
|
|
- padding: 16px;
|
|
180
|
|
- background: white;
|
|
|
29
|
+ border: 0px solid #ddd;
|
|
|
30
|
+ background: rgb(247, 245, 245);
|
|
181
|
31
|
min-height: 0; /* flex容器关键设置,防止内容溢出 */
|
|
182
|
32
|
-webkit-overflow-scrolling: touch; /* 移动端平滑滚动 */
|
|
183
|
33
|
position: relative; /* 创建新的堆叠上下文 */
|
|
184
|
34
|
}
|
|
185
|
35
|
|
|
186
|
|
-/* Tabulator 表格样式 */
|
|
|
36
|
+/* ==================== Tabulator 表格样式 ==================== */
|
|
187
|
37
|
#tabulator-table {
|
|
188
|
38
|
border: 1px solid #ddd;
|
|
189
|
39
|
border-radius: 4px;
|
|
|
@@ -191,12 +41,19 @@
|
|
191
|
41
|
min-height: 600px; /* 确保有足够内容产生滚动 */
|
|
192
|
42
|
}
|
|
193
|
43
|
|
|
194
|
|
-/* 旋转图标 - 用于刷新按钮加载状态 */
|
|
195
|
|
-.spin-icon {
|
|
196
|
|
- animation: spin 1s linear infinite;
|
|
|
44
|
+/* ==================== 响应式调整 ==================== */
|
|
|
45
|
+@media (max-width: 768px) {
|
|
|
46
|
+ .content-area {
|
|
|
47
|
+ padding: 12px;
|
|
|
48
|
+ }
|
|
|
49
|
+
|
|
|
50
|
+ #tabulator-table {
|
|
|
51
|
+ min-height: 400px;
|
|
|
52
|
+ }
|
|
197
|
53
|
}
|
|
198
|
54
|
|
|
199
|
|
-@keyframes spin {
|
|
200
|
|
- from { transform: rotate(0deg); }
|
|
201
|
|
- to { transform: rotate(360deg); }
|
|
|
55
|
+@media (max-width: 480px) {
|
|
|
56
|
+ .content-area {
|
|
|
57
|
+ padding: 8px;
|
|
|
58
|
+ }
|
|
202
|
59
|
}
|