com web/php: Fiddle a little with the menu to fit more content: js/common.js styles/theme-base.css
| From: | Hannes Magnusson | Date: | Thu, 26 Dec 2013 23:37:15 +0000 |
| Subject: | com web/php: Fiddle a little with the menu to fit more content: js/common.js styles/theme-base.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17796@lists.php.net to get a copy of this message | ||
Commit: a42d76ae88f43a3ac538c7d4b3cce7a5ff70b6a0
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 26 Dec 2013 15:37:15 -0800
Parents: 0abf586bc4026268597a7e18fa6486614eeff71d
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a42d76ae88f43a3ac538c7d4b3cce7a5ff70b6a0
Log:
Fiddle a little with the menu to fit more content
Also made it fixed (and transparent!) so we don't have to scroll to it
Changed paths:
M js/common.js
M styles/theme-base.css
Diff:
diff --git a/js/common.js b/js/common.js
index 98c9aa1..4ef9b92 100755
--- a/js/common.js
+++ b/js/common.js
@@ -57,7 +57,6 @@ Mousetrap.bind('up up down down left right left right b a enter',
function() {
$(".brand img").attr("src", "/images/php_konami.gif");
});
Mousetrap.bind("?", function() {
- $.scrollTo(0, 10);
$("#trick").slideToggle();
});
/*
diff --git a/styles/theme-base.css b/styles/theme-base.css
index 00a7141..e15a8b6 100755
--- a/styles/theme-base.css
+++ b/styles/theme-base.css
@@ -1737,23 +1737,18 @@ div.soft-deprecation-notice blockquote.sidebar {
#trick {
display: none;
background-color: #333;
- border: .5em solid #9999CC;
- border-right: 0;
- border-left: 0;
- border-top: 0;
height: 100%;
width: 100%;
+ opacity: 0.9;
+ position: fixed;
+ top: 50px;
+ z-index: 5000;
}
#trick div {
margin: 0 auto;
}
-#trick dt {
- margin: 0 auto;
-}
#trick dt, #trick dl {
color: #eee;
- font-weight: bold;
- margin-top: 1em;
}
#trick dl {
display: inline-block;
@@ -1762,9 +1757,8 @@ div.soft-deprecation-notice blockquote.sidebar {
#trick a {
color: #eee;
display: block;
- padding: 2px;
- color: #ccc;
border-bottom: none;
+ padding: 1px;
}
/* {{{ Right-hand sidebar */
aside.tips {