Re: Warnings
| From: | Paul Dragoonis | Date: | Wed, 31 Aug 2011 11:08:46 +0000 |
| Subject: | Re: Warnings | ||
| References: | 1 2 3 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-12095@lists.php.net to get a copy of this message | ||
On Tue, Aug 30, 2011 at 3:28 PM, Paul Dragoonis <dragoonis@gmail.com> wrote:
> On Tue, Aug 30, 2011 at 3:08 PM, Hannes Magnusson
> <hannes.magnusson@gmail.com> wrote:
>> On Tue, Aug 30, 2011 at 15:07, Keloran <ava3ar@gmail.com> wrote:
>>> I think the warnings should be made abit more obvious
>>>
>>>
>>> http://uk3.php.net/manual/en/language.types.float.php#warn.float-precision
>>>
>>> view that in the alpha-style
>>
>> Excellent catch.
>
> I'll style this up in a pretty box nothing too drastic but eye-catching enough.
>
Here we are, styled it elegantly enough with a nice image on the left.
The patch is a diff of doc.css and the new image added.
Does the diff view somehow include the image or is that only
preview-able via an actual commit?
Patch attached.
Regards,
Paul Dragoonis.
>>
>> I've added it to the what-needs-to-be-looked-at and how-to-help list
>> on https://wiki.php.net/web/redesign/howtohelp :)
>>
>> -Hannes
>>
>> --
>> PHP Webmaster List Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
Index: images/docs-warning.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: images/docs-warning.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: styles/doc.css =================================================================== --- styles/doc.css (revision 315876) +++ styles/doc.css (working copy) @@ -38,9 +38,7 @@ /* }}} */ - /* {{{ Warning and notes */ -.docs div.warning, .docs div.caution, .docs div.tip, .docs blockquote.note { @@ -56,22 +54,26 @@ border-top: 3px solid #434343; background-color: #EFEFEF; } -.docs div.warning { - border-top: 3px solid #ff4d4d; - background-color: #EFEFEF; -} + .docs div.caution { border-top: 3px solid #F90; background-color: #EFEFEF; } .docs blockquote.note, -.docs div.warning, .docs div.caution, .docs div.tip { font-size: 1em; margin-right: 0.8em; } -.docs div.warning b.warning, +.docs div.warning b.warning { + font-size: 1.7em; +} + +.docs div.warning p { + font-size: 1.1em; + padding-left: 60px; +} + .docs div.caution b.caution, .docs div.tip b.tip { float: left; @@ -83,6 +85,16 @@ .docs div.tip p { margin: 0; } + +.docs div.warning { + text-align: center; + background: url(/images/docs-warning.png) left center no-repeat; + margin: 20px 0 20px 0; + padding: 5px; + border-top: 3px solid #FE7276; + border-bottom: 1px solid #9f8a8a; +} + /* }}} */ .docs .refentry .methodsynopsis { @@ -109,7 +121,6 @@ /* {{{ Examples (highlighting is in theme.css) */ .docs blockquote.note, -.docs div.warning, .docs div.caution, .docs div.tip .docs .cdata pre, @@ -139,19 +150,19 @@ } .docs .doctable tbody tr:nth-child(even) { - background-color: #EFEFEF; + background-color: #EFEFEF; } .docs .doctable { border-top: 1px solid #9F8A8A; - border-bottom: 1px solid #9F8A8A; + border-bottom: 1px solid #9F8A8A; width: 100%; } .docs .doctable th { background-color: #FCFCFC; text-align: center; - border-bottom: 1px solid #9F8A8A; + border-bottom: 1px solid #9F8A8A; } .docs .doctable td, .docs .doctable th { border-right: 1px solid #9F8A8A ; @@ -300,8 +311,8 @@ .docs .layout-menu ul.child-menu-list a { font-size: 13px; border: 0; - color: black; - line-height: 1; + color: black; + line-height: 1; overflow: visible; margin: 0; padding: 0; @@ -322,6 +333,3 @@ .docs #layout .layout-content, .docs #layout #usernotes { margin-left: 272px; } - - -
Index: images/docs-warning.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: images/docs-warning.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: styles/doc.css =================================================================== --- styles/doc.css (revision 315876) +++ styles/doc.css (working copy) @@ -38,9 +38,7 @@ /* }}} */ - /* {{{ Warning and notes */ -.docs div.warning, .docs div.caution, .docs div.tip, .docs blockquote.note { @@ -56,22 +54,26 @@ border-top: 3px solid #434343; background-color: #EFEFEF; } -.docs div.warning { - border-top: 3px solid #ff4d4d; - background-color: #EFEFEF; -} + .docs div.caution { border-top: 3px solid #F90; background-color: #EFEFEF; } .docs blockquote.note, -.docs div.warning, .docs div.caution, .docs div.tip { font-size: 1em; margin-right: 0.8em; } -.docs div.warning b.warning, +.docs div.warning b.warning { + font-size: 1.7em; +} + +.docs div.warning p { + font-size: 1.1em; + padding-left: 60px; +} + .docs div.caution b.caution, .docs div.tip b.tip { float: left; @@ -83,6 +85,16 @@ .docs div.tip p { margin: 0; } + +.docs div.warning { + text-align: center; + background: url(/images/docs-warning.png) left center no-repeat; + margin: 20px 0 20px 0; + padding: 5px; + border-top: 3px solid #FE7276; + border-bottom: 1px solid #9f8a8a; +} + /* }}} */ .docs .refentry .methodsynopsis { @@ -109,7 +121,6 @@ /* {{{ Examples (highlighting is in theme.css) */ .docs blockquote.note, -.docs div.warning, .docs div.caution, .docs div.tip .docs .cdata pre, @@ -139,19 +150,19 @@ } .docs .doctable tbody tr:nth-child(even) { - background-color: #EFEFEF; + background-color: #EFEFEF; } .docs .doctable { border-top: 1px solid #9F8A8A; - border-bottom: 1px solid #9F8A8A; + border-bottom: 1px solid #9F8A8A; width: 100%; } .docs .doctable th { background-color: #FCFCFC; text-align: center; - border-bottom: 1px solid #9F8A8A; + border-bottom: 1px solid #9F8A8A; } .docs .doctable td, .docs .doctable th { border-right: 1px solid #9F8A8A ; @@ -300,8 +311,8 @@ .docs .layout-menu ul.child-menu-list a { font-size: 13px; border: 0; - color: black; - line-height: 1; + color: black; + line-height: 1; overflow: visible; margin: 0; padding: 0; @@ -322,6 +333,3 @@ .docs #layout .layout-content, .docs #layout #usernotes { margin-left: 272px; } - - -