new CSS for comic left and right sidebars

This commit is contained in:
Frumph
2013-08-09 16:28:26 -07:00
parent 3c66d68da3
commit a57ff01cda
3 changed files with 47 additions and 23 deletions

View File

@@ -4,9 +4,42 @@ Defaults for the Comic Easel Elements.
*/
#comic-wrap {
clear:both;
clear: both;
}
.comic-table {
display: table;
width: 100%;
table-layout: fixed;
}
#sidebar-over-comic {}
#sidebar-left-of-comic {
display: table-cell;
vertical-align: top;
width: 206px;
padding: 2px;
}
#comic {
text-align: center;
display: table-cell;
vertical-align: top;
width: 100%;
padding: 2px;
}
#sidebar-right-of-comic {
display: table-cell;
vertical-align: top;
width: 206px;
padding: 2px;
}
#sidebar-under-comic {}
table#comic-nav-wrapper {
background: #333;
border: 0;
@@ -62,14 +95,13 @@ table#comic-nav-wrapper {
color: #ffcf00;
}
#comic {
text-align: center;
}
#comic img {
margin: 0 auto;
margin: 0;
padding: 0;
max-width: 100%;
text-align: center;
}
#blogheader {

View File

@@ -113,7 +113,7 @@ function ceo_display_comic_wrapper() {
<div id="comic-wrap" class="comic-id-<?php echo $post->ID; ?>">
<div id="comic-head"></div>
<?php ceo_get_sidebar('over-comic'); ?>
<div class="comic-table">
<div class="comic-table">
<?php ceo_get_sidebar('left-of-comic'); ?>
<div id="comic">
<?php echo ceo_display_comic(); ?>

View File

@@ -48,20 +48,16 @@ function ceo_get_previous_comic($in_chapter = false) {
function ceo_get_previous_comic_permalink() {
$prev_comic = ceo_get_previous_comic(false);
if (is_object($prev_comic)) {
if (isset($prev_comic->ID)) {
return get_permalink($prev_comic->ID);
}
if (is_object($prev_comic) && isset($prev_comic->ID)) {
return get_permalink($prev_comic->ID);
}
return false;
}
function ceo_get_previous_comic_in_chapter_permalink() {
$prev_comic = ceo_get_previous_comic(true);
if (is_object($prev_comic)) {
if (isset($prev_comic->ID)) {
return get_permalink($prev_comic->ID);
}
if (is_object($prev_comic) && isset($prev_comic->ID)) {
return get_permalink($prev_comic->ID);
}
return false;
}
@@ -72,20 +68,16 @@ function ceo_get_next_comic($in_chapter = false) {
function ceo_get_next_comic_permalink() {
$next_comic = ceo_get_next_comic(false);
if (is_object($next_comic)) {
if (isset($next_comic->ID)) {
return get_permalink($next_comic->ID);
}
if (is_object($next_comic) && isset($next_comic->ID)) {
return get_permalink($next_comic->ID);
}
return false;
}
function ceo_get_next_comic_in_chapter_permalink() {
$next_comic = ceo_get_next_comic(true);
if (is_object($next_comic)) {
if (isset($next_comic->ID)) {
return get_permalink($next_comic->ID);
}
if (is_object($next_comic) && isset($next_comic->ID)) {
return get_permalink($next_comic->ID);
}
return false;
}
@@ -97,7 +89,7 @@ function ceo_get_terminal_post_of_chapter($chapterID = 0, $first = true) {
$sortOrder = $first ? "asc" : "desc";
if (!empty($chapterID)) {
$chapter = &get_term_by('id', $chapterID, 'chapters');
$chapter = get_term_by('id', $chapterID, 'chapters');
$chapter_slug = $chapter->slug;
$args = array(
'chapters' => $chapter_slug,