Re: svn: /web/php/trunk/styles/ reset.css theme.css
| From: | Hannes Magnusson | Date: | Tue, 11 Jan 2011 13:58:09 +0000 |
| Subject: | Re: svn: /web/php/trunk/styles/ reset.css theme.css | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-10386@lists.php.net to get a copy of this message | ||
On Mon, Jan 10, 2011 at 11:05, Adam Harvey <aharvey@php.net> wrote:
> aharvey Mon, 10 Jan 2011 10:05:46 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=307336
>
> Log:
> Reset HTML5 elements in the reset stylesheet by adding them to the master
> element list and adding a display: block rule for the block level elements.
>
> The original plan here was to replace Eric Meyer's reset stylesheet with
> Richard Clark's HTML5 reset stylesheet, but some of the changes he's made
> aren't really ones we want, such as the different handling of list-style by
> default, not resetting text-decoration on anchors, and removing a couple of
> deprecated elements that we're still using (hello <acronym>). Since we'd have
> to modify whichever reset stylesheet we use, I've stuck with the old one as the
> base for now, since we already know it works with the site.
>
> Changed paths:
> U web/php/trunk/styles/reset.css
> U web/php/trunk/styles/theme.css
>
> Modified: web/php/trunk/styles/reset.css
> ===================================================================
> --- web/php/trunk/styles/reset.css 2011-01-10 09:40:10 UTC (rev 307335)
> +++ web/php/trunk/styles/reset.css 2011-01-10 10:05:46 UTC (rev 307336)
> @@ -6,7 +6,12 @@
> b, u, i, center,
> dl, dt, dd, ol, ul, li,
> fieldset, form, label, legend,
> -table, caption, tbody, tfoot, thead, tr, th, td {
> +table, caption, tbody, tfoot, thead, tr, th, td,
> +section, article, aside, hgroup, header, footer,
> +nav, figure, figcaption, video, audio, embed,
> +mark, progress, meter, time, ruby, rt, rp, wbr,
> +canvas, command, details, datalist, keygen,
> +output {
> margin: 0;
> padding: 0;
> border: 0;
> @@ -40,4 +45,9 @@
> table {
> border-collapse: collapse;
> border-spacing: 0;
> -}
> \ No newline at end of file
> +}
> +
> +/* Ensure HTML5 block elements are rendered so. */
> +section, article, aside, header, footer, nav, figure {
> + display: block;
> +}
I think this fixes the Firefox issue for .layout-content, so the
display:block can probably be removed from there..
-Hannes