Browse Source

minor style fixes

raylu 14 years ago
parent
commit
467a1f8635
5 changed files with 36 additions and 32 deletions
  1. 1 1
      views/anime/index.html.php
  2. 29 27
      views/anime/view.html.php
  3. 4 4
      views/pages/home.html.php
  4. 1 0
      webroot/css/search.css
  5. 1 0
      webroot/css/view.css

+ 1 - 1
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'));
 ?>
 

+ 29 - 27
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">
 

+ 4 - 4
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>

+ 1 - 0
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;

+ 1 - 0
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;