Update static/css/rtl-fixes.css
Browse files- static/css/rtl-fixes.css +66 -57
static/css/rtl-fixes.css
CHANGED
@@ -1,57 +1,66 @@
|
|
1 |
-
/*
|
2 |
-
|
3 |
-
/*
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
}
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
text-align: right;
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* إصلاحات لدعم اللغة العربية والعرض من اليمين إلى اليسار */
|
2 |
+
|
3 |
+
/* نقل الشريط الجانبي من اليسار إلى اليمين */
|
4 |
+
[data-testid="stSidebar"] {
|
5 |
+
right: 0;
|
6 |
+
left: unset !important;
|
7 |
+
}
|
8 |
+
|
9 |
+
section[data-testid="stSidebarContent"] {
|
10 |
+
direction: rtl !important;
|
11 |
+
text-align: right !important;
|
12 |
+
}
|
13 |
+
|
14 |
+
/* تعديل الاتجاه للمحتوى الرئيسي */
|
15 |
+
.main .block-container {
|
16 |
+
direction: rtl;
|
17 |
+
text-align: right;
|
18 |
+
margin-left: 0;
|
19 |
+
margin-right: 21rem;
|
20 |
+
max-width: calc(100% - 21rem);
|
21 |
+
}
|
22 |
+
|
23 |
+
@media (max-width: 768px) {
|
24 |
+
.main .block-container {
|
25 |
+
margin-right: 0;
|
26 |
+
max-width: 100%;
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
/* تصحيح اتجاه النصوص والعناصر */
|
31 |
+
.streamlit-expanderHeader,
|
32 |
+
.stRadio > div,
|
33 |
+
.stCheckbox > div,
|
34 |
+
.stSelectbox > div,
|
35 |
+
.stTextInput > div {
|
36 |
+
direction: rtl;
|
37 |
+
text-align: right;
|
38 |
+
}
|
39 |
+
|
40 |
+
/* تعديل قائمة الخيارات في streamlit_option_menu */
|
41 |
+
.nav-link {
|
42 |
+
text-align: right !important;
|
43 |
+
}
|
44 |
+
|
45 |
+
/* تحسين ظهور الجداول */
|
46 |
+
[data-testid="stTable"] {
|
47 |
+
direction: rtl;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* تصحيح أزرار الأرقام والتواريخ */
|
51 |
+
.stNumberInput [data-baseweb="input"],
|
52 |
+
.stDateInput [data-baseweb="input"] {
|
53 |
+
direction: ltr;
|
54 |
+
}
|
55 |
+
|
56 |
+
/* جعل عناصر الملاحظات والخانات النصية تدعم العربية */
|
57 |
+
[data-testid="stMarkdown"], textarea {
|
58 |
+
direction: rtl;
|
59 |
+
text-align: right;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* تحسين ظهور قوائم الاختيار */
|
63 |
+
.stMultiSelect div:first-child,
|
64 |
+
.stSelectbox div:first-child {
|
65 |
+
text-align: right;
|
66 |
+
}
|