#21863 closed defect (bug) (fixed)
box-sizing breaks some admin-bar elements
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | minor | Version: | 3.5 |
| Component: | Toolbar | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
If I do something like * { box-sizing: border-box; } in my theme, it breaks some of the admin-bar elements — the stats item in particular is affected. This is easily fixed by forcing everything in #wpadminbar to box-sizing: content-box.
Attachments (3)
Change History (12)
#2
@
13 years ago
See CSS Coding Standards for the preferred formatting.
#4
@
13 years ago
- Keywords commit added
[21863.2.patch] seems to work for me, didn't notice anything broken without it in core items but definitely see the inconsistencies and potential for breakage.
#5
@
13 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [22280]:
#6
follow-up:
↓ 7
@
13 years ago
[22280] mucks up styling a bit on WP Editor instances, at least in twentythirteen.
The TinyMCE buttons get the box-sizing declaration applied, which shrinks the container for the buttons a bit. I'll attach a screenshot.
#7
in reply to:
↑ 6
;
follow-up:
↓ 8
@
13 years ago
Replying to ericlewis:
[22280] mucks up styling a bit on WP Editor instances, at least in twentythirteen.
The TinyMCE buttons get the box-sizing declaration applied, which shrinks the container for the buttons a bit. I'll attach a screenshot.
The changes here apply to #wpadminbar * (the admin bar), not the editor.
Adds
box-sizing: content-boxto everything in#wpadminbar