Skip to content

Commit

Permalink
Fixed some homepage layout issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonlevi committed Dec 15, 2013
1 parent cc158a5 commit b953858
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 34 deletions.
6 changes: 1 addition & 5 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@
<p>PHP is a popular general-purpose scripting language that is especially suited to web development.</p>
<p>Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.</p>
</div>
<div class="background"></div>
<div class="download">
<div class="download-php">
<h2>Download PHP</h2>
EOF;
Expand All @@ -97,8 +95,7 @@
foreach ($row as $version => $release) {
$intro .= "
<div class='span6'>
<p><a class='download-link' href='/downloads.php#v$version'>$version</a></p>
<p class='notes'><a href='/ChangeLog-5.php#$version'>Release Notes</a></p>
<p><a class='download-link' href='/downloads.php#v$version'>$version</a> <a class='notes' href='/ChangeLog-5.php#$version'>Release Notes</a></p>
</div>
";
}
Expand All @@ -108,7 +105,6 @@
}
}
$intro .= <<<EOF
</div>
</div>
</div>
EOF;
Expand Down
37 changes: 12 additions & 25 deletions styles/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
#intro .blurb p {
line-height:1.8;
}
#intro .blurb p:first-child {
margin-top:0;
}
#intro .blurb p:last-child {
margin-bottom:0;
}
Expand All @@ -44,41 +47,25 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
display:table-row;
}

#intro .background {
display:none;
#intro .download {
background:rgba(255,255,255,.1);
position:absolute;
top:0;
right:0;
height:100%;
}
@media (min-width: 758px) {
#intro .background {
display:block;
}
}
#intro .download-php {
text-align:left;
margin:0 1.5em;
padding:.75em 0;
}
#intro .download-php .row-fluid p {
margin-top:0;
margin-bottom:0;
padding:.75em 1.5em;
}
#intro .download p {
margin:0;
}
#intro .download-php .row-fluid p.notes {
#intro .download a.notes {
font-size:.75em;
line-height:2;
}
.download-php a {
#intro .download a {
color:#ccc;
border:0;
}
.download-php a.download-link {
border:0;
#intro .download a.download-link {
color:#fff;
}
.download-php a.download-link:before {
#intro .download a.download-link:before {
content: "\21AF \2003";
}

Expand Down
4 changes: 0 additions & 4 deletions styles/theme-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -2089,10 +2089,6 @@ div.soft-deprecation-notice blockquote.sidebar {
@media (min-width:980px) {
}
@media (min-width:1200px) {
#intro p {
line-height:1.2;
margin:0 0 1.2em;
}
}
@media (min-width:1548px) {
#layout {
Expand Down

0 comments on commit b953858

Please sign in to comment.