summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-17 18:35:17 -0700
committerraylu <raylu@mixpanel.com>2011-07-17 18:54:20 -0700
commit467a1f8635ca93a48024fb80b4b44b4f979a2505 (patch)
tree786390aec8dca58a489d7fd4b03957239a1c6fa7
parentf5e76dbc7caeda4bc4984f00753220fe3bfbb7b2 (diff)
downloadotakuhub-467a1f8635ca93a48024fb80b4b44b4f979a2505.tar.xz
minor style fixes
-rw-r--r--views/anime/index.html.php2
-rw-r--r--views/anime/view.html.php56
-rw-r--r--views/pages/home.html.php8
-rw-r--r--webroot/css/search.css1
-rw-r--r--webroot/css/view.css1
5 files changed, 36 insertions, 32 deletions
diff --git a/views/anime/index.html.php b/views/anime/index.html.php
index 270ed76..6b1adc0 100644
--- a/views/anime/index.html.php
+++ b/views/anime/index.html.php
@@ -1,5 +1,5 @@
<?php
-$this->styles($this->html->style('anime'));
+$this->styles($this->html->style('table'));
$this->styles($this->html->style('pagination'));
?>
diff --git a/views/anime/view.html.php b/views/anime/view.html.php
index 11ac437..ce291c5 100644
--- a/views/anime/view.html.php
+++ b/views/anime/view.html.php
@@ -63,33 +63,35 @@ for ($i = 0; $i < count($anime->genres); $i++) {
</p>
</aside>
-<section id="cast">
-<p>
-<a href="/anime/cast/<?= $anime->special_id ?>" onclick="return toggleCast()">Cast &#x2193;</a>
-</p>
-<table>
-<?php for ($i = 0; $i < count($anime->cast); $i++): ?>
- <tr<? if ($i > 0) echo ' class="char"' ?>>
- <td colspan="3">
- <?= $anime->cast[$i]->character ?>
- </td>
- </tr>
- <?php if (isset($anime->cast[$i]->people)): ?>
- <?php foreach($anime->cast[$i]->people as $actor): ?>
- <tr>
- <td></td>
- <td><?= $actor->name ?></td>
- <td><?= $actor->language ?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
-<?php endfor; ?>
-</table>
-<br>
-<p id="castlink">
-<a href="" onclick="return toggleCast()">Cast &#x2191;</a>
-</p>
-</section>
+<?php if (count($anime->cast) > 1): // why is this 1? ?>
+ <section id="cast">
+ <p>
+ <a href="/anime/cast/<?= $anime->special_id ?>" onclick="return toggleCast()">Cast &#x2193;</a>
+ </p>
+ <table>
+ <?php for ($i = 0; $i < count($anime->cast); $i++): ?>
+ <tr<? if ($i > 0) echo ' class="char"' ?>>
+ <td colspan="3">
+ <?= $anime->cast[$i]->character ?>
+ </td>
+ </tr>
+ <?php if (isset($anime->cast[$i]->people)): ?>
+ <?php foreach($anime->cast[$i]->people as $actor): ?>
+ <tr>
+ <td></td>
+ <td><?= $actor->name ?></td>
+ <td><?= $actor->language ?></td>
+ </tr>
+ <?php endforeach; ?>
+ <?php endif; ?>
+ <?php endfor; ?>
+ </table>
+ <br>
+ <p id="castlink">
+ <a href="" onclick="return toggleCast()">Cast &#x2191;</a>
+ </p>
+ </section>
+<?php endif; ?>
<br class="cl">
diff --git a/views/pages/home.html.php b/views/pages/home.html.php
index 53cc58d..227a18b 100644
--- a/views/pages/home.html.php
+++ b/views/pages/home.html.php
@@ -69,13 +69,13 @@ $this->styles($this->html->style("/css/home.css"));
<h2 class="ribbon">Why you'll &#9825; OtakuHub~</h2>
<div class="triangle-ribbon"></div>
<br class="cl" />
-<h3>For Us By Us</h3>
+<h3>For us by us</h3>
<p>
- Built by Otakus for Otakus, we know what you want, and we work tirelessly to give it to you.
+ Built by otakus for otakus. We know what you want and we work tirelessly to give it to you.
</p>
-<h3>Data Portability</h3>
+<h3>Data portability</h3>
<p>
- Move your data between AnimePlanet AnimeDB or MAL or export your list for your own records
+ Move your data between AnimePlanet AnimeDB or MAL or export your list for your own records.
</p>
<h3>Meet others</h3>
<p>
diff --git a/webroot/css/search.css b/webroot/css/search.css
index 20ea164..6ac8596 100644
--- a/webroot/css/search.css
+++ b/webroot/css/search.css
@@ -19,6 +19,7 @@ p.more a {
background: -webkit-linear-gradient(top, #ddd, #bbb);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb');
color: #111;
+ outline: none;
}
p.more a:hover {
background: #eee;
diff --git a/webroot/css/view.css b/webroot/css/view.css
index 7d10164..d5734a1 100644
--- a/webroot/css/view.css
+++ b/webroot/css/view.css
@@ -26,6 +26,7 @@ section#cast a {
background: -webkit-linear-gradient(top, #ddd, #bbb);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb');
color: #111;
+ outline: none;
}
section#cast a:hover {
background: #eee;