stat2025 commited on
Commit
8b3226f
·
verified ·
1 Parent(s): 1ad46ac

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +66 -0
style.css CHANGED
@@ -115,4 +115,70 @@ mark.hl{background:#fff59d; padding:0 2px; border-radius:2px;}
115
  h1{font-size:20px;}
116
  .theme-btn{inset-inline-start:10px; inset-block-start:10px;}
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
 
 
115
  h1{font-size:20px;}
116
  .theme-btn{inset-inline-start:10px; inset-block-start:10px;}
117
 
118
+ /* تحسين استجابة الجدول للجوال */
119
+ .table-wrap {
120
+ width: 100%;
121
+ overflow-x: auto;
122
+ -webkit-overflow-scrolling: touch;
123
+ }
124
+
125
+ /* ضبط الجدول على الشاشات الصغيرة */
126
+ @media (max-width: 768px) {
127
+ table {
128
+ min-width: 100%;
129
+ table-layout: auto;
130
+ }
131
+ th, td {
132
+ font-size: 14px;
133
+ padding: 10px 6px;
134
+ white-space: nowrap; /* يمنع تكسر النصوص */
135
+ }
136
+ }
137
+
138
+ @media (max-width: 480px) {
139
+ th, td {
140
+ font-size: 12px;
141
+ padding: 8px 4px;
142
+ }
143
+ }
144
+ /* منع كسر كلمة "الرمز" والأرقام داخل عمود الرمز + اتجاه رقمي واضح */
145
+ table thead th:nth-child(1),
146
+ table tbody td:nth-child(1){
147
+ white-space: nowrap; /* لا يلتف */
148
+ word-break: keep-all; /* لا يجزّئ الأرقام/الكلمات القصيرة */
149
+ direction: ltr; /* عرض الأرقام بشكل سليم */
150
+ text-align: center;
151
+ }
152
+
153
+ /* توزيع أذكى للمساحات على الجوال */
154
+ @media (max-width: 768px){
155
+ /* اجعل الجدول ثابت الأعمدة ومهيأ للّف الأفقي عند الحاجة */
156
+ table{ table-layout: fixed; }
157
+
158
+ /* عمود الرمز عرض ثابت صغير، والنشاط يأخذ الباقي */
159
+ thead th:nth-child(1), tbody td:nth-child(1){ width: 84px; } /* تقدر تغيّرينها 72–96px */
160
+ thead th:nth-child(2), tbody td:nth-child(2){ width: auto; }
161
+
162
+ /* تصغير بسيط للخط والحشوات */
163
+ th, td{ font-size: 14px; padding: 12px 8px; }
164
+ }
165
+
166
+ /* شاشات أصغر جدًا */
167
+ @media (max-width: 480px){
168
+ thead th:nth-child(1), tbody td:nth-child(1){ width: 72px; }
169
+ th, td{ font-size: 13px; padding: 10px 6px; }
170
+ }
171
+
172
+ /* لفّ النص الطويل في عمود النشاط فقط (واترك الرمز بدون لف) */
173
+ table thead th:nth-child(2),
174
+ table tbody td:nth-child(2){
175
+ white-space: normal;
176
+ word-break: break-word;
177
+ }
178
+
179
+ /* تمرير أفقي سلس عند الضيق – يحافظ على نفس التصميم */
180
+ .table-wrap{
181
+ overflow-x: auto;
182
+ -webkit-overflow-scrolling: touch;
183
+ }
184