xjsc0 commited on
Commit
feff707
·
1 Parent(s): f681ff6
Files changed (1) hide show
  1. app.py +36 -22
app.py CHANGED
@@ -362,30 +362,44 @@ CUSTOM_CSS = """
362
  font-weight: 600;
363
  }
364
 
365
- /* ========== 2. Section labels: left accent bar instead of bottom border ========== */
366
- .section-title,
367
- .section-title * {
368
- border: none !important;
369
- outline: none !important;
370
- box-shadow: none !important;
371
- }
372
- .section-title {
373
- font-family: 'DM Sans', sans-serif !important;
374
- font-weight: 700 !important;
375
- font-size: 1rem !important;
 
 
 
 
 
376
  letter-spacing: 0.06em;
377
  text-transform: uppercase;
378
- color: var(--primary) !important;
379
- /* Single left accent bar — reset ALL other borders first */
380
- border-left: 4px solid var(--primary-warm) !important;
381
- border-top: none !important;
382
- border-right: none !important;
383
- border-bottom: none !important;
384
- padding: 3px 0 3px 10px !important;
385
- margin-bottom: 14px !important;
386
- background: linear-gradient(90deg, rgba(254,158,199,0.08) 0%, transparent 70%) !important;
387
- border-radius: 0 4px 4px 0 !important;
388
  display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
  }
390
 
391
  /* ---------- Example tabs ---------- */
@@ -516,7 +530,7 @@ def build_ui():
516
  # ================================================================
517
  with gr.Row(equal_height=True):
518
  with gr.Column(scale=1):
519
- gr.Markdown("#### 🎙️ 音频输入 / Audio Inputs")
520
  ref_audio = gr.Audio(
521
  label="参考音频 / Reference Audio(提供音色 / Provides timbre)",
522
  type="filepath",
 
362
  font-weight: 600;
363
  }
364
 
365
+ /* ========== 2. Section labels: left accent bar ========== */
366
+
367
+ /*
368
+ 用更高特异性的选择器替代大量 !important
369
+ 假设父容器有 .resume-container 或类似的包裹类
370
+ */
371
+ .resume-container .section-title {
372
+ /* Reset */
373
+ border: none;
374
+ outline: none;
375
+ box-shadow: none;
376
+
377
+ /* Typography */
378
+ font-family: 'DM Sans', sans-serif;
379
+ font-weight: 700;
380
+ font-size: 1rem;
381
  letter-spacing: 0.06em;
382
  text-transform: uppercase;
383
+ color: var(--primary);
384
+
385
+ /* Layout */
 
 
 
 
 
 
 
386
  display: block;
387
+ padding: 3px 0 3px 10px;
388
+ margin-bottom: 14px;
389
+
390
+ /* Left accent bar — 用 border-left 单独声明,避免被 border shorthand 覆盖 */
391
+ border-left: 4px solid var(--primary-warm);
392
+
393
+ /* Background & shape */
394
+ background: linear-gradient(90deg, rgb(254 158 199 / 8%) 0%, transparent 70%);
395
+ border-radius: 0 4px 4px 0;
396
+ }
397
+
398
+ /* 子元素继承重置,避免外部样式污染 */
399
+ .resume-container .section-title * {
400
+ border: inherit;
401
+ outline: none;
402
+ box-shadow: none;
403
  }
404
 
405
  /* ---------- Example tabs ---------- */
 
530
  # ================================================================
531
  with gr.Row(equal_height=True):
532
  with gr.Column(scale=1):
533
+ gr.Markdown("#### 🎙️ 音频输入 / Audio Inputs", elem_classes="section-title")
534
  ref_audio = gr.Audio(
535
  label="参考音频 / Reference Audio(提供音色 / Provides timbre)",
536
  type="filepath",