Opened 13 years ago
Closed 12 years ago
#18141 closed task (blessed) (fixed)
TinyMCE Icons with borders are too busy/distracting
Reported by: | fadingdust | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | trivial | Version: | 3.2.1 |
Component: | Graphic Design | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I've modified the css for TinyMCE to no longer have borders or backgrounds (flat, with just icons) and it looks 1000x better! It's less work to focus on what the icon is/does. Attached is a mock-up.
This is a suggestion to improve the already improved TinyMCE coloration-on-hover.
Attachments (31)
Change History (74)
#2
@
13 years ago
Looks interesting. Just remember that the TinyMCE buttons have five states: normal, disabled and active - these are set by adding/removing classes depending where in the editor you click, then normal:hover and active:hover.
#3
@
13 years ago
This was a quick hack, I can svn co WP later this week & clean it up.
@azaozz, as far as I know, I've only knocked out the active state, so: (a) the hover is still showing the background-gradient as well as the icon-color, (b) the disabled is still greyed out , and (c) the active is the hover-state, held on mouse-out.
So basically, the same. Any suggestions? The disabled is a little weak for contrast at present, I'd almost prefer brighter/darker icons, but that's a matter of modding wp-includes/js/tinymce/themes/advanced/img/wpicons.png
#4
@
13 years ago
Please use the .dev files to show changes, the commitor will re-minify it afterwards.
#8
@
13 years ago
- Keywords has-patch added; needs-refresh removed
18141.diff shows outline/gradient on hover and reversed gradient on active.
Gray theme:
Blue theme:
#9
@
13 years ago
Just realized that there's a change to the editor container border color in the blue theme that isn't related to the buttons in that patch. Sorry about that.
#10
@
13 years ago
I'm loving this.
Should the HTML editor buttons follow the same style? In fullscreen mode they match the Visual Editors buttons.
#11
@
13 years ago
I've been enlightened to some inherent problems with smooth text-based HTML buttons... But after playing with it a bit more, I noticed a couple other little things.
Something is missing for the font color dropdown - when you click to expand, but aren't hovering over it, only the arrow is outlined.
Also, without the borders (even though they're there on mouseover) I seem to click between the buttons more frequently - which isn't a big deal, except that the whole row then gets outlined.
#12
@
13 years ago
I noticed the behavior of the arrows but it's currently that way, just less noticeable with all of the other gradients and box shadows going on. I'll see if I can refine it and remove the focus outline in another pass.
After more thought, I'm not convinced about changing the HTML buttons. The rounded corners match the other rounded corners in the admin area, and since it's not advisable to switch between Visual and HTML, I don't think they really need to match, even given the icons in fullscreen mode. Maybe they could actually look depressed when clicked, though, even though they don't have a stay-active state.
#13
@
13 years ago
18141.2.diff removes the outline on focus and makes the split button dropdown button have a background when open so it looks less like a random border:
#15
@
13 years ago
- Keywords needs-refresh removed
18141.3.diff is a refresh plus a little more refinement for blue. Looks like we can get rid of ed-bg.gif and ed-bg-vs.gif in favor of CSS3 gradients.
#16
follow-up:
↓ 17
@
13 years ago
18141.4.diff adds some borders and gradients back in so that the visual grouping of split buttons with arrows is not lost. Borders/gradients are left off of the disabled buttons - seems to creates an even clearer distinction. Looks a little something like this:
#17
in reply to:
↑ 16
@
13 years ago
Replying to helenyhou:
These look nice, remind me a bit of the editor buttons in 3.0 - 3.1 (before they had box-shadow).
Was testing something like that too:
with border only around the "split-buttons".
If we are going with no border, even only for the "disabled" state, thinking we will need to remove the separators/grouping of the buttons as it looses it's meaning and looks out of place.
#18
@
13 years ago
You're right - they do look similar to how they were previously. I started with just putting borders back but it looks unfinished somehow with them just being flat.
I went back to restart the CSS from its current state rather than continuing to build on the work-in-progress and came up with something much simpler - removing both box-shadows from the buttons and adding back the outer one on hover. Also still removing the background image in favor of a CSS3 gradient for the blue. 18141.5.diff
#19
@
12 years ago
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to 3.5
Per today's UI chat, we're going to go for it to better match with #21598. lessbloat is taking a stab at the refresh for the moment, as the patch needs one badly.
#21
@
12 years ago
Talking to koopersmith has us thinking we might try for the borderless look again and work some spacing magic with the arrows to not lose the grouping in split buttons. See comment 8 and 18141.3.diff. trepmal is going to take a stab for the moment.
#24
@
12 years ago
The 'selected' state (when dropdown is active) is now depressed (like :active) instead of a flat color.
#25
@
12 years ago
Looking really good Trepmal. :-)
A couple of things you may try:
- Lightening the entire background behind the buttons.
- A very faint border around the default drop downs (perhaps something like border 1px dotted #ccc). The gap to the right of "Paragraph" just looks out of place to me without mousing over it.
- An indented border for the depressed style (perhaps something like border-color: #999 #ccc #ccc #999;)
- The word "Paragraph" stands out to me at #000, maybe tone it down a tad.
- Double check the padding around the drop down arrow, on hover when the left border is showing, it looks 1px off.
#26
@
12 years ago
In 18141.11.diff I addressed the items in #comment:25, and reworked colors-classic.css styles.
#27
@
12 years ago
Couple of small tweaks in 18141.12.diff:
- Removed light border around drop downs.
- Removed drop down arrow from paragraph drop down, and reduced it's width.
- Forced other drop down arrows to show even when not hovering (to fix issue with what looked like extra padding-right).
We should probably remove the spacers in between the groups (e.g. between strikeout and bullet list). I can do it with CSS easily, but I'm sure there is a better way through the TinyMCE JS init or something. @azaozz thoughts?
#28
@
12 years ago
Yes, the spacers are part of $mce_buttons
and $mce_buttons_2
in class-wp-editor.php. We can even remove them after the filters are applied as plugins can add them too.
#30
@
12 years ago
nacin and I discussed making the dropdowns (like Paragraph/style) look like select elements. Basically, the way MS Word handles the difference. I think that might be the best way to go - it's not a button and shouldn't look the same as a button.
#32
@
12 years ago
- Keywords needs-refresh removed
18141.13.diff makes the dropdowns (like the format selector) look more like selects. Also styles blue a bit better overall. Tested with added TinyMCE buttons/plugins - seems to work well.
#33
@
12 years ago
Whoops, used a selector that was specific to the main content editor and didn't work for multiple wp_editors. 18141.14.diff instead.
#34
follow-up:
↓ 35
@
12 years ago
Looking good Helenyhou!
The only thing that stands out to me now is the box-shadow on the paragraph dropdown. Seems a tad heavy at 2px, and have you tried using it just on the top border, or on the top and the left vs. on all sides?
I guess it just feels fuzzy against the crisp outlines of everything else.
#35
in reply to:
↑ 34
;
follow-up:
↓ 36
@
12 years ago
Replying to lessbloat:
The only thing that stands out to me now is the box-shadow on the paragraph dropdown. Seems a tad heavy at 2px, and have you tried using it just on the top border, or on the top and the left vs. on all sides?
Didn't try it until now :) I think that works better. 18141.15.diff
#37
@
12 years ago
As the original reporter, this is the direction I was hoping for. Thanks all for taking this seriously.
#38
@
12 years ago
Seeing dotted border outlines on the button active state in Chrome. helenyhou is on it.
#40
follow-up:
↓ 41
@
12 years ago
Ah, why all the !important
in the css :( Don't think they are needed.
Also is the "split button" background supposed to be darker/different from the normal buttons?
Still thinking it looks better without any separators/spacers. When no borders they make the buttons around them look out of alignment or misplaced.
#41
in reply to:
↑ 40
;
follow-up:
↓ 43
@
12 years ago
- Keywords needs-patch added; has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to azaozz:
The answers are: bad CSS (too specific in color sheet and/or not specific enough in editor.css), and no, they're not supposed to be different. Fix away :) I think the lighter one (regular button) is preferable. Should probably check blue.
TinyMCe mockup with no borders or background