-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rtl Skin #7907
base: master
Are you sure you want to change the base?
Rtl Skin #7907
Conversation
…ction:rtl to htm,body tags in style .css
Sorry but this way I don't see what has changed in styles. You should not modify styles.css, but the less files. |
I change .less files for Rtl, for changing styles I change styles.less and styles that imported in styles.less ,global.less ,layout.less ,common.less ,buttons.less ,jqueryui.less ,dialogs.less ,menu.less ,messages.less ,lists.less ,forms.less ,editor.less and so some other that imported in up .less files
Thanks. From the changes I see that this probably should be done in the same way we implemented dark mode (see dark.less). I.e. create rtl.less file and put all needed less changes under |
create rtl.less file. I have created rtl.less like the dark.less .I have tested in other skin and its works. I change the html.rtl to html.dark-mode and I have import rtl.less instead of dark.less. When I was clicked on the dark-mode button the direction changed to RTL and هt worked properly. so. I want to change the direction according to the language. I see some functions in editor.js for detect language, if I detect the language in ui.js I can change the direction. I think I can implement like dark-mode scenario. if you have an idea that what can I do please say it to me. Thanks.
Hello |
hi |
Could you remove changes that are not needed anymore? |
hi |
See "Files changed" tab here. To review changes I have to see only these relevant. |
Ok, so now before anyone can test this we need to add at the end of styles.less:
and define the variable in variables.less, where Next steps:
|
add condition for check @rtl-mode-enabled at the end of styles.less add a function and call that for change direction
rtl condition
I define @rtl-mode-enabled in variables.less, |
This looks better and better. I didn't yet tested this, but do you have any feedback on points 2-4 from my last comment? |
@seyyedhasan6172: Have you progressed on your PR? @alecpl has requested you comment on some points. |
@@ -4244,6 +4248,14 @@ function rcube_elastic_ui() | |||
rcmail.set_cookie(key, val, exp); | |||
} | |||
}; | |||
|
|||
function changeDirection() { | |||
lang = rcmail.env.locale; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var lang = rcmail.env.locale;
set var because js is restricted
#7883
hi
I change styles of the elastic theme directly to set it RTL.as you say in issue #7883 check the codes and say your opinion about how I change my code to be useful for your needs
I change default styles to rtl styles and add text-align:right and direction:rtl to htm,body tags in style .css