stat2025 commited on
Commit
c9d3269
·
verified ·
1 Parent(s): 1f4964b

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +284 -56
style.css CHANGED
@@ -1,75 +1,303 @@
1
  :root{
2
- --bg:#f6f7fb; --card:#ffffff; --ink:#101828; --muted:#667085;
3
- --primary:#4137A8; --primary-600:#3b3299; --success:#1b9c85; --info:#0ea5e9; --danger:#ef4444;
4
- --border:#e5e7eb; --table-head:#302a86; --table-alt:#f5f8ff; --radius:16px; --shadow:0 4px 20px rgba(0,0,0,.06);
 
 
 
 
 
 
 
 
 
 
 
5
  }
 
6
  body.dark{
7
- --bg:#0f172a; --card:#111827; --ink:#e5e7eb; --muted:#94a3b8; --border:#1f2937;
8
- --table-head:#1f2565; --table-alt:#0b1326; --shadow:0 4px 20px rgba(0,0,0,.35);
 
 
 
 
 
 
9
  }
 
10
  *{box-sizing:border-box}
11
  html,body{height:100%}
12
- body{margin:0; font-family:"Cairo",system-ui,-apple-system,Segoe UI,Arial,sans-serif; color:var(--ink); background:var(--bg); line-height:1.7; text-align:center}
13
- .container{max-width:1100px; margin:24px auto; padding:0 16px}
14
- .hero{margin-bottom:16px}
15
- .hero-top{display:flex; align-items:center; justify-content:space-between; gap:12px}
16
- .hero h1{margin:4px 0 6px; font-size:28px; font-weight:700; color:var(--primary); width:100%}
17
- .actions-inline{display:flex; gap:8px; align-items:center}
18
- .signature{display:inline-flex; gap:8px; align-items:center; justify-content:center; background:var(--card); padding:6px 12px; border-radius:999px; border:1px solid var(--border); color:var(--muted); font-weight:600; box-shadow:var(--shadow)}
19
- .signature .role{color:var(--primary)} .signature .name{color:var(--ink)}
20
- .card{background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px; border:1px solid var(--border)}
21
- .label{display:block; font-weight:600; margin-bottom:8px; color:var(--muted)}
22
- .paste-wrap{position:relative}
23
- .paste{width:100%; min-height:180px; resize:vertical; padding:12px 14px; border-radius:12px; border:1px solid var(--border); outline:none; background:var(--card); color:var(--ink); text-align:center}
24
- .paste:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(65,55,168,.12)}
25
- .sample-overlay{position:absolute; inset:8px; border-radius:12px; border:1px dashed var(--border); background:rgba(0,0,0,.03); color:var(--muted); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:10px; cursor:pointer}
26
- .sample-title{font-weight:800; margin-bottom:6px}
27
- .sample-body{margin:0; white-space:pre-wrap; direction:rtl; text-align:center; color:#6b7280}
28
- .sample-hint{margin-top:6px; font-size:12px; color:#94a3b8}
29
- .filters{display:flex; gap:10px; margin:14px 0; justify-content:center}
30
- .field{min-width:260px}
31
- .mini-label{font-weight:700; color:var(--muted); margin-bottom:6px}
32
- .center-input{text-align:center}
33
- .control{width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--border); outline:none; background:var(--card); color:var(--ink)}
34
- .control:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(65,55,168,.08)}
35
- .hint{color:var(--muted); font-size:14px; margin:8px 0 10px}
36
- .btn-row{display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; margin-bottom:10px}
37
- .btn{padding:10px 14px; border:none; border-radius:12px; cursor:pointer; font-weight:700; background:#ddd; color:#111; transition:transform .04s ease, box-shadow .2s ease}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  body.dark .btn{color:#eee}
39
- .btn.small{padding:6px 10px; font-weight:600}
40
- .btn:disabled{opacity:.5; cursor:not-allowed}
41
- .btn:hover:not(:disabled){transform:translateY(-1px)}
 
 
 
 
 
 
 
42
  .btn-primary{background:var(--primary); color:#fff}
43
  .btn-primary:hover{background:var(--primary-600)}
44
  .btn-success{background:var(--success); color:#fff}
45
  .btn-info{background:var(--info); color:#fff}
46
  .btn-danger{background:var(--danger); color:#fff}
47
- .btn-light{background:#eef2ff; color:#2b2b2b}
48
- body.dark .btn-light{background:#1f2937; color:#e5e7eb}
49
- .num{display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:999px; background:#fff; color:var(--primary); border:1px solid var(--border); margin-inline-end:6px; font-weight:800; font-size:12px}
50
- .badge{background:#fff; color:var(--primary); border-radius:999px; padding:2px 8px; margin-inline-start:6px; font-size:12px}
51
- .warn{margin:8px auto 12px; padding:8px 12px; border-radius:10px; border:1px solid #f59e0b; color:#92400e; background:#fffbeb; max-width:900px}
52
- .table-wrap{overflow:auto; border-radius:14px; border:1px solid var(--border)}
53
- .table{width:100%; border-collapse:separate; border-spacing:0; text-align:center}
54
- .table thead th{background:var(--table-head); color:#fff; font-weight:700; padding:12px; position:sticky; top:0}
55
- .table tbody td{padding:10px 12px; background:var(--card); border-top:1px solid var(--border); color:var(--ink)}
56
- .table tbody tr:nth-child(even) td{background:var(--table-alt)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  .table td[contenteditable="true"]{outline:none}
58
  .table td.invalid{background:#fff3f3}
59
  body.dark .table td.invalid{background:#3b1d1d}
60
- .cat{display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700}
61
- .cat.login{background:#fff1; color:#fff; border:1px solid #fff3}
62
- .cat.device{background:#0ea5e922; color:#0ea5e9; border:1px solid #0ea5e955}
63
- .cat.form{background:#fef3c7; color:#a16207; border:1px solid #f59e0b}
64
- .cat.network{background:#dcfce7; color:#166534; border:1px solid #22c55e}
65
- .cat.update{background:#e0e7ff; color:#3730a3; border:1px solid #6366f1}
66
- .cat.default{background:#f1f5f9; color:#0f172a; border:1px solid #cbd5e1}
 
 
 
 
 
 
 
 
67
  body.dark .cat.default{background:#111827; color:#e5e7eb; border-color:#334155}
68
- .footer{text-align:center; margin:18px 0 6px; color:var(--muted)}
69
- .footer .signature{box-shadow:none; background:transparent; border-color:transparent; gap:6px; padding:0; font-weight:600}
70
- .toast{position:fixed; bottom:20px; inset-inline-start:20px; background:#111827; color:#fff; padding:10px 14px; border-radius:10px; box-shadow:var(--shadow); opacity:0; transform:translateY(8px); transition:.25s ease; pointer-events:none; font-weight:600}
71
- .toast.show{opacity:1; transform:translateY(0)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  @media (max-width:640px){
73
- .filters{flex-direction:column; align-items:center}
74
  .btn-row{gap:6px}
75
  }
 
1
  :root{
2
+ --bg:#f6f7fb;
3
+ --card:#ffffff;
4
+ --ink:#101828;
5
+ --muted:#667085;
6
+ --primary:#4137A8;
7
+ --primary-600:#3b3299;
8
+ --success:#1b9c85;
9
+ --info:#0ea5e9;
10
+ --danger:#ef4444;
11
+ --border:#e5e7eb;
12
+ --table-head:#302a86;
13
+ --table-alt:#f5f8ff;
14
+ --radius:16px;
15
+ --shadow:0 4px 20px rgba(0,0,0,.06);
16
  }
17
+
18
  body.dark{
19
+ --bg:#0f172a;
20
+ --card:#111827;
21
+ --ink:#e5e7eb;
22
+ --muted:#94a3b8;
23
+ --border:#1f2937;
24
+ --table-head:#1f2565;
25
+ --table-alt:#0b1326;
26
+ --shadow:0 4px 20px rgba(0,0,0,.35);
27
  }
28
+
29
  *{box-sizing:border-box}
30
  html,body{height:100%}
31
+
32
+ body{
33
+ margin:0;
34
+ font-family:"Cairo",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
35
+ color:var(--ink);
36
+ background:var(--bg);
37
+ line-height:1.7;
38
+ text-align:center;
39
+ }
40
+
41
+ .container{
42
+ max-width:1100px;
43
+ margin:24px auto;
44
+ padding:0 16px;
45
+ }
46
+
47
+ .hero{
48
+ position:relative;
49
+ margin-bottom:16px;
50
+ }
51
+
52
+ .theme-toggle{
53
+ position:absolute;
54
+ top:0;
55
+ inset-inline-start:0; /* لا يؤثر على توسيط العنوان */
56
+ padding:8px 12px;
57
+ border-radius:999px;
58
+ border:1px solid var(--border);
59
+ background:var(--card);
60
+ color:var(--ink);
61
+ font-weight:700;
62
+ cursor:pointer;
63
+ box-shadow:var(--shadow);
64
+ }
65
+
66
+ .title{
67
+ margin:0 0 6px;
68
+ font-size:28px;
69
+ font-weight:800;
70
+ color:var(--primary);
71
+ }
72
+
73
+ .signature{
74
+ display:inline-flex;
75
+ gap:8px;
76
+ align-items:center;
77
+ justify-content:center;
78
+ background:var(--card);
79
+ padding:6px 12px;
80
+ border-radius:999px;
81
+ border:1px solid var(--border);
82
+ color:var(--muted);
83
+ font-weight:600;
84
+ box-shadow:var(--shadow);
85
+ }
86
+
87
+ .signature .role{color:var(--primary)}
88
+ .signature .name{color:var(--ink)}
89
+
90
+ .card{
91
+ background:var(--card);
92
+ border-radius:var(--radius);
93
+ box-shadow:var(--shadow);
94
+ padding:18px;
95
+ border:1px solid var(--border);
96
+ }
97
+
98
+ .label{
99
+ display:block;
100
+ font-weight:600;
101
+ margin-bottom:8px;
102
+ color:var(--muted);
103
+ }
104
+
105
+ .paste{
106
+ width:100%;
107
+ min-height:180px;
108
+ resize:vertical;
109
+ padding:12px 14px;
110
+ border-radius:12px;
111
+ border:1px solid var(--border);
112
+ outline:none;
113
+ background:var(--card);
114
+ color:var(--ink);
115
+ text-align:center;
116
+ }
117
+
118
+ .paste::placeholder{
119
+ color:#9aa3af;
120
+ white-space:pre-line;
121
+ }
122
+
123
+ .paste:focus{
124
+ border-color:var(--primary);
125
+ box-shadow:0 0 0 3px rgba(65,55,168,.12);
126
+ }
127
+
128
+ .filters{
129
+ display:flex;
130
+ gap:10px;
131
+ margin:14px 0;
132
+ justify-content:center;
133
+ flex-wrap:wrap;
134
+ }
135
+
136
+ .center-input{
137
+ text-align:center;
138
+ }
139
+
140
+ .control{
141
+ width:320px;
142
+ padding:10px 12px;
143
+ border-radius:10px;
144
+ border:1px solid var(--border);
145
+ outline:none;
146
+ background:var(--card);
147
+ color:var(--ink);
148
+ }
149
+
150
+ .control:focus{
151
+ border-color:var(--primary);
152
+ box-shadow:0 0 0 3px rgba(65,55,168,.08);
153
+ }
154
+
155
+ .btn-row{
156
+ display:flex;
157
+ flex-wrap:wrap;
158
+ gap:8px;
159
+ align-items:center;
160
+ justify-content:center;
161
+ margin-bottom:10px;
162
+ }
163
+
164
+ .btn{
165
+ padding:10px 14px;
166
+ border:none;
167
+ border-radius:12px;
168
+ cursor:pointer;
169
+ font-weight:700;
170
+ background:#ddd;
171
+ color:#111;
172
+ transition:transform .04s ease, box-shadow .2s ease;
173
+ }
174
+
175
  body.dark .btn{color:#eee}
176
+
177
+ .btn:disabled{
178
+ opacity:.5;
179
+ cursor:not-allowed;
180
+ }
181
+
182
+ .btn:hover:not(:disabled){
183
+ transform:translateY(-1px);
184
+ }
185
+
186
  .btn-primary{background:var(--primary); color:#fff}
187
  .btn-primary:hover{background:var(--primary-600)}
188
  .btn-success{background:var(--success); color:#fff}
189
  .btn-info{background:var(--info); color:#fff}
190
  .btn-danger{background:var(--danger); color:#fff}
191
+
192
+ .num{
193
+ display:inline-flex;
194
+ align-items:center;
195
+ justify-content:center;
196
+ width:22px;
197
+ height:22px;
198
+ border-radius:999px;
199
+ background:#fff;
200
+ color:var(--primary);
201
+ border:1px solid var(--border);
202
+ margin-inline-end:6px;
203
+ font-weight:800;
204
+ font-size:12px;
205
+ }
206
+
207
+ .badge{
208
+ background:#fff;
209
+ color:var(--primary);
210
+ border-radius:999px;
211
+ padding:2px 8px;
212
+ margin-inline-start:6px;
213
+ font-size:12px;
214
+ }
215
+
216
+ .warn{
217
+ margin:8px auto 12px;
218
+ padding:8px 12px;
219
+ border-radius:10px;
220
+ border:1px solid #f59e0b;
221
+ color:#92400e;
222
+ background:#fffbeb;
223
+ max-width:900px;
224
+ }
225
+
226
+ .table-wrap{
227
+ overflow:auto;
228
+ border-radius:14px;
229
+ border:1px solid var(--border);
230
+ }
231
+
232
+ .table{
233
+ width:100%;
234
+ border-collapse:separate;
235
+ border-spacing:0;
236
+ text-align:center;
237
+ }
238
+
239
+ .table thead th{
240
+ background:var(--table-head);
241
+ color:#fff;
242
+ font-weight:700;
243
+ padding:12px;
244
+ position:sticky;
245
+ top:0;
246
+ }
247
+
248
+ .table tbody td{
249
+ padding:10px 12px;
250
+ background:var(--card);
251
+ border-top:1px solid var(--border);
252
+ color:var(--ink);
253
+ }
254
+
255
+ .table tbody tr:nth-child(even) td{
256
+ background:var(--table-alt);
257
+ }
258
+
259
  .table td[contenteditable="true"]{outline:none}
260
  .table td.invalid{background:#fff3f3}
261
  body.dark .table td.invalid{background:#3b1d1d}
262
+
263
+ .cat{
264
+ display:inline-block;
265
+ padding:4px 8px;
266
+ border-radius:999px;
267
+ font-size:12px;
268
+ font-weight:700;
269
+ }
270
+
271
+ .cat.login {background:#fff1; color:#fff; border:1px solid #fff3}
272
+ .cat.device {background:#0ea5e922; color:#0ea5e9; border:1px solid #0ea5e955}
273
+ .cat.form {background:#fef3c7; color:#a16207; border:1px solid #f59e0b}
274
+ .cat.network {background:#dcfce7; color:#166534; border:1px solid #22c55e}
275
+ .cat.update {background:#e0e7ff; color:#3730a3; border:1px solid #6366f1}
276
+ .cat.default {background:#f1f5f9; color:#0f172a; border:1px solid #cbd5e1}
277
  body.dark .cat.default{background:#111827; color:#e5e7eb; border-color:#334155}
278
+
279
+ .toast{
280
+ position:fixed;
281
+ bottom:20px;
282
+ inset-inline-start:20px;
283
+ background:#111827;
284
+ color:#fff;
285
+ padding:10px 14px;
286
+ border-radius:10px;
287
+ box-shadow:var(--shadow);
288
+ opacity:0;
289
+ transform:translateY(8px);
290
+ transition:.25s ease;
291
+ pointer-events:none;
292
+ font-weight:600;
293
+ }
294
+
295
+ .toast.show{
296
+ opacity:1;
297
+ transform:translateY(0);
298
+ }
299
+
300
  @media (max-width:640px){
301
+ .filters{flex-direction:column}
302
  .btn-row{gap:6px}
303
  }