#18380 closed enhancement (fixed)
Merge the default colors css into wp-admin.css
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | |
Focuses: | ui, performance | Cc: |
Description
As the title.
Attachments (7)
Change History (25)
#2
@
13 years ago
- Milestone Future Release deleted
- Resolution set to wontfix
- Status changed from new to closed
#3
follow-up:
↓ 4
@
13 years ago
In IRC, Jane suggested making gray the only color scheme and moving any other color scheme (blue, and potentially a high-contrast color scheme) into a plugin integrated into the UI. I heartily support that suggestion.
#4
in reply to:
↑ 3
@
13 years ago
Replying to koopersmith:
In IRC, Jane suggested making gray the only color scheme and moving any other color scheme (blue, and potentially a high-contrast color scheme) into a plugin integrated into the UI. I heartily support that suggestion.
+1
#6
@
11 years ago
The above patch removes colors.css from being loaded, but only when we are using the default color scheme. I also started on integrating colors.css into wp-admin.css
#7
@
11 years ago
- Focuses ui performance added
- Milestone set to 3.9
- Resolution wontfix deleted
- Status changed from closed to reopened
We're committed to this direction now. It was discussed in IRC, though I am not having luck finding the exact link (my own fault for not doing this earlier). Would be thankful to anybody who can dig it up - it was within the last couple of weeks.
The redesign of 3.8 makes this a much better idea. The default colors.css is @import-ed into each of the alternate color schemes. When using unminified files, this means an extra HTTP request, and a slow one at that. When using minified files, cssmin/clean-css actually inlines the entire file into every single color scheme's colors.css. This makes avoiding a rebuild in point releases very difficult, and now that it is a true overload as opposed to a swap, makes much more sense to merge into the main wp-admin.css file.
Other benefits include:
- A lower barrier to entry for first-time admin CSS patches. It is less than fun to edit a border width and style in one file, and the color in another.
- We will likely reduce file size due to being able to use more shorthand properties. At worst, the size will remain about the same, but there will be no more colors.css to add to that.
There is an _admin.scss file that has to be maintained, and of course consideration for each of the color schemes. However, _admin.scss is already quite diverged from colors.css, so it would be a hand-maintained file from this point forward, anyway.
Once this is complete, we will tackle #26669.
This ticket was mentioned in IRC in #wordpress-dev by helen. View the logs.
11 years ago
#9
@
11 years ago
- Summary changed from Merge the default colors css into wp-admin.css and overload the blue theme colors to Merge the default colors css into wp-admin.css
Been dumping a diff of work at stopping points onto the ticket, for the curious - this is a lot of heartache.
#10
@
11 years ago
- Owner set to helen
- Resolution set to fixed
- Status changed from reopened to closed
In 27106:
#12
@
11 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This needs a change in register_admin_color_schemes()
, see 18380.patch. Otherwise you get a 404 for colors.css.
Not yet tested in build.
Actually, wontfix until we are committed to this direction.