From a4262f8f8f293681971f4b8b4bbaae493f6b6e97 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 21 Sep 2013 16:24:52 +1200 Subject: [PATCH] cosmetic tweaks: lowercase first character, image alignment css, newest projects first --- data/0010-oldutil/README.txt | 3 --- rebuild.php | 5 +++-- static/style.css | 7 ++++++- 3 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 data/0010-oldutil/README.txt diff --git a/data/0010-oldutil/README.txt b/data/0010-oldutil/README.txt deleted file mode 100644 index 523b80a..0000000 --- a/data/0010-oldutil/README.txt +++ /dev/null @@ -1,3 +0,0 @@ -assorted old projects - -A longer description goes here. \ No newline at end of file diff --git a/rebuild.php b/rebuild.php index d3ab615..2819c61 100644 --- a/rebuild.php +++ b/rebuild.php @@ -127,6 +127,7 @@ class CProject { if ($file == 'README.txt') { $this->longdesc = file_get_contents($this->dir.'README.txt'); $this->shortdesc = array_shift(explode("\n", $this->longdesc)); + $this->shortdesc[0] = strtolower($this->shortdesc[0]); // cosmetic lowercase continue; } @@ -178,7 +179,7 @@ class CProject {
-
+
ABOUT @@ -263,7 +264,7 @@ function buildall() { // List projects $ls = scandir(BASEDIR.'data'); - sort($ls); + rsort($ls); $projects = array(); foreach($ls as $dirname) { if ($dirname[0] == '.') continue; diff --git a/static/style.css b/static/style.css index 0960e8f..d9ff89d 100644 --- a/static/style.css +++ b/static/style.css @@ -63,7 +63,12 @@ html, body { .projbody { position:absolute; left:0; - right: 64px; +} +.projbody_halfw { + right: 74px; +} +.projbody_fullw { + right:0; } .projimg { position:absolute;