com web/php: Fixing a z-index issue with the beta warning bar. Also restructuring the bar width so it will never wrap onto two lines:
include/header.inc styles/home.css
| From: | Paul Dragoonis | Date: | Thu, 04 Jul 2013 11:47:55 +0000 |
| Subject: | com web/php: Fixing a z-index issue with the beta warning bar. Also restructuring the bar width so it will never wrap onto two lines: include/header.inc styles/home.css |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16213@lists.php.net to get a copy of this message | ||
Commit: fdfafd87f2093a987bef917088bc50358eb33257
Author: Paul Dragoonis <dragoonis@gmail.com> Thu, 4 Jul 2013 12:47:55 +0100
Parents: 781929c217ca383b2569be8549a310729313f47a
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=fdfafd87f2093a987bef917088bc50358eb33257
Log:
Fixing a z-index issue with the beta warning bar. Also restructuring the bar width so it will never
wrap onto two lines
Changed paths:
M include/header.inc
M styles/home.css
Diff:
diff --git a/include/header.inc b/include/header.inc
index 5191ab0..0b9cca4 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -84,12 +84,10 @@ if (isset($shortname) && $shortname) {
<body class="<?php print $curr; ?> <?php echo $classes; ?>">
<div id="head-beta-warning">
- <div id="beta-warning">
+ <p id="beta-warning">
+ <span class="blurb">Welcome to the php.net beta site. If you want to revert
back, <a href="?setbeta=0">click here</a></span>
<a href="#" id="beta-warning-close">X</a>
- <span class="blurb">
- Welcome to the php.net beta site. If you want to revert back, <a
href="?setbeta=0">click here</a>
- </span>
- </div>
+ </p>
</div>
<nav id="headnav">
diff --git a/styles/home.css b/styles/home.css
index 820c4eb..7c52eb5 100644
--- a/styles/home.css
+++ b/styles/home.css
@@ -155,19 +155,18 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
#head-beta-warning {
background-color: #99C;
- display: none;
+ /*display: none;*/
position: fixed;
top: 0px;
left: 0px;
width: 100%;
- z-index: 100;
+ z-index: 999;
}
#beta-warning {
margin: 0 auto;
padding: 0.3em;
- width: 50%;
- display: none;
+ text-align: center;
}
#beta-warning .blurb {
@@ -175,7 +174,6 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
line-height: 1.0em;
vertical-align: middle;
color: #EEE;
- display: none;
}
#beta-warning .blurb a {
@@ -187,18 +185,16 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
}
#beta-warning-close {
- display: block;
- float: right;
background-color: #333;
color: #EEE;
font-weight: bold;
text-decoration: none;
- margin-top: 0;
+ margin: 0 0 0 1em;
height: 1.2em;
line-height: 1.2em;
vertical-align: middle;
width: 1.2em;
- padding: 0.2em;
+ padding: 0.2em 0.5em 0.2em 0.5em;
text-align: center;
border-radius: 5px;
-moz-border-radius: 5px;