#21376 closed enhancement (fixed)
Twenty Twelve: add editor stylesheet
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | ui-feedback has-patch |
| Cc: | xoodrew@… |
Description
Add editor-style.css to style up the Visual Editor with basic typography and look-and-feel from Twenty Twelve's main stylesheet.
Attachments (6)
Change History (23)
comment:1
DrewAPicture — 10 months ago
- Cc xoodrew@… added
- Keywords has-patch added; needs-patch removed
So I added a first patch for the editor style.
Three things:
- We need to think about how we add the optional font. I approached it by adding two editor stylesheets. One with the font, that gets added optionally and one with the actual editor style. I don't know, can we alter class names inside the editor? Or add a class conditionally?
- I ran across a few tags that don't have styles yet in the main stylesheet: hr, big, del, ins
- The comment submit button is not styled. Is that intentional or should we open another ticket for that?
I'd appreciate it if you guys could give the patch a spin and give me feedback! I'll keep testing it with the Theme Unit Test in the meantime.
Thanks,
Konstantin
The second iteration completes all existing tags. Tested heavily with Layout Test and Image Test.
Still missing:
- Styles for hr, big, del, ins
- Explanation for the second add_editor_style() call
comment:4
DrewAPicture — 10 months ago
I realize Core's CSS Coding Standards are still a work in progress, but I think we can at the very least cherry-pick a couple of them to apply in this situation, namely group and selector spacing, as well as making sure selector groups are always multi-line.
Incremental patch attached.
comment:6
lancewillett — 10 months ago
Noting we'll need the equivalent RTL version as well.
comment:7
lancewillett — 10 months ago
In [21389]:
21376.4.diff adds RTL support, merges .alignleft margins and respects CSS guidelines (props @DrewAPicture)
comment:9
lancewillett — 10 months ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In [21406]:
comment:10
follow-up:
↓ 12
obenland — 10 months ago
Will editor-style.rtl.css run through #21441?
comment:11
in reply to:
↑ 8
lancewillett — 10 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to obenland:
respects CSS guidelines (props @DrewAPicture)
DrewAPicture and obenland, let's stick with our current standard of no lines between style declaration blocks. It's what we've done with previous default themes.
comment:12
in reply to:
↑ 10
lancewillett — 10 months ago
comment:13
follow-up:
↓ 14
obenland — 10 months ago
I'm not sure whether 21376.6.diff is still needed, it's just minor.
Anyway, updated the original patch sans editor-style-rtl.css file.
comment:14
in reply to:
↑ 13
lancewillett — 10 months ago
Replying to obenland:
I'm not sure whether 21376.6.diff is still needed, it's just minor.
Anyway, updated the original patch sans editor-style-rtl.css file.
Thanks, we do need the rest of the cleanup (selectors only one per line, etc).
comment:15
lancewillett — 10 months ago
In [21409]:
comment:16
lancewillett — 10 months ago
- Resolution set to fixed
- Status changed from reopened to closed
Editor styles for v 1.0 are good to go, new issues should be opened in new tickets.
comment:17
lancewillett — 9 months ago
In [21566]:

Iteration 1