Closed
Bug 390540
Opened 18 years ago
Closed 15 years ago
[he] RTL support for MoCo theme
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tomer, Assigned: tomer)
References
()
Details
(Keywords: rtl)
Attachments
(2 files)
|
505 bytes,
patch
|
Details | Diff | Splinter Review | |
|
75.98 KB,
image/png
|
Details |
As pascalc advice, I am working on the required changes in the CSS for Right-to-left version of MoCo (rustico theme). Those changes seems not to affect the English version, but may require further investigations.
/* Stick the mozilla logo to the left. No clear required. */
#header h1 img {float: left;}
/* Make right edge border for the text. This will stop it from overlapping the background image. */
#main-feature p, #main-feature h2, #main-feature .home-download, #main-feature .download-other {padding-right: 500px;}
| Assignee | ||
Comment 1•18 years ago
|
||
Updated•18 years ago
|
Attachment #274836 -
Flags: review?(steven)
Updated•18 years ago
|
Assignee: nobody → tomer
Comment 2•18 years ago
|
||
Could these additional CSS rules go behind a [dir=rtl] ?
| Assignee | ||
Comment 3•18 years ago
|
||
(In reply to comment #2)
> Could these additional CSS rules go behind a [dir=rtl] ?
>
Yes, this is possible.
| Assignee | ||
Comment 4•18 years ago
|
||
We did something like it in AMO <https://addons.mozilla.org/css/forms.css>.
| Assignee | ||
Comment 5•18 years ago
|
||
(In reply to comment #2)
> Could these additional CSS rules go behind a [dir=rtl] ?
Better not, as IE6 do not render *[] rules correctly.
Comment 7•17 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
| Assignee | ||
Comment 8•17 years ago
|
||
I know that Firefox 2 is about to be deperated soon, and so is the current theme that won't live for the main site, but I think we should consider merging this changes into the webpages of mozilla.com asap.
Comment 9•17 years ago
|
||
I tried out this change:
#header h1 img {float: left;}
and it is breaking the layout in Internet Explorer by pushing the page open a few hundred pixels wider. I was able to work around this by forcing text-align to the left in the #header h1.
Now onto the main-feature alignment issue...
Comment 11•16 years ago
|
||
FWIW, I went ahead and implemented full RTL support for Persian inside the locale directory without touching any base files. The relevant changes are:
<http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/trunk/fa/includes/rtl-support.php?view=log>
<http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/trunk/fa/includes/header.inc.php?view=log>
<http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/trunk/fa/includes/header-portal-pages.inc.php?view=log/>
<http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/trunk/fa/style/tignish/rtl.css?view=log>
And all the images which had to be reversed:
<http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/trunk/fa/img/tignish/>
This can be adapted to other RTL locales fairly easily by copying over header.inc.php, header-portal-pages.inc.php, rtl-support.php, rtl.css, as well the necessary image files, and adjusting the paths to the images inside rtl.css.
The result of these efforts can be seen at stage right now:
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/about/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/central/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/community/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/customize/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/organic/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/security/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/security/identity/>
<https://fa.www-trunk.stage.mozilla.com/fa/firefox/tips/>
Comment 12•15 years ago
|
||
old bug, looks like RTL is working fine now. closing.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Attachment #274836 -
Flags: review?(steven)
Updated•13 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•