com web/php: Sync the frontpage news with docs & download styles: index.php styles/home.css styles/theme-base.css styles/theme-medium.css
| From: | Hannes Magnusson | Date: | Fri, 22 Nov 2013 03:21:19 +0000 |
| Subject: | com web/php: Sync the frontpage news with docs & download styles: index.php styles/home.css styles/theme-base.css styles/theme-medium.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17176@lists.php.net to get a copy of this message | ||
Commit: 885bee0160cb877e699115acd97fd02d6f1a18fd
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 21 Nov 2013 19:21:19 -0800
Parents: a2c4c5b62ad4ed703833ed12d6aebb3271fa4b1b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=885bee0160cb877e699115acd97fd02d6f1a18fd
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;
-}
-/* }}} */