summaryrefslogtreecommitdiffstats
path: root/webroot
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-17 18:00:04 -0700
committerraylu <raylu@mixpanel.com>2011-07-17 18:15:47 -0700
commitf5e76dbc7caeda4bc4984f00753220fe3bfbb7b2 (patch)
tree63978e823a10ed6a2ce2a6da37cf079e5fc24b1a /webroot
parenta4c75f37d8b696af83b14523f0b168d915418c90 (diff)
downloadotakuhub-f5e76dbc7caeda4bc4984f00753220fe3bfbb7b2.tar.xz
more view styling
Diffstat (limited to 'webroot')
-rw-r--r--webroot/css/view.css33
-rw-r--r--webroot/js/functions.js6
2 files changed, 29 insertions, 10 deletions
diff --git a/webroot/css/view.css b/webroot/css/view.css
index 4b0a9a1..7d10164 100644
--- a/webroot/css/view.css
+++ b/webroot/css/view.css
@@ -15,13 +15,31 @@ section#cast {
float: left;
width: 620px;
}
-section#cast p {
- margin: 0;
+section#cast a {
+ padding: 4px 7px;
+ border: 1px solid #aaa;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+ background: #ddd;
+ background: -moz-linear-gradient(top, #ddd, #bbb);
+ background: -webkit-linear-gradient(top, #ddd, #bbb);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb');
+ color: #111;
+}
+section#cast a:hover {
+ background: #eee;
+ background: -moz-linear-gradient(top, #eee, #ccc);
+ background: -webkit-linear-gradient(top, #eee, #ccc);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#cccccc');
}
section#cast table {
table-layout: fixed;
display: none;
}
+section#cast tr.char {
+ border-top: 1px solid #ccc;
+}
section#cast td {
padding: 3px;
}
@@ -29,10 +47,10 @@ section#cast td:nth-child(1) {
width: 60px;
}
section#cast td:nth-child(2) {
- width: 250px;
+ width: 300px;
}
section#cast td:nth-child(3) {
- width: 200px;
+ width: 60px;
}
section#cast #castlink {
display: none;
@@ -41,8 +59,9 @@ section#cast #castlink {
aside#malstats {
float: right;
width: 150px;
+ border-left: 1px solid #ccc;
+ padding-left: 15px;
}
-
-p {
- text-indent: 0;
+aside#malstats p {
+ margin-bottom: 2px;
}
diff --git a/webroot/js/functions.js b/webroot/js/functions.js
index 86f3f3c..5f7d7ae 100644
--- a/webroot/js/functions.js
+++ b/webroot/js/functions.js
@@ -18,14 +18,14 @@ jQuery(document).ready(function($) {
function toggleCast() {
var table = $('#cast table');
- if (table.css('display') == 'inline') {
+ if (table.css('display') == 'block') {
table.css('display', 'none');
$('#cast > p > a').text('Cast ↓');
$('#castlink').css('display', 'none');
} else {
- table.css('display', 'inline');
+ table.css('display', 'block');
$('#cast > p > a').text('Cast ↑');
- $('#castlink').css('display', 'inline');
+ $('#castlink').css('display', 'block');
}
return false;
}