seeder-st2110-components 1.5.9 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seeder-st2110-components",
3
- "version": "1.5.9",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -176,10 +176,6 @@
176
176
  }
177
177
  }
178
178
 
179
- .flex {
180
- display: flex;
181
- }
182
-
183
179
  .block {
184
180
  display: block;
185
181
  }
@@ -189,6 +185,71 @@
189
185
  margin-right: auto;
190
186
  }
191
187
 
188
+ .common-header {
189
+ padding: 0 16px;
190
+ height: 50px;
191
+ background-color: #1F1F1F;
192
+ color: rgba(255, 255, 255, 0.85);
193
+ .header-controls {
194
+ display: flex;
195
+ gap: 12px;
196
+ }
197
+ .control-icon {
198
+ width: 32px;
199
+ padding-inline: 6px;
200
+ padding-block: 2px;
201
+ }
202
+ }
203
+
204
+ .usage-container {
205
+ display: flex;
206
+ align-items: center;
207
+ height: 32px;
208
+ color: rgba(255, 255, 255, 0.65);
209
+
210
+ .usage-item-wrapper {
211
+ display: flex;
212
+ justify-content: center;
213
+ align-items: center;
214
+ height: 100%;
215
+ width: 90px; /* 固定宽度 */
216
+ min-width: 90px; /* 防止压缩 */
217
+ max-width: 90px; /* 防止扩展 */
218
+ position: relative;
219
+ padding: 0 8px;
220
+ flex-shrink: 0; /* 禁止收缩 */
221
+ }
222
+
223
+ /* 使用伪元素分隔线 */
224
+ .usage-item-wrapper:not(:last-child)::after {
225
+ content: '';
226
+ position: absolute;
227
+ right: 0;
228
+ top: 50%;
229
+ transform: translateY(-50%);
230
+ width: 1px;
231
+ height: 16px;
232
+ background: rgba(253, 253, 253, 0.42);
233
+ }
234
+
235
+ .usage-item {
236
+ display: flex;
237
+ align-items: center;
238
+ gap: 4px;
239
+ width: 100%;
240
+ justify-content: center;
241
+ }
242
+
243
+ .usage-value {
244
+ display: inline-block;
245
+ min-width: 2.5rem; /* 40px */
246
+ text-align: right;
247
+ font-family: inherit;
248
+ font-variant-numeric: inherit;
249
+ letter-spacing: 0.5px; /* 字母间距,使数字更清晰 */
250
+ }
251
+ }
252
+
192
253
  .text-xl {
193
254
  font-size: 1.25rem; /* 20px */
194
255
  line-height: 1.75rem; /* 28px */
@@ -208,18 +269,6 @@
208
269
  color: rgb(163 163 163);
209
270
  }
210
271
 
211
- .inline-block {
212
- display: inline-block;
213
- }
214
-
215
- .w-10 {
216
- width: 2.5rem; /* 40px */
217
- }
218
-
219
- .text-center {
220
- text-align: center;
221
- }
222
-
223
272
  .hidden {
224
273
  display: none;
225
274
  }