File size: 1,445 Bytes
4b359d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Inference Comparator - カスタムスタイル */

/* フォント改善・視認性向上 */
.gradio-container {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

.gradio-container h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
}

.gradio-container h2,
.gradio-container h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.gradio-container label {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.gradio-container .prose {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.gradio-container button {
    font-weight: 500 !important;
}

/* Radioボタン disable時のスタイル(薄い色に) */
.gradio-container .gr-radio:has(input:disabled) label,
.gradio-container input[type="radio"]:disabled + label,
.gradio-container .gr-form > div:has(input:disabled) {
    opacity: 0.4 !important;
    color: #999 !important;
}

/* Gradio 4.x系のRadioグループ disable時 */
.gradio-container [data-testid="radio-group"]:has(input:disabled) {
    opacity: 0.4 !important;
}

/* より汎用的なdisabled状態のスタイル */
.gradio-container .svelte-1gfkn6j:has(input:disabled),
.gradio-container .block:has(input:disabled) label {
    opacity: 0.4 !important;
    color: #aaa !important;
}