com web/php: Add some style overrides to improve the credit styling on the beta site.: credits.php styles/credits.css
| From: | Adam Harvey | Date: | Fri, 07 Sep 2012 03:53:08 +0000 |
| Subject: | com web/php: Add some style overrides to improve the credit styling on the beta site.: credits.php styles/credits.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14622@lists.php.net to get a copy of this message | ||
Commit: 025cd0e34655a94e95682887eb0ec12306046d6b
Author: Adam Harvey <aharvey@php.net> Fri, 7 Sep 2012 11:53:08 +0800
Parents: d0a2af74c064005b2f7633b473d71e201db3c664
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=025cd0e34655a94e95682887eb0ec12306046d6b
Log:
Add some style overrides to improve the credit styling on the beta site.
Changed paths:
M credits.php
A styles/credits.css
Diff:
diff --git a/credits.php b/credits.php
index abfdb69..d2dd19e 100644
--- a/credits.php
+++ b/credits.php
@@ -23,7 +23,7 @@ $credits = str_replace(
// If there is something left, print it out
if ($credits) {
- site_header("Credits", array("current" => "community"));
+ site_header("Credits", array("current" => "community",
'css' => array('credits.css')));
echo $credits;
site_footer();
}
diff --git a/styles/credits.css b/styles/credits.css
new file mode 100644
index 0000000..64b7a57
--- /dev/null
+++ b/styles/credits.css
@@ -0,0 +1,29 @@
+/* Overrides for the default phpcredits() styling in credits.php. */
+
+h1 {
+ margin-bottom: 0.7em;
+}
+
+table {
+ border-bottom: solid 0.25em #669;
+ width: 100% !important;
+}
+
+table tr:last-child td, table tr:last-child th {
+ padding-bottom: 1.6em;
+}
+
+.h:first-child th {
+ color: #333;
+ font-size: 1.5em;
+ font-weight: normal;
+ line-height: 2em;
+}
+
+th {
+ text-align: left;
+}
+
+td:first-child, th:first-child {
+ width: 33%;
+}