Mhdeusi commited on
Commit
96bbfb4
·
verified ·
1 Parent(s): 52b4658

Create responsive.css

Browse files
Files changed (1) hide show
  1. css/responsive.css +443 -0
css/responsive.css ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* استایل‌های ریسپانسیو برای تمام دستگاه‌ها */
2
+
3
+ /* تبلت - صفحه نمایش متوسط (768px تا 1024px) */
4
+ @media (max-width: 1024px) {
5
+ .container {
6
+ padding: 15px;
7
+ max-width: 100%;
8
+ }
9
+
10
+ .assessment-grid {
11
+ grid-template-columns: 1fr;
12
+ gap: 20px;
13
+ }
14
+
15
+ .progress-stats {
16
+ grid-template-columns: repeat(2, 1fr);
17
+ }
18
+
19
+ .user-welcome {
20
+ flex-direction: column;
21
+ text-align: center;
22
+ gap: 10px;
23
+ }
24
+
25
+ .auth-buttons {
26
+ flex-direction: column;
27
+ width: 100%;
28
+ }
29
+
30
+ .auth-buttons .btn {
31
+ width: 100%;
32
+ }
33
+ }
34
+
35
+ /* موبایل - صفحه نمایش کوچک (480px تا 768px) */
36
+ @media (max-width: 768px) {
37
+ .container {
38
+ padding: 10px;
39
+ }
40
+
41
+ header {
42
+ padding: 15px;
43
+ margin-bottom: 15px;
44
+ }
45
+
46
+ header h1 {
47
+ font-size: 24px;
48
+ text-align: center;
49
+ }
50
+
51
+ .score-display {
52
+ font-size: 14px;
53
+ padding: 8px 16px;
54
+ }
55
+
56
+ /* بخش محتوای آموزشی */
57
+ .lesson-section {
58
+ padding: 20px;
59
+ margin-bottom: 20px;
60
+ }
61
+
62
+ .section-header {
63
+ flex-direction: column;
64
+ gap: 15px;
65
+ text-align: center;
66
+ }
67
+
68
+ .navigation-buttons {
69
+ justify-content: center;
70
+ }
71
+
72
+ .lesson-content {
73
+ font-size: 14px;
74
+ line-height: 1.6;
75
+ }
76
+
77
+ .lesson-text {
78
+ margin-bottom: 15px;
79
+ }
80
+
81
+ /* بخش‌های آزمون و تمرین */
82
+ .quiz-section,
83
+ .exercise-section {
84
+ padding: 20px;
85
+ }
86
+
87
+ .question {
88
+ padding: 12px;
89
+ margin-bottom: 20px;
90
+ }
91
+
92
+ .options {
93
+ gap: 8px;
94
+ }
95
+
96
+ .option-label {
97
+ padding: 12px;
98
+ font-size: 14px;
99
+ }
100
+
101
+ textarea {
102
+ font-size: 14px;
103
+ padding: 12px;
104
+ }
105
+
106
+ /* بخش پیشرفت */
107
+ .progress-stats {
108
+ grid-template-columns: 1fr;
109
+ gap: 15px;
110
+ }
111
+
112
+ .stat-card {
113
+ padding: 20px;
114
+ }
115
+
116
+ .stat-value {
117
+ font-size: 24px;
118
+ }
119
+
120
+ .stat-label {
121
+ font-size: 13px;
122
+ }
123
+
124
+ /* صفحات احراز هویت */
125
+ .auth-card {
126
+ padding: 30px 20px;
127
+ margin: 10px;
128
+ }
129
+
130
+ .form-row {
131
+ grid-template-columns: 1fr;
132
+ }
133
+
134
+ .auth-logo h1 {
135
+ font-size: 24px;
136
+ }
137
+
138
+ .auth-logo p {
139
+ font-size: 14px;
140
+ }
141
+
142
+ /* مودال‌ها */
143
+ .modal-content {
144
+ padding: 25px 20px;
145
+ margin: 20px;
146
+ }
147
+
148
+ /* بخش کاربر */
149
+ .auth-section {
150
+ padding: 15px;
151
+ margin-bottom: 15px;
152
+ }
153
+
154
+ .user-info {
155
+ text-align: center;
156
+ }
157
+ }
158
+
159
+ /* موبایل بسیار کوچک (تا 480px) */
160
+ @media (max-width: 480px) {
161
+ body {
162
+ font-size: 14px;
163
+ }
164
+
165
+ .container {
166
+ padding: 8px;
167
+ }
168
+
169
+ header {
170
+ padding: 12px;
171
+ border-radius: 12px;
172
+ }
173
+
174
+ header h1 {
175
+ font-size: 20px;
176
+ margin-bottom: 8px;
177
+ }
178
+
179
+ .score-display {
180
+ font-size: 12px;
181
+ padding: 6px 12px;
182
+ }
183
+
184
+ /* بخش‌های محتوا */
185
+ .lesson-section,
186
+ .quiz-section,
187
+ .exercise-section {
188
+ padding: 15px;
189
+ border-radius: 12px;
190
+ }
191
+
192
+ h2 {
193
+ font-size: 18px;
194
+ padding-bottom: 8px;
195
+ margin-bottom: 15px;
196
+ }
197
+
198
+ /* سوالات کوییز */
199
+ .question {
200
+ margin-bottom: 15px;
201
+ padding: 10px;
202
+ }
203
+
204
+ .question-text {
205
+ font-size: 14px;
206
+ margin-bottom: 12px;
207
+ }
208
+
209
+ .option-label {
210
+ padding: 10px;
211
+ font-size: 13px;
212
+ }
213
+
214
+ /* تمرین */
215
+ textarea {
216
+ font-size: 13px;
217
+ padding: 10px;
218
+ min-height: 120px;
219
+ }
220
+
221
+ button {
222
+ padding: 10px 20px;
223
+ font-size: 14px;
224
+ }
225
+
226
+ /* فیدبک */
227
+ .feedback {
228
+ padding: 12px;
229
+ font-size: 13px;
230
+ margin-top: 15px;
231
+ }
232
+
233
+ /* صفحات احراز هویت */
234
+ .auth-container {
235
+ padding: 10px;
236
+ }
237
+
238
+ .auth-card {
239
+ padding: 25px 15px;
240
+ border-radius: 15px;
241
+ }
242
+
243
+ .auth-form input,
244
+ .auth-form select,
245
+ .auth-form textarea {
246
+ padding: 10px 12px;
247
+ font-size: 14px;
248
+ }
249
+
250
+ .btn-auth {
251
+ padding: 12px;
252
+ font-size: 14px;
253
+ }
254
+
255
+ /* بخش پیشرفت */
256
+ .progress-section {
257
+ padding: 15px;
258
+ }
259
+
260
+ .stat-card {
261
+ padding: 15px;
262
+ }
263
+
264
+ .stat-value {
265
+ font-size: 20px;
266
+ }
267
+
268
+ .stat-label {
269
+ font-size: 12px;
270
+ }
271
+ }
272
+
273
+ /* دستگاه‌های با ارتفاع کم */
274
+ @media (max-height: 600px) {
275
+ .auth-container {
276
+ align-items: flex-start;
277
+ padding-top: 40px;
278
+ padding-bottom: 40px;
279
+ }
280
+
281
+ .auth-card {
282
+ max-height: 90vh;
283
+ overflow-y: auto;
284
+ }
285
+ }
286
+
287
+ /* حالت landscape موبایل */
288
+ @media (max-height: 500px) and (orientation: landscape) {
289
+ .auth-container {
290
+ padding: 20px;
291
+ }
292
+
293
+ .auth-card {
294
+ max-width: 90%;
295
+ max-height: 85vh;
296
+ }
297
+
298
+ .auth-form .form-group {
299
+ margin-bottom: 12px;
300
+ }
301
+ }
302
+
303
+ /* نمایشگرهای بزرگ (بالای 1440px) */
304
+ @media (min-width: 1440px) {
305
+ .container {
306
+ max-width: 1400px;
307
+ }
308
+
309
+ .assessment-grid {
310
+ grid-template-columns: 1fr 1fr;
311
+ gap: 30px;
312
+ }
313
+
314
+ .progress-stats {
315
+ grid-template-columns: repeat(4, 1fr);
316
+ }
317
+ }
318
+
319
+ /* حالت چاپ */
320
+ @media print {
321
+ .auth-section,
322
+ .navigation-buttons,
323
+ button,
324
+ .feedback,
325
+ .auth-links {
326
+ display: none !important;
327
+ }
328
+
329
+ .lesson-content {
330
+ font-size: 12pt;
331
+ line-height: 1.4;
332
+ }
333
+
334
+ .container {
335
+ max-width: 100%;
336
+ padding: 0;
337
+ }
338
+
339
+ body {
340
+ background: white !important;
341
+ color: black !important;
342
+ font-size: 12pt;
343
+ }
344
+ }
345
+
346
+ /* پشتیبانی از حالت تاریک (Dark Mode) */
347
+ @media (prefers-color-scheme: dark) {
348
+ :root {
349
+ --bg-primary: #1a202c;
350
+ --bg-secondary: #2d3748;
351
+ --text-primary: #f7fafc;
352
+ --text-secondary: #e2e8f0;
353
+ --border-color: #4a5568;
354
+ }
355
+
356
+ .auth-card,
357
+ .auth-section,
358
+ .lesson-section,
359
+ .quiz-section,
360
+ .exercise-section,
361
+ .progress-section {
362
+ background: var(--bg-secondary);
363
+ color: var(--text-primary);
364
+ }
365
+
366
+ .auth-form input,
367
+ .auth-form select,
368
+ .auth-form textarea {
369
+ background: var(--bg-primary);
370
+ border-color: var(--border-color);
371
+ color: var(--text-primary);
372
+ }
373
+
374
+ .auth-form label {
375
+ color: var(--text-secondary);
376
+ }
377
+ }
378
+
379
+ /* پشتیبانی از کاهش حرکت */
380
+ @media (prefers-reduced-motion: reduce) {
381
+ *,
382
+ *::before,
383
+ *::after {
384
+ animation-duration: 0.01ms !important;
385
+ animation-iteration-count: 1 !important;
386
+ transition-duration: 0.01ms !important;
387
+ }
388
+ }
389
+
390
+ /* پشتیبانی از کنتراست بالا */
391
+ @media (prefers-contrast: high) {
392
+ .btn-primary {
393
+ background: #000;
394
+ color: #fff;
395
+ border: 2px solid #000;
396
+ }
397
+
398
+ .btn-secondary {
399
+ background: #fff;
400
+ color: #000;
401
+ border: 2px solid #000;
402
+ }
403
+
404
+ .auth-card {
405
+ border: 2px solid #000;
406
+ }
407
+ }
408
+
409
+ /* پشتیبانی از نمایشگرهای لمسی */
410
+ @media (hover: none) and (pointer: coarse) {
411
+ .btn:hover,
412
+ .btn-auth:hover,
413
+ .option-label:hover {
414
+ transform: none;
415
+ box-shadow: none;
416
+ }
417
+
418
+ .option-label {
419
+ min-height: 44px;
420
+ }
421
+
422
+ button,
423
+ .btn {
424
+ min-height: 44px;
425
+ min-width: 44px;
426
+ }
427
+ }
428
+
429
+ /* بهبود قابلیت دسترسی برای خواننده صفحه */
430
+ @media speech {
431
+ .lesson-content {
432
+ line-height: 1.8;
433
+ }
434
+
435
+ .question-text {
436
+ font-weight: bold;
437
+ }
438
+
439
+ .feedback::before {
440
+ content: "نتیجه: ";
441
+ font-weight: bold;
442
+ }
443
+ }