Re: [Tiki-devel] Better multilingual styling
Gary Cunningham-Lee <gary_c-39LOpZwlz1/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Specifically, point 2 below. Sorry for not being more clear. So this seems to be the same idea: using "start" and "end" instead of "left" and "right", to be language-direction neutral. > > Approach > > Our approach to building RTL support into Bootstrap comes with two > important decisions that impact how we write and use our CSS: > > 1. > > *First, we decided to build it with the RTLCSS > <https://rtlcss.com/> project.* This gives us some powerful > features for managing changes and overrides when moving from LTR > to RTL. It also allows us to build two versions of Bootstrap from > one codebase. > > 2. > > *Second, we’ve renamed a handful of directional classes to adopt a > logical properties approach.* Most of you have already interacted > with logical properties thanks to our flex utilities—they replace > direction properties like |left| and |right| in favor |start| and > |end|. That makes the class names and values appropriate for LTR > and RTL without any overhead. > > For example, instead of |.ml-3| for |margin-left|, use |.ms-3|. > On 12/20/2021 8:39 PM, Gary Cunningham-Lee wrote: > Hi, > > Please see https://getbootstrap.com/docs/5.0/getting-started/rtl/ > > -- GAry > > On 12/20/2021 8:33 PM, Bernard Sfez via TikiWiki-devel wrote: >> Hello, >> >> During the last. TRM we discussed our options to improve and finalise >> the new Unified Admin Backend and one of the things was to have it >> compliant with RTL languages. >> >> It comes to me that I found more and more cases where I just need to >> set a “start” or “end” rule to a property to solve a lot of problems. >> >> For exemple; >> Using text-align: start instead of text-align: left (LTR) or >> text-align: right (RTL) >> >> I post it here some more people are aware when writing their code. >> https://developer.mozilla.org/en-US/docs/Web/CSS/text-align >> >> >> Regards, >> Bernard >> >> _______________________________________________ >> TikiWiki-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel