com web/php: Fixed an issue with the new home page layout where it did not render correctly if the browser window was too small. Now we fix the width
of the main content area to 960px and center it in the page.: include/header.inc styles/home.css
| From: | Paul Dragoonis | Date: | Fri, 08 Jul 2011 05:28:06 +0000 |
| Subject: | com web/php: Fixed an issue with the new home page layout where it did not render correctly if the browser window was too small. Now we fix the width of the main content area to 960px and center it in the page.: include/header.inc styles/home.css |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23506@lists.php.net to get a copy of this message | ||
Commit: 244c5053f54d77e1be599c6d20a9cf681ad609af
Author: Stewart Lord <stewartlord@php.net> Fri, 8 Jul 2011 05:28:06 +0000
Parents: 416375d350c5778215a345ed8352283d9e8fadf4
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=244c5053f54d77e1be599c6d20a9cf681ad609af
Log:
Fixed an issue with the new home page layout where it did not render
correctly if the browser window was too small. Now we fix the width of
the main content area to 960px and center it in the page.
Made the announcement text slightly bigger.
Note the current page is now set as a class on the body tag so that we
can better target styles for specific pages.
Changed paths:
M include/header.inc
M styles/home.css
Diff:
diff --git a/include/header.inc b/include/header.inc
index e200c49..91d4fa8 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -69,7 +69,7 @@ if (isset($shortname) && $shortname) {
<?php endif ?>
</head>
-<body>
+<body class="<?php print $curr; ?>">
<div id="head-beta-warning">
<div id="beta-warning">
diff --git a/styles/home.css b/styles/home.css
index 4b89c3d..b667463 100644
--- a/styles/home.css
+++ b/styles/home.css
@@ -164,6 +164,15 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
/* Main content area */
+body.home div#layout {
+ padding-right: 10px;
+}
+
+section.layout-content.home {
+ width: 960px;
+ margin: 0 auto;
+}
+
div.home-content {
width: 650px;
padding-top: 5px;
@@ -178,8 +187,8 @@ div..home-content {
border-radius: 5px;
padding: 15px;
text-align: center;
- font-family: arial;
margin: 0 auto;
+ font-size: 1.2em;
}
/* 2x2 Featured Content Grid */
@@ -210,7 +219,7 @@ div.featured-content div.bottom-left {
div.featured-content div.separator {
float: left;
- width: 630px;
+ width: 620px;
margin-left: 10px;
border-top: 1px solid #c3add9;
}