-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
211 lines (182 loc) · 3.92 KB
/
styles.css
File metadata and controls
211 lines (182 loc) · 3.92 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/* 基本布局样式 */
body {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: Arial, sans-serif;
}
h1, h2 {
color: #333;
}
/* 输入控件样式 */
div {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
textarea {
border: 1px solid #ddd;
border-radius: 4px;
resize: vertical;
}
/* 按钮组样式 */
.button-group {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
button {
padding: 12px 24px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button.upload {
background-color: #ccc;
color: #ffffff;
padding: 5px 15px;
position: relative;
float: right;
margin: 0 0 10px 0;
}
button:hover {
background-color: #45a049;
}
button.upload:hover {
background-color: #000000;
}
/* 状态和提示区域样式 */
pre {
background-color: #f5f5f5;
padding: 15px;
border-radius: 4px;
white-space: pre-wrap;
word-wrap: break-word;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.6;
overflow-y: visible;
}
pre.processing {
background-color: #fff3cd; /* 淡黄色背景 */
animation: processingPulse 2s ease-in-out infinite;
}
@keyframes processingPulse {
0% { background-color: #fff9e6; }
50% { background-color: #ffe8b3; }
100% { background-color: #fff9e6; }
}
pre.completed {
background-color: #d4edda; /* 淡绿色背景 */
}
/* 状态标题样式 */
.status-header {
display: flex;
align-items: center;
gap: 10px;
}
.textarea-container textarea {
width: 100%;
margin-bottom: 0; /* 移除底部边距 */
}
.upload-controls {
margin-bottom: 10px;
}
.textarea-wrapper {
width: 100%;
}
textarea {
width: 100%;
padding: 10px;
box-sizing: border-box;
}
/* 标签页容器样式 */
.tab-container {
position: relative;
width: 100%;
margin-top: 20px;
min-height: 200px;
}
/* 标签按钮容器 */
.tab-buttons {
display: flex;
border-bottom: 2px solid #454ea0;
margin-bottom: 20px;
}
/* 标签按钮样式 */
.tab-button {
padding: 10px 20px;
background: #74b7dc;
border: 1px solid #74b7dc;
border-bottom: 2px solid #74b7dc;
margin-right: 4px;
border-radius: 8px 8px 0 0;
cursor: pointer;
position: relative;
top: 2px;
}
.tab-button:hover {
background: #2510e1;
}
.tab-button.active {
background: #454ea0;
border: 1px solid #454ea0;
border-bottom: none;
z-index: 1;
}
.tab-button.active:hover {
background: #2510e1;
}
/* 标签内容面板 */
.tab-content {
display: none;
}
/* 激活状态的内容面板 */
.tab-content.active {
display: block;
}
.download-btn {
background-color: #007bff; /* 蓝色背景 */
color: white; /* 白色文字 */
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
margin: 10px auto; /* 上下边距10px,左右自动实现居中 */
display: none; /* 默认隐藏 */
}
.download-btn:hover {
background-color: #0056b3; /* 鼠标悬停时的深蓝色 */
}
/* 如果按钮的父容器没有设置文本居中,还需要添加以下样式 */
#downloadHintBtn, #downloadEvalBtn {
display: block; /* 当显示时使用块级元素 */
margin: 10px auto; /* 上下边距10px,左右自动实现居中 */
}
/* 添加处理中的遮罩层样式 */
.processing-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(128, 128, 128, 0.5);
z-index: 1000;
display: none;
pointer-events: all;
cursor: not-allowed;
border-radius: 4px;
}