summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-23 08:56:52 +0100
committerYorhel <git@yorhel.nl>2008-12-23 08:56:52 +0100
commit6b7cddf56b0a7a487f087b0cc4fef5306c1b4bba (patch)
tree9b7f62d515f6b5ef8e834431a8b781b981dbd738
parent568fb4cafe60867db9c4450a944f7747e3a3a08e (diff)
Added grey layout for testing purposes and fixed a few bugs with the skin generator
-rw-r--r--static/f/style.css7
-rw-r--r--static/s/test/bg.jpgbin0 -> 33434 bytes
-rw-r--r--static/s/test/bgright.jpgbin0 -> 3062 bytes
-rw-r--r--static/s/test/conf32
-rwxr-xr-xutil/skingen.pl4
5 files changed, 22 insertions, 21 deletions
diff --git a/static/f/style.css b/static/f/style.css
index 2fb12c8d..3de5a486 100644
--- a/static/f/style.css
+++ b/static/f/style.css
@@ -380,13 +380,14 @@ p.browseopts {
text-align: center;
padding: 2px;
}
-p.browseopts a {
+#maincontent p.browseopts a {
padding: 1px 3px;
- color: #fff!important;
+ color: #fff;
border: 1px solid #258;
margin: 0 2px;
}
-p.browseopts a.optselected, p.browseopts a:hover {
+#maincontent p.browseopts a.optselected,
+#maincontent p.browseopts a:hover {
border: 0;
padding: 2px 4px;
}
diff --git a/static/s/test/bg.jpg b/static/s/test/bg.jpg
new file mode 100644
index 00000000..8d61ac55
--- /dev/null
+++ b/static/s/test/bg.jpg
Binary files differ
diff --git a/static/s/test/bgright.jpg b/static/s/test/bgright.jpg
new file mode 100644
index 00000000..c52499ea
--- /dev/null
+++ b/static/s/test/bgright.jpg
Binary files differ
diff --git a/static/s/test/conf b/static/s/test/conf
index d7e19420..5a234e76 100644
--- a/static/s/test/conf
+++ b/static/s/test/conf
@@ -1,18 +1,18 @@
name test
fullname Testlayout
-bodybg #000 // main background color
-maintext #ddd // primary text color
-alttitle #fff // alternative title + menu link color
-link #7bd // primary link color
-tabbg #012 // background color of inactive tabs
-maintitle #123 // text color of the site title
-footer #123 // text color of the footer
-border #258 // primary border color
-standout #e44 // color of 'stand-out' text
-secbg #135 // secondary background color (used on input fields and table headers)
-secborder #35A // secondary border color (used on input fields)
-statok #0c0 // generic 'ok' text color (used for vnlist statuses & category browser)
-statnok #c00 // generoc 'not ok' text color (used for above, and as border for NSFW screenshots)
-boxbg #112233BC // RGBA, background color of the boxes.
-imglefttop 0 // bg.jpg
-imgrighttop 0 // bgright.jpg
+bodybg #fff // main background color
+maintext #333 // primary text color
+alttitle #000 // alternative title + menu link color
+link #000 // primary link color
+tabbg #ddd // background color of inactive tabs
+maintitle #ccc // text color of the site title
+footer #bbb // text color of the footer
+border #666 // primary border color
+standout #c00 // color of 'stand-out' text
+secbg #666 // secondary background color (used on input fields and table headers)
+secborder #000 // secondary border color (used on input fields)
+statok #050 // generic 'ok' text color (used for vnlist statuses & category browser)
+statnok #500 // generoc 'not ok' text color (used for above, and as border for NSFW screenshots)
+boxbg #ccccccbb // RGBA, background color of the boxes.
+imglefttop bg.jpg
+imgrighttop bgright.jpg
diff --git a/util/skingen.pl b/util/skingen.pl
index 4b17edf8..1029e253 100755
--- a/util/skingen.pl
+++ b/util/skingen.pl
@@ -67,7 +67,7 @@ sub writeskin { # $obj
$img = Image::Magick->new(size => '1x1');
$img->Read('xc:'.$o->{bodybg}, 'xc:'.$o->{boxbg});
$img = $img->Flatten();
- $o->{_blendbg} = '#'.join '', map sprintf('%02x', $_*256), $img->GetPixel(x=>1,y=>1);
+ $o->{_blendbg} = '#'.join '', map sprintf('%02x', $_*255), $img->GetPixel(x=>1,y=>1);
my $d = join '', (<DATA>);
$d =~ s/\$$_\$/$o->{$_}/g for (keys %$o);
@@ -187,7 +187,7 @@ b.future, p.locked {
#menulist h2,
#maincontent ul.maintabs li a,
#maincontent ul.maintabs.bottom li a,
-p.browseopts a,
+#maincontent p.browseopts a,
div.thread td,
div.thread td.tc1,
div.vndescription h2,