|
| 1 | +/* RTL styles */ |
| 2 | +html[dir="rtl"] { |
| 3 | + body { |
| 4 | + text-align: right; |
| 5 | + } |
| 6 | + |
| 7 | + /* Adjustments for Bootstrap's grid system */ |
| 8 | + .row { |
| 9 | + direction: rtl; |
| 10 | + } |
| 11 | + |
| 12 | + /* Adjustments for text alignment */ |
| 13 | + .text-left { |
| 14 | + text-align: right !important; |
| 15 | + } |
| 16 | + .text-right { |
| 17 | + text-align: left !important; |
| 18 | + } |
| 19 | + |
| 20 | + /* Adjustments for margins and paddings */ |
| 21 | + .ml-auto { |
| 22 | + margin-right: auto !important; |
| 23 | + margin-left: 0 !important; |
| 24 | + } |
| 25 | + .mr-auto { |
| 26 | + margin-left: auto !important; |
| 27 | + margin-right: 0 !important; |
| 28 | + } |
| 29 | + .pl-0 { |
| 30 | + padding-right: 0 !important; |
| 31 | + padding-left: initial !important; |
| 32 | + } |
| 33 | + .pr-0 { |
| 34 | + padding-left: 0 !important; |
| 35 | + padding-right: initial !important; |
| 36 | + } |
| 37 | + .pl-1, .pl-2, .pl-3, .pl-4, .pl-5 { |
| 38 | + padding-right: var(--spacer) !important; /* Adjust as needed */ |
| 39 | + padding-left: initial !important; |
| 40 | + } |
| 41 | + .pr-1, .pr-2, .pr-3, .pr-4, .pr-5 { |
| 42 | + padding-left: var(--spacer) !important; /* Adjust as needed */ |
| 43 | + padding-right: initial !important; |
| 44 | + } |
| 45 | + |
| 46 | + /* Navbar adjustments */ |
| 47 | + .navbar-nav .nav-link { |
| 48 | + padding-right: 0.5rem; |
| 49 | + padding-left: 0; |
| 50 | + } |
| 51 | + .navbar-nav .nav-item:not(:last-child) { |
| 52 | + margin-left: 1rem; |
| 53 | + margin-right: 0; |
| 54 | + } |
| 55 | + |
| 56 | + /* Specific adjustments for al-folio elements */ |
| 57 | + .profile .align-items-center { |
| 58 | + flex-direction: row-reverse; |
| 59 | + } |
| 60 | + |
| 61 | + .social { |
| 62 | + text-align: left; |
| 63 | + } |
| 64 | + |
| 65 | + .footer-col { |
| 66 | + text-align: right; |
| 67 | + } |
| 68 | + |
| 69 | + .news-item .news-date { |
| 70 | + text-align: left; |
| 71 | + } |
| 72 | + |
| 73 | + .publication-title { |
| 74 | + text-align: right; |
| 75 | + } |
| 76 | + |
| 77 | + .abstract-collapse { |
| 78 | + text-align: right; |
| 79 | + } |
| 80 | + |
| 81 | + .bib-buttons { |
| 82 | + text-align: left; |
| 83 | + } |
| 84 | + |
| 85 | + .card-title { |
| 86 | + text-align: right; |
| 87 | + } |
| 88 | + |
| 89 | + .card-text { |
| 90 | + text-align: right; |
| 91 | + } |
| 92 | + |
| 93 | + .btn { |
| 94 | + text-align: center; |
| 95 | + } |
| 96 | + |
| 97 | + /* Adjustments for the main content div */ |
| 98 | + .rtl-content { |
| 99 | + text-align: right; |
| 100 | + } |
| 101 | + |
| 102 | + /* Adjustments for table of contents sidebar */ |
| 103 | + #toc-sidebar { |
| 104 | + text-align: right; |
| 105 | + } |
| 106 | + #toc-sidebar .nav-link { |
| 107 | + padding-right: 0; |
| 108 | + padding-left: 1rem; |
| 109 | + } |
| 110 | + #toc-sidebar .nav-link::before { |
| 111 | + margin-left: 0.5rem; |
| 112 | + margin-right: 0; |
| 113 | + } |
| 114 | +} |
0 commit comments