From 4f3a842900983985526b99c62ea2b2ee5949011f Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Fri, 27 Dec 2013 16:49:59 -0700 Subject: [PATCH] Standardized headers to use `.title`; this is actually an old convention we're re-enforcing. It should be much easier to create these headers now. --- conferences/index.php | 2 +- downloads.php | 2 +- index.php | 2 +- styles/home.css | 40 ++++---------------------- styles/theme-base.css | 63 +++++++++++++++++++++++++++++++---------- styles/theme-medium.css | 24 +++------------- ug.php | 7 ++--- 7 files changed, 64 insertions(+), 76 deletions(-) diff --git a/conferences/index.php b/conferences/index.php index 0fc5b8903..a0810c44e 100644 --- a/conferences/index.php +++ b/conferences/index.php @@ -32,7 +32,7 @@ foreach($frontpage as $entry) { $id = parse_url($entry["id"], PHP_URL_FRAGMENT); $date = date_format(date_create($entry["updated"]), 'Y-m-d'); $content .= '
'; - $content .= '

' . $entry["title"] . '

'; + $content .= '

' . $entry["title"] . '

'; $content .= '
'; $content .= sprintf('', $entry["newsImage"]["link"], $entry["newsImage"]["content"]); $content .= '
'; diff --git a/downloads.php b/downloads.php index 9e116adf9..c36b481e1 100644 --- a/downloads.php +++ b/downloads.php @@ -96,7 +96,7 @@ site_header("Downloads", -

+

PHP (Changelog) diff --git a/index.php b/index.php index fdf46ebea..5f3af5b55 100644 --- a/index.php +++ b/index.php @@ -68,7 +68,7 @@ foreach($frontpage as $entry) { $content .= <<
$date
-

{$entry["title"]}

+

{$entry["title"]}

{$entry["content"]}
diff --git a/styles/home.css b/styles/home.css index 442bcf9d5..33e852d00 100644 --- a/styles/home.css +++ b/styles/home.css @@ -66,41 +66,13 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99 content: "\21AF \2003"; } - - -.newsentry { - margin: 0 0 2.25em; - position: relative; +.home .newsentry .newstitle a:after { + content:"\20 \00bb"; + color:#666; } -.newsentry h3 { - font-weight:normal; - margin-left: -25px; - padding-left: 25px; - padding-right: 25px; - margin-right: -25px -} -.newsentry h3 .release-state { - float: right; - opacity: 0.8; -} -.newsentry h3 a { - color: #000; - border:0; -} -.newsentry .newstitle a::after { - content:"\20 \00bb"; - color:#666; -} -.newsentry .newstime { - float:right; - margin-top:.5em; - margin-right:.444444444em; -} - -.newsentry .newsimage a { - float: right; - border: 0; - padding: 10px; +.home .newsentry .newstime { + margin-top:8px; + margin-right:12px; } p.archive { diff --git a/styles/theme-base.css b/styles/theme-base.css index ea6fea8b5..2a6a10e92 100755 --- a/styles/theme-base.css +++ b/styles/theme-base.css @@ -55,6 +55,9 @@ html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } +a { + border-bottom:1px solid; +} a:focus { outline: thin dotted #333; outline-offset: -2px; @@ -485,25 +488,18 @@ hr { position: relative; margin-top:1.5em; } - -#usernotes h3.title { - border-bottom: 0.166666667em solid; - margin-bottom: -0.166666667em; - line-height:2.666666667; -} - #usernotes .count { + display:inline-block; + vertical-align: text-top; padding: 0.333333333em .5em; font-size: 0.666666667em; - line-height:2; - vertical-align: middle; } /* Add a note buttons. */ #usernotes .action { display: block; - top: 1em; - right: 0; + top: 8px; + right: 12px; position: absolute; text-align: right; } @@ -1198,13 +1194,14 @@ fieldset { } } -.newsentry h3, -.downloads .content-header, -.refsect1 h3.title { - padding:0.333333333em 0.444444444em; +.title { + padding:6px 12px; border-top:2px solid #669; border-bottom:1px solid; } +.title a { + border:0; +} .refsect1 > *:last-child { margin-bottom:0; } @@ -1216,6 +1213,19 @@ fieldset { margin-top:0; } +.country { + position: relative; + padding:0 12px; +} +.country .countrytitle { + margin-left:-12px; + margin-right:-12px; +} +.country .title img { + position: absolute; + right: 12px; +} + /* {{{ General styles (p, parameters, initializers, ...) */ .refsect1 .parameter { @@ -1884,5 +1894,28 @@ aside.tips div.inner { } /* }}} */ +/* {{{ News */ +.newsentry { + margin: 0 0 1.5em; + position: relative; +} +.newsentry h3 { + font-weight:normal; +} +.newsentry h3 .release-state { + float: right; + opacity: 0.8; +} +.newsentry .newstime { + float:right; +} + +.newsentry .newsimage a { + float: right; + border: 0; + padding: 10px; +} +/* }}} */ + // vim: set ts=2 sw=2 et: diff --git a/styles/theme-medium.css b/styles/theme-medium.css index 1da38dfd4..87fe62461 100755 --- a/styles/theme-medium.css +++ b/styles/theme-medium.css @@ -54,7 +54,6 @@ h1, h2, h3, h4, h5, h6 { a:link, a:visited { color: #369; - border-bottom: 1px solid; } a:hover, @@ -106,13 +105,7 @@ h1.refname { color:#f80; } -.newsentry h3 a { - color: #446; - border-color:#C6C6E2; -} -.newsentry h3, -.downloads .content-header, -.refsect1 h3.title { +.title { color: #446; background: #E3E3F1; border-radius:0 0 2px 2px; @@ -122,6 +115,9 @@ h1.refname { inset 1px 0 1px -1px #C6C6E2, inset -1px 0 1px -1px #C6C6E2 } +.title a { + color: #446; +} .methodname b, .methodname strong, @@ -140,7 +136,6 @@ h1.refname { color:#737373; } - /* {{{ Warnings, Tips and Notes */ #flash-message .success { background:#E6F2D9; @@ -210,10 +205,6 @@ div.warning:before { /* {{{ User notes */ -#usernotes h3.title { - border-color:#669; - color:#262626; -} #usernotes .count { background-color: #669; color: #fff; @@ -489,12 +480,5 @@ div.elephpants img:focus { text-align: center; color: #fff; } -.country { - position: relative; -} -.country .title img { - position: absolute; - right: 0px; -} // vim: set ts=2 sw=2 et: diff --git a/ug.php b/ug.php index 12ee85e80..fd5f8a19b 100644 --- a/ug.php +++ b/ug.php @@ -6,7 +6,6 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; site_header("Hypertext Preprocessor", array( 'current' => 'community', - 'css' => array('home.css'), //'intro' => $intro ) ); @@ -60,11 +59,11 @@ foreach($groupped as $country => $events) { $entry = ""; $entry .= '
'; - $entry .= '

' . $countrycode; + $entry .= '

' . $countrycode; $entry .= '' . $countrycode . ''; $entry .= '

'; if ($events["ug"]) { - $entry .= "

User Groups in $countrycode

"; + $entry .= "

User Groups in $countrycode

"; } foreach($events["ug"] as $event) { @@ -80,7 +79,7 @@ foreach($groupped as $country => $events) { $entry .= '
'; } if ($events["conf"]) { - $entry .= "

Conferences in $countrycode

"; + $entry .= "

Conferences in $countrycode

"; } foreach($events["conf"] as $event) { $link = $event["url"];