Fordson Dropdown Menu "My Course" RTL

Re: Fordson Dropdown Menu "My Course" RTL

by Yana Konstantinovsky -
Number of replies: 3
Hi Jean Rocj,

Thanks fo r the reply, but i'm not sure what you mean?

Could you be more specific?

Thank you
In reply to Yana Konstantinovsky

Re: Fordson Dropdown Menu "My Course" RTL

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi
I am going to see if I can find where the problem is in the Fordson theme. However I do not have Moodle 3.7 only Moodle 3.6 but it should be the same as 3.7.
I will let you know how I get on and hopefully find a solution.
It is probably something simple within the coding of that menu as not many know how RTL is supposed to work. It may just be a simple thing that needs to be added in the code of a renderer file in Fordson.

Mary
In reply to Yana Konstantinovsky

Re: Fordson Dropdown Menu "My Course" RTL

by Jean-Roch Meurisse -
Picture of Core developers Picture of Plugin developers Picture of Testers
If you want to apply your css rules only in rtl mode, every css rule you add should be prefixed with body.dir-rtl, for example
Do not write
h1  {
    font-weight: bold;
}
but 
body.dir-rtl h1 {
    font-weight: bold;
}
Average of ratings: Useful (1)
In reply to Jean-Roch Meurisse

Re: Fordson Dropdown Menu "My Course" RTL

by Yana Konstantinovsky -
Hi,

So i added this code to the CSS, and it seemd to work.  It doesn't effect the LTR version in my case.

.dir-rtl .navbar.fixed-top .dropdown .dropdown-menu {
left: auto;
right: 0;
}