Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21441 closed defect (bug) (fixed)

Twenty Twelve: full RTL support

Reported by: lancewillett's profile lancewillett Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

Review, test, and fix RTL stylesheets.

  1. rtl.css (main)
  2. editor-style-rtl.css (editor stylesheet)

Attachments (11)

21441.diff (5.4 KB) - added by obenland 12 years ago.
First stab. Tested with Theme Unit Test.
21441.1.diff (3.1 KB) - added by obenland 12 years ago.
21441.2.diff (3.1 KB) - added by SergeyBiryukov 12 years ago.
21424-rtl-comment-lists.diff (548 bytes) - added by iandstewart 12 years ago.
Adds missing margin for lists in comments
21426-y-u-reset-align.diff (490 bytes) - added by iandstewart 12 years ago.
We ought not to RTL image alignment since the editor adds the class and the button is always the same
21427-rtl-comment-threading.diff (468 bytes) - added by iandstewart 12 years ago.
Adds the visual of comment threading back to RTL
21441.post-author.png (15.2 KB) - added by SergeyBiryukov 12 years ago.
21441-editor-body.diff (420 bytes) - added by obenland 12 years ago.
21441.post-author.diff (430 bytes) - added by obenland 12 years ago.
21441.post-author-2.diff (794 bytes) - added by obenland 12 years ago.
Props SergeyBiryukov
21441.editor-style.diff (1013 bytes) - added by yoavf 12 years ago.
Removed the auto value form the body margin (it wasn't set in ltr), and fixed a few selectors and missing rules

Download all attachments as: .zip

Change History (31)

#1 @nacin
12 years ago

  • Keywords needs-patch added; needs-refresh removed
  • Type changed from task (blessed) to defect (bug)

@obenland
12 years ago

First stab. Tested with Theme Unit Test.

#2 @obenland
12 years ago

  • Keywords has-patch added; needs-patch removed

My first ever RTL stylesheet: rtl.css

@obenland
12 years ago

#3 @obenland
12 years ago

Refresh with smarter changes and editor-style-rtl.css

#4 @SergeyBiryukov
12 years ago

21441.2.diff adds a missing margin-left for .commentlist .children and combines a couple of similar styles in the @media block.

@iandstewart
12 years ago

Adds missing margin for lists in comments

@iandstewart
12 years ago

We ought not to RTL image alignment since the editor adds the class and the button is always the same

@iandstewart
12 years ago

Adds the visual of comment threading back to RTL

#5 @lancewillett
12 years ago

In [21430]:

Twenty Twelve RTL: adds missing margin for lists in comments, props iandstewart. See #21441.

#6 @lancewillett
12 years ago

In [21431]:

Twenty Twelve RTL: We ought not to RTL image alignment since the editor adds the class and the button is always the same. See #21441 props iandstewart.

#7 @lancewillett
12 years ago

In [21432]:

Twenty Twelve RTL: Adds the visual of comment threading back to RTL, props iandstewart. See #21441.

#8 @lancewillett
12 years ago

In [21433]:

Twenty Twelve RTL: add editor-style-rtl stylesheet, props SergeyBiryukov and obenland. See #21441.

#9 @lancewillett
12 years ago

In [21434]:

Twenty Twelve RTL: more fixes props obenland. See #21441.

#10 @SergeyBiryukov
12 years ago

The "Post author" badge needs RTL treatment: 21441.post-author.png.

The order is wrong, so the margins (which are correct per se) also don't look right.
http://core.trac.wordpress.org/browser/trunk/wp-content/themes/twentytwelve/rtl.css#L134

#11 @obenland
12 years ago

In 21441-editor-body.diff: Per IRC Chat with @azaozz, center the editor body in RTL to stop messing with calculating height/width in js

#12 follow-up: @lancewillett
12 years ago

In [21441]:

Twenty Twelve, RTL: per azaozz, center the editor body in RTL to stop messing with calculating height/width in JS. Props obenland, see #21441.

#13 @lancewillett
12 years ago

Chatted with Yoav Farhi, he's going to help do a full RTL review for us.

#14 in reply to: ↑ 12 @azaozz
12 years ago

Replying to lancewillett:

Was thinking to center the editor body by default (in the default editor css) and then add light grey background to the html element. Makes a lot better looking editor when the body has max-width.

Also, there are more classes on the body in TinyMCE: mceContentBody content post-type-post. The first one is always there (set by MCE) the second is the editor ID and third is the post type. So .content can be used to target only the main TinyMCE instance on the Edit Post screen. DFW gets mceContentBody content post-type-post wp-fullscreen-editor.

@obenland
12 years ago

Props SergeyBiryukov

#15 @lancewillett
12 years ago

In [21483]:

Twenty Twelve: fix bypostauthor styling, probs obenland and SergeyBiryukov (also improves the RTL layout, see #21441).

@yoavf
12 years ago

Removed the auto value form the body margin (it wasn't set in ltr), and fixed a few selectors and missing rules

#16 follow-up: @yoavf
12 years ago

  • Cc yoavf added

rtl.css looks great, haven't found any problems so far, but I have some more testing to do :)

#17 in reply to: ↑ 16 @lancewillett
12 years ago

Replying to yoavf:

rtl.css looks great, haven't found any problems so far, but I have some more testing to do :)

Thanks much for looking and the patch.

#18 @lancewillett
12 years ago

In [21515]:

Twenty Twelve: editor RTL style fixes props yoavf, see #21441.

#19 @lancewillett
12 years ago

In [21565]:

Twenty Twelve: update RTL stylsheet based on recent layout changes, see #21441.

#20 @lancewillett
12 years ago

  • Keywords has-patch removed
  • Resolution set to fixed
  • Status changed from new to closed

RTL should be up to date with latest changes. If new issues arise, please open a new Trac ticket.

Note: See TracTickets for help on using tickets.