summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-08-05 14:18:33 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-08-05 14:18:33 +0000
commit1d23ac19d0e319e40f8c692c50b8a001e4b11877 (patch)
tree4981b914c0da95ba13a1263d7344d4309825f1e9 /static
parentaf46e97783e282e4b9fee5d06c12ff1582ec25c5 (diff)
Added icons for rlist and vlist statuses and further polished the wishlist and rlist features1.20
git-svn-id: svn://vndb.org/vndb@79 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'static')
-rw-r--r--static/files/def.js12
-rw-r--r--static/files/style.css36
-rw-r--r--static/files/uicons.pngbin0 -> 4404 bytes
3 files changed, 32 insertions, 16 deletions
diff --git a/static/files/def.js b/static/files/def.js
index 96c7fcf2..d377bf09 100644
--- a/static/files/def.js
+++ b/static/files/def.js
@@ -79,14 +79,12 @@ var ddx;var ddy;var dds=null;
function dropDown(e) {
e = e || window.event;
var tg = e.target || e.srcElement;
- if(tg.nodeType == 3)
+ while(tg && (tg.nodeType == 3 || tg.nodeName.toLowerCase() != 'a'))
tg = tg.parentNode;
- if(!dds && (tg.nodeName.toLowerCase() != 'a' || !tg.rel || tg.className.indexOf('dropdown') < 0))
- return;
- if(tg.rel)
+ if(tg && tg.rel)
tg.rel = tg.rel.replace(/ *nofollow */,"");
- if(!dds && !tg.rel)
+ if(!dds && (!tg || !tg.rel || tg.className.indexOf('dropdown') < 0))
return;
if(!dds) {
@@ -97,7 +95,7 @@ function dropDown(e) {
ddy += obj.offsetTop;
} while(obj = obj.offsetParent);
if(tg.className.indexOf('above') >= 0) {
- ddx += 25;
+ ddx += 30;
ddy -= x(tg.rel).offsetHeight - 20;
}
else
@@ -113,7 +111,7 @@ function dropDown(e) {
var mouseY = e.pageY || (e.clientY + document.body.scrollTop + document.documentElement.scrollTop);
var obj = x(dds.rel);
if((mouseX < ddx-25 || mouseX > ddx+obj.offsetWidth+5 || mouseY < ddy-20 || mouseY > ddy + obj.offsetHeight)
- || (tg.nodeName.toLowerCase() == 'a' && tg.className.indexOf('dropdown') >= 0 && tg != dds)) {
+ || (tg && tg.className.indexOf('dropdown') >= 0 && tg != dds)) {
obj.style.left = '-500px';
dds = null;
}
diff --git a/static/files/style.css b/static/files/style.css
index bda1e368..ded407bd 100644
--- a/static/files/style.css
+++ b/static/files/style.css
@@ -492,10 +492,11 @@ div.rlistdd ul, div.rlistdd ul li {
float: left;
}
div.rlistdd a, div.rlistdd b {
- padding: 1px 5px;
+ padding: 0px 5px;
}
div.dropdown ul.full a, div.dropdown ul.full b {
width: 190px;
+ padding: 1px 5px;
}
div.dropdown ul.full, div.dropdown ul.full li {
clear: left;
@@ -656,7 +657,7 @@ a.rss {
overflow: hidden;
float: right;
}
-.icons {
+.icons, .uicons {
background: url(/files/icons.png) no-repeat;
width: 16px;
height: 14px;
@@ -668,6 +669,11 @@ a.rss {
border: 0;
text-decoration: none;
}
+.uicons {
+ width: 14px;
+ margin: 0;
+ background: url(/files/uicons.png) no-repeat;
+}
.icons.lang {
width: 13px;
height: 11px;
@@ -675,7 +681,7 @@ a.rss {
/* see def.js for an ugly FF hack */
}
.icons.par, .icons.tri, .icons.com { width: 11px; }
-acronym.icons { cursor: default; }
+acronym.icons, acronym.uicons { cursor: default; }
.icons.oth { background: none; }
.icons.drc { background-position: 0px 0px; }
.icons.lin { background-position: 0px -14px; }
@@ -720,6 +726,19 @@ acronym.icons { cursor: default; }
.icons.zh { background-position: -61px -77px; }
.icons.ko { background-position: -61px -88px; }
+.uicons.no { background-position: 0px 0px; }
+.uicons.r0 { background-position: 0px -14px; }
+.uicons.v0 { background-position: 0px -14px; }
+.uicons.r1 { background-position: 0px -28px; }
+.uicons.r2 { background-position: 0px -42px; }
+.uicons.r3 { background-position: 0px -56px; }
+
+.uicons.r4 { background-position: -14px 0px; }
+.uicons.v1 { background-position: -14px -14px; }
+.uicons.v2 { background-position: -14px -28px; }
+.uicons.v3 { background-position: -14px -42px; }
+.uicons.v4 { background-position: -14px -56px; }
+
/* tables */
@@ -766,16 +785,15 @@ b.diff_del { font-weight: normal; background-color: #fcc; }
#rli tr.relhid { background-color: #fff!important; }
#rli td.relhid, #relhidpar { cursor: pointer; }
-#rli td.relnone { color: #aaa };
+#rli td.relnone { color: #aaa }
#rli .tc1 { width: 560px; }
#rli .tc2 { width: 80px; }
#rli .tc3 { width: 50px; }
#rli .tc1_1 { width: 70px; padding-left: 20px }
#rli .tc1_2 { width: 40px; padding:0; text-align: right; }
-#rli .tc1_3 { width: 370px; }
-#rli .tc1_4 { width: 60px }
+#rli .tc1_3 { width: 430px; }
#rli .tc1_3 a { color: #203c36; }
-#rli .tc1_6 { text-align: right }
+#rli .tc1_5 { text-align: right }
#tre tr { background-color: #fff!important; }
#tre tr.lang { background-color: #f5f5f5!important; font-style: italic; }
@@ -784,8 +802,8 @@ b.diff_del { font-weight: normal; background-color: #fcc; }
#tre .tc2 { width: 50px; text-align: center; white-space: nowrap; }
#tre .tc3, #tre .tc6 { width: 16px; margin: 0; padding: 0; white-space: nowrap; text-align: right }
#tre .tc3 { width: 70px; }
-#tre .tc5 { width: 25px; text-align: right; padding-right: 10px; }
-#tre .tc5 a { display: block; width: 25px; text-align: right;text-decoration: none; }
+#tre .tc5 { width: 30px; text-align: right; padding: 0 10px 0 0; }
+#tre .tc5 a { display: block; width: 30px; text-align: right;text-decoration: none; }
#tbv .tc2 acronym, #tbv .tc3 acronym {
zoom: 1;
diff --git a/static/files/uicons.png b/static/files/uicons.png
new file mode 100644
index 00000000..09f8da17
--- /dev/null
+++ b/static/files/uicons.png
Binary files differ