Re: alpha.php.net - menu tweak
| From: | Stewart Lord | Date: | Thu, 28 Jul 2011 06:28:30 +0000 |
| Subject: | Re: alpha.php.net - menu tweak | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-11787@lists.php.net to get a copy of this message | ||
On 2011-07-26, at 1:13 PM, Wojciech Kupiec wrote:
> Stewart,
>
> Could you please consider below css tweak.
> The aim is to reduce menu items height to better fit if there is too many drop-down-menu items
> (like in Documentation).
>
> Index: styles/theme.css
> ===================================================================
> --- styles/theme.css (revision 313745)
> +++ styles/theme.css (working copy)
> @@ -395,6 +395,7 @@
> #mega-drop-down div.children {
> border-bottom-width: 12px;
> border-bottom-style: solid;
> + padding-top: 1em;
> padding-bottom: 1em;
> }
>
> @@ -411,7 +412,6 @@
>
> #mega-drop-down dt, #mega-drop-down li {
> font-weight: bold;
> - margin-top: 1em;
> }
>
> #mega-drop-down dd {
> @@ -422,7 +422,7 @@
>
> #mega-drop-down a {
> display: block;
> - padding: 4px;
> + padding: 2px;
> color: #ccc;
> }
>
> @@ -629,4 +629,4 @@
> table.standard td {
> padding: 5px 10px;
> vertical-align: middle;
> -}
> \ No newline at end of file
> +}
Thanks Wojak,
I have committed the padding change on links, but I felt it was important to keep the margin-top on
the li's. Otherwise we lost the separation between different sections in the menu.
Stew