File size: 5,400 Bytes
98f9d27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
02fd83a
 
 
 
 
 
02b994b
 
 
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
/* A compact editor workspace, using Gradio's theme variables in both color modes. */
.gradio-container {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 28px 32px 20px !important;
}
.gradio-container main { padding: 0 !important; min-width: 0 !important; }
.gradio-container .contain { max-width: none !important; min-width: 0 !important; }
gradio-app { min-width: 0; }
#page-header { margin-bottom: 8px; }
#page-header h1 { font-size: 28px; letter-spacing: -0.8px; margin-bottom: 8px; }
#page-header p { color: var(--body-text-color-subdued); font-size: 14px; }
.workspace-section {
    border: 1px solid var(--border-color-primary) !important;
    border-radius: 12px !important;
    background: var(--background-fill-primary);
    padding: 20px !important;
    gap: 16px !important;
}
#input-section .section-heading h2, #analysis-section .section-heading h2 { font-size: 18px; margin: 0 !important; letter-spacing: -0.2px; }
#input-workspace { gap: 24px; align-items: flex-start; }
#source-pane { min-width: 0 !important; gap: 12px; }
#input-tabs > .tab-container { margin-bottom: 12px; }
#input-tabs > .tabitem { padding: 0 !important; border: none !important; }
#examples-heading p { font-size: 12px; font-weight: 600; color: var(--body-text-color-subdued); }
#example-buttons { gap: 10px; }
#example-buttons button {
    background: var(--background-fill-primary);
    border: 1px solid var(--border-color-primary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    padding: 12px 14px;
    min-height: 48px;
    height: 48px;
    line-height: 1.35;
    transition: border-color 120ms ease, background 120ms ease;
}
#example-buttons button:hover {
    border-color: var(--color-accent);
    background: var(--background-fill-secondary);
}
#source-editor { border-radius: 8px; }
#source-editor .cm-editor, .analysis-code .cm-editor { font-size: 13px; }
#source-editor .cm-line, .analysis-code .cm-line { line-height: 1.65; }
#editor-actions { justify-content: space-between; align-items: center; gap: 12px; }
#editor-actions button { font-size: 14px; font-weight: 600; flex-grow: 0 !important; flex-basis: auto !important; min-height: 40px; }
#assemble-action { min-width: 148px !important; }
#settings-sidebar {
    flex-grow: 0 !important;
    flex-basis: 248px !important;
    min-width: 224px !important;
    border-radius: 8px;
    background: var(--background-fill-secondary);
    padding: 16px;
    gap: 18px;
}
#settings-sidebar .form { background: transparent; border: none; gap: 18px; }
#settings-heading p { font-size: 13px; font-weight: 600; }
#settings-sidebar .block:not(.accordion) {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}
#settings-sidebar .block > label > span,
#settings-sidebar .block > span { font-size: 12px; font-weight: 500; }
#settings-sidebar .wrap { gap: 6px; }
#settings-sidebar input:focus-visible, button:focus-visible { outline-offset: 3px; }
#assembly-errors { border-color: var(--error-border-color); background: var(--error-background-fill); }
#analysis-tabs > .tabitem { padding: 12px 0 0 !important; border: none !important; }
#analysis-tabs .tab-container { flex-wrap: wrap; min-width: 0; }
#analysis-tabs, #input-tabs, #analysis-tabs .tab-wrapper { min-width: 0; max-width: 100%; }
#analysis-tabs .tab-container button { font-size: 13px; }
@media (max-width: 760px) {
    .gradio-container { padding: 20px 16px !important; }
    .workspace-section { padding: 14px !important; }
    #input-workspace { gap: 16px; }
    #settings-sidebar { flex-basis: 100% !important; min-width: 0 !important; }
    #example-buttons { gap: 8px; }
    #example-buttons button { min-width: 0 !important; flex-basis: 100% !important; padding: 10px 12px; }
    #source-pane { flex-basis: 100% !important; }
    #editor-actions button { min-width: 0 !important; }
    #analysis-tabs .tab-container button { padding: 9px 10px; }
}

/* Keep every result view reachable on small screens. */
#analysis-tabs .tab-wrapper { height: auto !important; }
#analysis-tabs [role="tablist"] { height: auto !important; max-height: none; overflow: visible; }
#source-help { border: none !important; background: transparent !important; padding: 0 !important; overflow: visible !important; }
#source-help > .label-wrap {
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    padding: 6px 0 !important;
    font-size: 12px;
    color: var(--body-text-color-subdued);
}
#assembly-errors textarea { background: transparent; font-family: var(--font-mono); font-size: 12px; }
#builder { border: 1px solid var(--border-color-primary) !important; border-radius: 8px !important; background: var(--background-fill-secondary); }
#builder > .label-wrap { font-size: 13px; font-weight: 600; }
#builder-help p { font-size: 12px; color: var(--body-text-color-subdued); }
#builder-opcode, #builder-modifiers { gap: 10px; flex-wrap: wrap; }
#builder-opcode > *, #builder-modifiers > * { flex: 1 1 140px !important; }
#builder-generate { width: fit-content; min-width: 148px; align-self: flex-end; }
.ir-graph { overflow: auto; max-height: 720px; }
.ir-graph svg { display: block; margin: 0 auto; max-width: none; height: auto; }
.ir-graph a { text-decoration: none !important; }