[wp-trac] [WordPress Trac] #17892: Minimize references to fonts in the Dashboard stylesheets
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 25 13:53:38 UTC 2011
#17892: Minimize references to fonts in the Dashboard stylesheets
-------------------------------+-----------------------------
Reporter: RanYanivHartstein | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: minor | Keywords:
-------------------------------+-----------------------------
The stylesheets under wp-admin/css includes several redundant references
to the default font stack, for example:
{{{
#dashboard_recent_comments .comment-meta .approve {
font-style: italic;
font-family: Arial, "Bitstream Vera Sans", Helvetica, Verdana,
sans-serif;
font-size: 10px;
}
}}}
These fonts are also references under global.css, for the body element and
other elements. All these references are redundant - they make the
stylesheets needlessly complicated, and they make it much harder to re-
style the Dashboard with different fonts.
The problem is much more pronounced in the RTL stylesheets - see for
example this snippet, which repeats dozens of times in different
selectors:
{{{
.widefat th {
font-family: Tahoma, Arial, sans-serif;
}
}}}
The main issue for me is the difficulty in reseting these fonts to Arial
for the Hebrew version. This would cause similar issues for anyone
developing Dashboard themes.
I propose we minimize these calls to the very minimum necessary - I'm not
aware of any reason to have so many redundant references, instead of
inheriting the styles from just one. I'll write the patch for this, I just
wanted to present the issue first in case there actually is a good reason
and I'm just missing it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17892>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list