summaryrefslogtreecommitdiff
path: root/static/f
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-21 11:41:19 +0100
committerYorhel <git@yorhel.nl>2008-12-21 11:41:19 +0100
commit568fb4cafe60867db9c4450a944f7747e3a3a08e (patch)
tree78aeac1f6de246e08bde3e53de797417bad7cd39 /static/f
parent7ad6213b615f925684bd5afd52f064c7e29653fa (diff)
Made the category colors on VN edit changable in CSS
...but not yet in the skin generator, as I haven't really decided yet whether to generate those colors based on the other colors, or to make them configurable from the skin config (= more work for the people who create the skins)
Diffstat (limited to 'static/f')
-rw-r--r--static/f/forms.js7
-rw-r--r--static/f/style.css3
2 files changed, 4 insertions, 6 deletions
diff --git a/static/f/forms.js b/static/f/forms.js
index 2408dd2e..8832e2c1 100644
--- a/static/f/forms.js
+++ b/static/f/forms.js
@@ -75,12 +75,7 @@ function catLoad() {
}
function catSet(id, rnk) {
- // doesn't work very nice with skins...
- var c = rnk == 0 ? '' :
- rnk == 1 ? '#0c0' :
- rnk == 2 ? '#cc0' : '#c00';
- x('b_'+id).style.color = c;
- x('cat_'+id).style.color = c;
+ x('cat_'+id).className = 'catsel_'+rnk;
x('b_'+id).innerHTML = rnk;
}
diff --git a/static/f/style.css b/static/f/style.css
index cbb012f5..2fb12c8d 100644
--- a/static/f/style.css
+++ b/static/f/style.css
@@ -693,6 +693,9 @@ a.help {
width: 160px;
border: none
}
+.catsel_1 { color: #0c0!important }
+.catsel_2 { color: #cc0!important }
+.catsel_3 { color: #c00!important }
#jt_box_relations table { margin-bottom: 10px; }
#jt_box_relations h2 { margin: 0 0 3px 0px; }