Commit: 4fd05a77aa5fadff5e7708dc6477f27c7bfcbbc4 Author: Hannes Magnusson <[email protected]> Thu, 21 Nov 2013 19:21:19 -0800 Parents: 14450e856f313813844e472f2815a644c17d75eb Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4fd05a77aa5fadff5e7708dc6477f27c7bfcbbc4 Log: Sync the frontpage news with docs & download styles Changed paths: M index.php M styles/home.css M styles/theme-base.css M styles/theme-medium.css Diff: diff --git a/index.php b/index.php index 3012972..59b6017 100644 --- a/index.php +++ b/index.php @@ -73,7 +73,7 @@ foreach($frontpage as $entry) { $link = substr($entry["id"], 15); // Strip http://php.net/ $date = date_format(date_create($entry["updated"]), 'Y-m-d'); $content .= '<div class="newsentry">'; - $content .= '<div class="newstitle"><a href="'. $MYSITE.$link .'">' . $entry["title"] . '</a></div>'; + $content .= '<h3 class="newstitle"><a href="'. $MYSITE.$link .'">' . $entry["title"] . '</a></h3>'; $content .= '<div class="newstime">' . $date . '</div>'; $content .= '<div class="newscontent">'; $content .= $entry["content"]; diff --git a/styles/home.css b/styles/home.css index a507637..ece2a2f 100644 --- a/styles/home.css +++ b/styles/home.css @@ -64,15 +64,39 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99 .newsentry { - margin:0.66666666666667em 0; + margin: 3em 0 4em; + position: relative; + background-color: rgb(238, 238, 246); + display: block; + float: none; + border-top: solid 0.125em rgb(102, 102, 153); + border-bottom: solid 1px rgb(202, 202, 227); + -moz-border-radius: 0 0 2px 2px; + border-radius: 0 0 2px 2px; + padding: 0.75em 0.625em; + box-shadow: 2px 0 2px -2px rgb(212, 212, 232) inset, -2px 0 2px -2px rgb(212, 212, 232) inset; +} +.newsentry h3 { + color: #333; + font-size: 1.125em; + line-height: 1.33; + margin: 0; + padding: 0; + position: absolute; + top: -2em; + left: 0; + right: 0; } -.newsentry .newstitle a { - background-color: #ebebf4; - color:#333; - padding: .75em 1em; +.newsentry h3 .release-state { + float: right; + opacity: 0.8; +} +.newsentry h3 a { + color: #000; + text-decoration: none; + padding: .35em 0em; display: block; } - .newsentry .newstitle a::after { float:right; content:"ยป"; diff --git a/styles/theme-base.css b/styles/theme-base.css index c2742ba..3771100 100755 --- a/styles/theme-base.css +++ b/styles/theme-base.css @@ -2468,26 +2468,6 @@ table.standard th.subr { text-align: right; } -/* News styles. */ -.newsImage img { - margin-left: 1.5em; - margin-bottom: .75em; -} -.newsItem { - margin:0 0 .75em; - border-bottom: solid 0.25em; -} -.newsItem:last-child { - border-bottom: 0; -} -.newsItem .published { - display:inline-block; - font-size:.75em; - line-height: 2; -} -.newsItem abbr.published { - margin-bottom:-1px; -} .spanning-content { width:960px; margin: 0 auto; diff --git a/styles/theme-medium.css b/styles/theme-medium.css index a8f8b4d..21bcf6a 100755 --- a/styles/theme-medium.css +++ b/styles/theme-medium.css @@ -454,11 +454,3 @@ div.elephpants img:focus { /* }}} */ -/* {{{ News */ -.newsItem { - border-color: #99c; -} -.newsItem .published { - color:#333; -} -/* }}} */ -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
