-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhost-dialog.css
More file actions
165 lines (146 loc) · 5.82 KB
/
host-dialog.css
File metadata and controls
165 lines (146 loc) · 5.82 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* Atomic Pro Desk / Vintage Hardware Dialogs */
.modal-overlay {
position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
background: rgba(43, 40, 37, 0.6); backdrop-filter: blur(4px);
}
.modal-overlay.is-open { display: flex; }
.modal-dialog {
width: min(420px, calc(100vw - 32px)); padding: 20px 20px 16px;
border: 1px solid #8F8A80; border-radius: 4px; background: #ECE8DE;
box-shadow: 0 20px 48px rgba(0,0,0,0.2), inset 0 1px 0 #FFF;
}
.modal-dialog--compact { width: min(340px, calc(100vw - 32px)); }
.modal-title {
margin-bottom: 8px; color: #2B2825; font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;
}
.modal-hint { margin-bottom: 16px; color: #666158; font-size: 11px; line-height: 1.5; }
.modal-field { display: flex; flex-direction: column; gap: 8px; }
.modal-field + .modal-field { margin-top: 14px; }
.modal-label { color: #666158; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;}
.modal-summary {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 12px;
border: 1px solid #CFC8BB;
border-radius: 2px;
background: #F8F5EE;
box-shadow: inset 0 1px 1px rgba(255,255,255,0.8);
}
.modal-summary-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
}
.modal-summary-label {
color: #666158;
font-family: 'Oswald', sans-serif;
font-size: 11px;
letter-spacing: 0.4px;
text-transform: uppercase;
}
.modal-summary-value {
color: #2B2825;
font-size: 12px;
text-align: right;
}
.modal-select {
width: 100%; min-height: 32px; padding: 0 10px; border: 1px solid #C2BCAE; border-radius: 2px;
background: #F8F5EE; color: #2B2825; font: inherit; outline: none; box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.modal-select:focus { border-color: #3B8B88; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-btn {
min-width: 84px; height: 32px; border: 1px solid #C2BCAE; border-radius: 2px; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.1s;
}
.modal-btn.secondary {
background: linear-gradient(180deg, #FFFFFF 0%, #F0EDE5 100%); color: #2B2825; box-shadow: 0 1px 1px rgba(0,0,0,0.05), inset 0 1px 0 #FFF;
}
.modal-btn.secondary:hover { background: #E1DDD4; border-color: #8F8A80; }
.modal-btn.primary {
background: #3B8B88; color: #FFF; border: 1px solid #276B69; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(59,139,136,0.2);
}
.modal-btn.primary:hover:not(:disabled) { background: #327A77; }
.modal-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none;}
.modal-progress { margin-top: 16px; }
.modal-progress-bar { height: 6px; overflow: hidden; border-radius: 3px; background: #CCC5B7; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);}
.modal-progress-fill { width: 18%; height: 100%; border-radius: 3px; background: #3B8B88; transition: width 0.2s ease; }
.export-progress-text { margin-top: 6px; font-size: 11px; color: #7A7468; min-height: 16px; }
.export-progress-section { margin-top: 8px; }
.export-warning-text { font-size: 11px; color: #C0392B; min-height: 0; display: none; margin-top: 10px; }
.export-warning-text.visible { display: block; }
.export-actions { flex-wrap: wrap; }
.export-actions .modal-btn { min-width: 0; flex: 1 1 auto; }
.export-actions #btn-export-audio-cancel { flex: 0 0 auto; min-width: 56px; }
.modal-overlay#export-audio-modal.visible { display: flex; }
body.modal-open .app-container, body.modal-open .menubar, body.modal-open #status-bar { user-select: none; }
/* =============================================================
暗色模式覆盖:恢复弹窗、MIDI 导入、声库 / 语言选择、导出 等所有
走 .modal-dialog / .modal-btn 系列的弹窗都靠这一段反相
============================================================= */
[data-theme='dark'] .modal-overlay {
background: rgba(0, 0, 0, 0.6);
}
[data-theme='dark'] .modal-dialog {
background: var(--bg-1);
border-color: var(--border-light);
color: var(--text-main);
box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme='dark'] .modal-title {
color: var(--text-main);
}
[data-theme='dark'] .modal-hint,
[data-theme='dark'] .modal-label,
[data-theme='dark'] .modal-summary-label,
[data-theme='dark'] .export-progress-text {
color: var(--text-muted);
}
[data-theme='dark'] .modal-summary {
background: var(--bg-2);
border-color: var(--border-color);
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}
[data-theme='dark'] .modal-summary-value {
color: var(--text-main);
}
[data-theme='dark'] .modal-select,
[data-theme='dark'] .modal-input {
background: var(--bg-3);
border-color: var(--border-color);
color: var(--text-main);
}
[data-theme='dark'] .modal-select:focus,
[data-theme='dark'] .modal-input:focus {
border-color: var(--accent-color);
}
[data-theme='dark'] .modal-btn {
border-color: var(--border-color);
}
[data-theme='dark'] .modal-btn.secondary {
background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
color: var(--text-main);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme='dark'] .modal-btn.secondary:hover:not(:disabled) {
background: var(--bg-4);
border-color: var(--border-light);
}
[data-theme='dark'] .modal-btn.primary {
background: var(--accent-color);
border-color: rgba(0, 0, 0, 0.4);
}
[data-theme='dark'] .modal-btn.primary:hover:not(:disabled) {
filter: brightness(1.1);
}
[data-theme='dark'] .modal-progress-bar {
background: var(--bg-3);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
[data-theme='dark'] .modal-progress-fill {
background: var(--accent-color);
}
[data-theme='dark'] .export-warning-text {
color: #DD5C4E;
}