NN-11 commited on
Commit
0688b17
·
verified ·
1 Parent(s): 9f9519e

Create static/uploads/style.css

Browse files
Files changed (1) hide show
  1. static/uploads/style.css +238 -0
static/uploads/style.css ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --primary-color: #4a90e2;
3
+ --success-color: #4caf50;
4
+ --teacher-color: #ff9800;
5
+ --student-color: #2196f3;
6
+ --bg-color: #f4f7f6;
7
+ --text-color: #333;
8
+ --header-height: 60px;
9
+ --danger-color: #ff4d4d;
10
+ }
11
+
12
+ body {
13
+ font-family: 'Segoe UI', system-ui, sans-serif;
14
+ background: var(--bg-color);
15
+ color: var(--text-color);
16
+ margin: 0;
17
+ padding-top: calc(var(--header-height) + 20px);
18
+ padding-left: 20px;
19
+ padding-right: 20px;
20
+ }
21
+
22
+ /* 顶部导航 */
23
+ .top-header {
24
+ position: fixed;
25
+ top: 0;
26
+ left: 0;
27
+ right: 0;
28
+ height: var(--header-height);
29
+ background: white;
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: center;
33
+ padding: 0 30px;
34
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
35
+ z-index: 1001;
36
+ }
37
+
38
+ .logo {
39
+ font-size: 1.2rem;
40
+ font-weight: bold;
41
+ color: var(--primary-color);
42
+ }
43
+
44
+ .user-profile {
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 12px;
48
+ }
49
+
50
+ .user-avatar {
51
+ width: 38px;
52
+ height: 38px;
53
+ border-radius: 50%;
54
+ border: 2px solid #eee;
55
+ }
56
+
57
+ /* 标签页 */
58
+ .nav-tabs {
59
+ display: flex;
60
+ gap: 10px;
61
+ margin-bottom: 20px;
62
+ border-bottom: 2px solid #ddd;
63
+ padding-bottom: 10px;
64
+ }
65
+
66
+ .tab-btn {
67
+ padding: 10px 25px;
68
+ border: none;
69
+ background: #e0e0e0;
70
+ cursor: pointer;
71
+ border-radius: 5px;
72
+ font-weight: bold;
73
+ transition: 0.3s;
74
+ }
75
+
76
+ .tab-btn.active {
77
+ background: var(--primary-color);
78
+ color: white;
79
+ }
80
+
81
+ .section {
82
+ display: none;
83
+ background: white;
84
+ padding: 25px;
85
+ border-radius: 12px;
86
+ box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
87
+ }
88
+
89
+ .section.active {
90
+ display: block;
91
+ }
92
+
93
+ /* 邀请码卡片 */
94
+ .invite-box-container {
95
+ display: grid;
96
+ grid-template-columns: 1fr 1fr;
97
+ gap: 20px;
98
+ margin-bottom: 30px;
99
+ }
100
+
101
+ .invite-card {
102
+ padding: 20px;
103
+ border-radius: 10px;
104
+ border: 1px solid #eee;
105
+ transition: 0.3s;
106
+ }
107
+
108
+ .card-t {
109
+ background: #fffcf5;
110
+ border-left: 5px solid var(--teacher-color);
111
+ }
112
+
113
+ .card-s {
114
+ background: #f5faff;
115
+ border-left: 5px solid var(--student-color);
116
+ }
117
+
118
+ .code-display {
119
+ font-family: monospace;
120
+ font-size: 1.1rem;
121
+ font-weight: bold;
122
+ background: rgba(255, 255, 255, 0.8);
123
+ padding: 8px;
124
+ border-radius: 4px;
125
+ border: 1px dashed #ccc;
126
+ display: block;
127
+ margin: 10px 0;
128
+ }
129
+
130
+ .action-btn {
131
+ padding: 8px 15px;
132
+ border-radius: 5px;
133
+ border: none;
134
+ cursor: pointer;
135
+ font-weight: bold;
136
+ }
137
+
138
+ .btn-copy {
139
+ background: white;
140
+ border: 1px solid #ddd;
141
+ }
142
+
143
+ .btn-add {
144
+ background: var(--success-color);
145
+ color: white;
146
+ }
147
+
148
+ /* 表格样式 */
149
+ table {
150
+ width: 100%;
151
+ border-collapse: collapse;
152
+ margin-top: 20px;
153
+ }
154
+
155
+ th,
156
+ td {
157
+ padding: 15px;
158
+ text-align: left;
159
+ border-bottom: 1px solid #eee;
160
+ }
161
+
162
+ th {
163
+ background: #fafafa;
164
+ font-size: 0.9em;
165
+ color: #666;
166
+ }
167
+
168
+ .role-badge {
169
+ padding: 4px 10px;
170
+ border-radius: 20px;
171
+ font-size: 0.75em;
172
+ font-weight: bold;
173
+ }
174
+
175
+ .role-teacher {
176
+ background: #fff3e0;
177
+ color: var(--teacher-color);
178
+ }
179
+
180
+ .role-student {
181
+ background: #e3f2fd;
182
+ color: var(--student-color);
183
+ }
184
+
185
+ .dept-link {
186
+ color: var(--primary-color);
187
+ text-decoration: none;
188
+ font-weight: bold;
189
+ cursor: pointer;
190
+ }
191
+
192
+ .dept-link:hover {
193
+ text-decoration: underline;
194
+ }
195
+
196
+ .group-name {
197
+ font-size: 1.1em;
198
+ color: var(--primary-color);
199
+ font-weight: bold;
200
+ }
201
+
202
+ .count-badge {
203
+ background: #eee;
204
+ padding: 2px 8px;
205
+ border-radius: 10px;
206
+ font-size: 0.85em;
207
+ color: #666;
208
+ }
209
+
210
+ /* 模态框样式 */
211
+ #deviceModal {
212
+ display: none;
213
+ position: fixed;
214
+ top: 0;
215
+ left: 0;
216
+ width: 100%;
217
+ height: 100%;
218
+ background: rgba(0, 0, 0, 0.5);
219
+ z-index: 2000;
220
+ align-items: center;
221
+ justify-content: center;
222
+ }
223
+
224
+ /* 詳情模式下的 QR 容器 */
225
+ .qr-detail-box {
226
+ background: #fff;
227
+ padding: 20px;
228
+ border-radius: 12px;
229
+ border: 1px dashed #ccc;
230
+ display: flex;
231
+ flex-direction: column;
232
+ align-items: center;
233
+ margin-bottom: 20px;
234
+ }
235
+
236
+ #qrcode img {
237
+ margin: 0 auto;
238
+ }