Skip to content
Snippets Groups Projects
Commit 0bd3a824 authored by root's avatar root Committed by lechuck
Browse files

Add theme leviathan

parent 55c8c06e
Branches
No related tags found
No related merge requests found
<?php
/**
* This is your child theme's functions.php file.
* You should make edits and add additional code above this point.
* Only change the functions below if you know what you're doing.
*/
/********************************************************/
/**
* Uncomment for localization. Note this theme has no additional text strings.
*/
//load_child_theme_textdomain( 'leviathan', get_stylesheet_directory() . '/languages' );
/**
* Add theme-specific actions
*/
add_action( 'init', 'leviathan_remove_actions' );
add_action( 'hybrid_after_header', 'hybrid_breadcrumb', 11 );
add_action( 'hybrid_header', 'get_search_form', 11 );
add_action( 'hybrid_singular-post_after_singular', 'leviathan_author_box' );
/**
* Removes default actions set in place by the parent theme.
*
* @since 0.1
*/
function leviathan_remove_actions() {
remove_action( 'hybrid_before_content', 'hybrid_breadcrumb' );
}
/**
* Displays an author profile box after singular posts with a link to the author archive, the avatar,
* and the biographical info from ther user's profile.
*
* @since 0.1
*/
function leviathan_author_box() { ?>
<div class="author-profile vcard">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), '96' ); ?>
<h4 class="author-name fn n"><?php the_author_posts_link(); ?></h4>
<div class="author-description author-bio">
<?php the_author_meta( 'description' ); ?>
</div>
</div><?php
}
?>
\ No newline at end of file
wp-content/themes/leviathan/images/bullet-alt.png

257 B

wp-content/themes/leviathan/images/bullet.png

237 B

wp-content/themes/leviathan/images/header.png

286 B

wp-content/themes/leviathan/images/nav-border.png

316 B

wp-content/themes/leviathan/images/nav.png

160 B

wp-content/themes/leviathan/images/quotes.gif

184 B

wp-content/themes/leviathan/images/site-title.png

4.63 KiB

wp-content/themes/leviathan/screenshot.png

17.8 KiB

/**
* Theme Name: Leviathan
* Theme URI: http://themehybrid.com/themes/leviathan
* Description: A child of the Hybrid theme framework that puts emphasis on your content.
* Author: Justin Tadlock
* Author URI: http://justintadlock.com
* Version: 0.2
* Tags: threaded-comments, microformats, two-columns, fixed-width
* Template: hybrid
*
* Copyright (c) 2008 - 2010 Justin Tadlock. All rights reserved.
* http://justintadlock.com
*
* Leviathan is released under the GNU General Public License, version 2 (GPL).
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/* Get base CSS */
@import url('../hybrid/library/css/21px.css');
/* Get plugins CSS */
@import url('../hybrid/library/css/plugins.css');
/* Get drop-downs CSS */
@import url('../hybrid/library/css/drop-downs.css');
/* Uncomment the below line if using the Hybrid Tabs plugin */
/*@import url('tabs.css');*/
/* Body */
body {
font: 12px/21px Verdana, Arial, sans-serif;
color: #666;
background: #eff1e1;
}
#body-container {
overflow: hidden;
width: 100%;
}
/* Links */
a:link, a:visited {
color: #4b6e85;
text-decoration: none;
}
a:hover, a:active {
text-decoration: underline;
}
/* Headers */
h1, h2, h3, h4, h5, h6 {
font-family: arial, verdana, sans-serif;
}
/* Lists */
.content ul {
list-style: none;
margin-left: 12px;
}
.content ul li {
overflow: hidden;
height: 100%;
padding: 2px 0 2px 15px;
background: url(images/bullet.png) no-repeat 0 8px;
}
.content ul li li {
background: url(images/bullet-alt.png) no-repeat 0 8px;
}
/* Blockquotes */
blockquote {
margin: 0 24px 0 0;
padding: 6px 0 0 24px;
background: url(images/quotes.gif) no-repeat 0 0;
border: none;
}
.hentry blockquote {
font-style: italic;
color: #777;
}
.hentry blockquote em {
font-style: normal;
}
/* Code */
code {
font-size: 12px;
padding: 0 3px;
background: #EFF1E1;
}
pre {
font-size: 12px;
overflow: auto;
padding: 9px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
pre code {
padding: 0;
background: transparent;
}
/* Tables */
table {
width: 100%;
background: #0C2E3B;
border: 1px solid #e2e2e2;
}
caption {
font-size: .8em;
font-style: italic;
text-align: right;
color: #666;
}
td {
padding: .3em;
border: 1px solid #e2e2e2;
}
tr {
background: #EFF1E1;
}
th {
padding: .3em;
color: #fff;
background: #113644;
border: 1px solid #e2e2e2;
}
td a, th a {
font-weight: bold;
}
/* Forms */
textarea {
width: 98%;
font: normal normal normal 15px/21px arial, verdana, sans-serif;
}
input {
font: normal normal normal 13px/21px arial, verdana, sans-serif;
}
.text-input {
display: block;
width: 300px;
font-size: 15px;
}
.button {
margin: 0 10px 0 0;
padding: 6px 19px;
font-weight: bold;
color: #fff;
background: #0A2934;
border: 1px solid #000;
}
.button:hover {
cursor: pointer;
background: #113644;
}
/* Drop caps */
.drop-cap {
float: left;
line-height: 39px;
margin-right: 3px;
font-size: 48px;
font-family: "Warnock Pro", "Goudy Old Style", Palatino,"Book Antiqua", Cambria, Georgia, serif;
color: #666;
}
/* Notes */
.note {
padding: 6px 9px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
/* Warnings/Alerts */
.warning, .alert {
padding: 6px 9px;
background: #fffbbc;
border: 1px solid #E6DB55;
}
/* Errors */
.error {
padding: 6px 9px;
background: #ffebe8;
border: 1px solid #C00;
}
/* Downloads */
.download {
padding: 6px 9px;
background: #e7f7d3;
border: 1px solid #6c3;
}
/* Alignment */
.left, .alignleft {
float: left;
margin: 0 15px 0 0;
}
.right, .alignright {
float: right;
margin: 0 0 0 15px;
}
.center, .aligncenter {
display: block;
margin: 0 auto 21px auto;
}
.block, .alignnone {
display: block;
margin: 0 0 21px 0;
}
.clear {
clear: both;
}
/**
* Images
************************************************/
img, a img {
padding: 5px;
}
.hentry img {
max-width: 594px;
padding: 4px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
/* WP Smilies */
img.wp-smiley {
max-height: 12px;
margin: 0;
padding: 0;
border: none;
}
/* Thumbnails */
.thumbnail {
float: left;
width: 200px;
height: 200px;
margin: 0 15px 10px 0;
padding: 4px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
/* WP Captions [caption] */
.wp-caption {
overflow: hidden;
max-width: 588px;
padding: 6px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
text-align: center;
}
.wp-caption img, .wp-caption a img {
max-width: 588px;
margin: 0;
padding: 0;
border: none;
}
.wp-caption p {
margin: 0;
padding: 0;
font-size: 11px;
font-style: italic;
text-align: right;
}
/* Gallery [gallery] */
.gallery {
display: block;
text-align: center;
margin-bottom: 21px !important;
}
.gallery img {
padding: 4px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
/* Avatars */
.avatar {
float: left;
margin: 0 15px 5px 0;
padding: 4px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
/**
* Header
************************************************/
#header-container {
overflow: hidden;
width: 100%;
height: 100px;
background: #113644 url(images/header.png) repeat-x 0 0;
}
#header {
overflow: hidden;
width: 960px;
height: 70px;
margin: 0 auto;
padding: 0 20px;
}
#site-title {
float: left;
width: 262px;
margin: 0;
}
#site-title a {
display: block;
width: 262px;
height: 55px;
margin: 0 0 0 0;
background: url(images/site-title.png) no-repeat 0 0;
}
#site-title a span {
display: none;
}
#site-description {
float: left;
margin: 5px 10px;
font-size: 13px;
font-family: arial, verdana, sans-serif;
color: #4b6e85;
}
/* Search form */
#header form {
float: right;
width: 180px;
height: 25px;
margin: 6px 0 0 0;
padding: 0;
}
#header input {
line-height: 15px;
float: left;
overflow: hidden;
width: 170px;
padding: 3px 5px 3px 5px;
color: #999;
background: #0e2435;
border: none;
}
#header .search-submit {
display: none;
}
/**
* Navigation
************************************************/
#primary-menu {
width: 100%;
height: 33px;
margin: 0 auto;
background: url(images/nav.png) repeat-x 0 bottom;
border-top: 1px solid #081e26;
border-bottom: 1px solid #081e26;
}
#primary-menu div.menu {
width: 960px;
height: 33px;
margin: 0 auto;
background: url(images/nav-border.png) repeat-y left 0;
}
#primary-menu ul {
list-style: none;
margin: 0;
}
#primary-menu li {
float: left;
}
#primary-menu a {
display: block;
padding: 10px 35px 11px 35px;
background: url(images/nav-border.png) repeat-y right 0;
}
#primary-menu li.current-menu-item a {
color: #fff;
}
#primary-menu li.current-menu-item li a {
color: #4b6e85;
}
/* Drop-down styles */
#primary-menu ul ul {
width: 180px;
background: #0A2934;
}
#primary-menu li li:hover ul, #primary-menu li li li:hover ul {
left: 180px;
}
#primary-menu li li {
border-top: 1px solid #09232c;
}
#primary-menu li li a {
padding: 7px 10px;
background: transparent;
}
#primary-menu li:hover ul, #primary-menu li.sfHover ul {
top: 33px;
}
#primary-menu li li:hover ul, #primary-menu li li.sfHover ul, #primary-menu li li li:hover ul, #primary-menu li li li.sfHover ul {
top: -1px;
}
/**
* Containers
************************************************/
#container {
overflow: hidden;
width: 960px;
margin: 20px auto;
background: #EFF1E1;
}
#container a {
color: #01527a;
}
.content {
overflow: hidden;
float: left;
width: 640px;
}
/* Breadcrumb trail */
.breadcrumb {
overflow: hidden;
width: 100%;
background: #0C2E3B;
}
.breadcrumb-trail {
width: 960px;
margin: 0 auto;
padding: 4px 0;
font-size: 11px;
color: #999;
}
/* Posts (and other general sections) */
.hentry, .series, .related, .category-info, .tag-info, .archive-info, .author-info, .date-info, .search-info, .singular-post .author-profile {
overflow: hidden;
margin: 0 0 20px 0;
padding: 19px 19px 0 19px;
background: #fff;
border: 1px solid #e7e7e7;
}
/* Post title (and other titles) */
.entry-title, .series-title, .related-title {
margin: 0 0 5px 0;
font: normal normal bold 18px/21px arial, verdana, sans-serif;
}
.singular-title, .single-title, .attachment-title, .page-title, .series-title, .related-title, .home .entry-title, .blog .entry-title,
.category-title, .tag-title, .author-title, .date-title, .search-title, .page-template-blog .post-title, .archive-title {
margin: 0 0 10px 0;
padding: 0 6px 9px 3px;
border-bottom: 1px solid #e2e2e2;
font: normal normal bold 18px/21px arial, verdana, sans-serif;
}
/* Byline */
.byline {
font-size: 11px;
color: #999;
}
.byline a {
color: #486472 !important;
}
/* Post meta data */
.entry-meta {
clear: both;
font-size: 11px;
color: #999;
padding: 9px 5px 0 5px;
border-top: 1px solid #e2e2e2;
}
.entry-meta a {
color: #486472 !important;
}
/* Using <!--nextpage--> */
p.pages a {
margin: 0 0 0 3px;
padding: 4px 7px;
color: #486472 !important;
background: #e7e7e7;
border: 1px solid #ddd;
}
/* Page Templates */
.page-template-authors .author-profile, .singular-post .author-profile {
overflow: hidden;
margin: 0 0 20px 0;
}
.page-template-authors .author-name, .singular-post .author-profile .author-name {
font-size: 15px;
font-weight: bold;
margin: 0;
}
.page-template-no-widgets .content, .no-widgets .content, .primary-inactive.secondary-inactive .content {
width: 960px;
}
.page-template-widgets .content .widget {
overflow: hidden;
margin: 0 0 20px 0;
padding: 19px 19px 0 19px;
background: #fff;
border: 1px solid #e7e7e7;
}
/* Navigation links */
.navigation-attachment {
overflow: hidden;
margin: 0 0 21px 0;
}
.navigation-links {
overflow: hidden;
padding: 19px 19px 19px 19px;
background: #fff;
border: 1px solid #e7e7e7;
}
.navigation-links a {
color: #000;
}
.navigation-links .previous {
float: left;
max-width: 49%;
}
.navigation-links .next {
float: right;
max-width: 49%;
text-align: right;
}
/* Paged comments navigation */
#comments-template .paged-navigation {
overflow: hidden;
margin: 0 0 20px 0;
}
#comments-template .paged-navigation .page-numbers,
#comments-template .paged-navigation .next, #comments-template .paged-navigation .prev {
float: left;
margin: 0 6px 0 0;
padding: 4px 12px;
color: #486472 !important;
background: #fff;
border: 1px solid #e2e2e2;
}
/* WP PageNavi */
.wp-pagenavi {
overflow: hidden;
}
.wp-pagenavi .pages, .wp-pagenavi .current, .wp-pagenavi a, .wp-pagenavi .extend {
float: left;
margin: 0 6px 0 0;
padding: 4px 12px;
color: #486472 !important;
background: #fff;
border: 1px solid #e2e2e2;
}
/**
* Primary/Secondary and utility widgets
************************************************/
#primary, #secondary {
float: right;
width: 300px;
}
#secondary {
clear: right;
}
.widget {
margin: 0 0 21px 0;
padding: 20px 20px 0 20px;
background: #fff;
border: 1px solid #e7e7e7;
}
.widget-title {
margin: 0 0 6px 0;
padding: 0 6px 9px 6px;
font: normal normal bold 18px/21px arial, verdana, sans-serif;
color: #01527a;
border-bottom: 1px solid #e2e2e2;
}
.widget ul {
list-style: none;
margin: 0 0 21px 0;
}
.widget li {
margin: 0 0 6px 0;
padding: 0 0 6px 15px;
background: url(images/bullet.png) no-repeat 0 6px;
border-bottom: 1px solid #e2e2e2;
}
.widget ul ul {
margin: 6px 0 0 0;
}
.widget li li {
margin: 0 0 3px 0;
padding: 0 0 3px 15px;
background: url(images/bullet-alt.png) no-repeat 0 6px;
border-bottom: none;
}
/**
* Comments template
************************************************/
#comments-number {
overflow: hidden;
margin: 0 0 20px 0;
padding: 19px;
background: #fff;
border: 1px solid #e7e7e7;
font: normal normal bold 18px/21px arial, verdana, sans-serif;
}
#comments ol {
list-style: none;
margin-left: 0;
}
#comments li, p.comments-closed {
overflow: hidden;
margin: 0 0 20px 0;
padding: 19px 19px 0 19px;
background: #fff;
border: 1px solid #e7e7e7;
}
#comments li.thread-even, #comments li.thread-odd {
padding-bottom: 9px;
}
p.comments-closed {
padding: 19px;
}
#comments-template p.comments-closed {
border: none;
padding: 0;
}
#comments li li, #comments li li li li {
margin: 0 15px 15px 15px;
padding: 15px 15px 0 15px;
background: #EFF1E1;
border: 1px solid #e7e7e7;
}
#comments li li li, #comments li li li li li {
margin: 0 15px 15px 15px;
padding: 15px;
background: #fff;
border: 1px solid #e7e7e7;
}
/* Comment avatars */
#comments .avatar {
float: left;
width: 40px;
height: 40px;
margin: 0 15px 5px 0;
padding: 4px;
background: #EFF1E1;
border: 1px solid #e2e2e2;
}
/* Comment meta data */
#comments .comment-meta {
margin: 10px 0;
}
#comments .comment-meta cite {
font-size: 15px;
font-weight: bold;
font-style: normal;
}
#comments .comment-meta a {
color: #486472 !important;
}
/* Comment text */
#comments .comment-text {
clear: both;
margin: 0 15px;
}
/* Comment form */
#respond {
overflow: hidden;
margin: 0 0 20px 0;
padding: 19px 19px 0 19px;
background: #fff;
border: 1px solid #e7e7e7;
}
#reply {
margin: 0 0 10px 0;
padding: 0 6px 9px 6px;
font: normal normal bold 18px/21px arial, verdana, sans-serif;
border-bottom: 1px solid #e2e2e2;
}
/**
* Subsidiary widgets (footer)
************************************************/
#subsidiary {
overflow: hidden;
width: 1020px;
margin: 0 auto 20px auto;
}
#subsidiary a {
color: #4b6e85;
}
#subsidiary .widget {
float: left;
width: 200px;
margin: 0;
padding: 0 25px;
background: transparent;
border: none;
}
#subsidiary .widget-title {
margin: 0 0 6px 0;
padding: 0 6px 9px 6px;
font: normal normal bold 18px/21px arial, verdana, sans-serif;
color: #aaa;
border-bottom: 1px solid #213a4b;
}
#subsidiary .widget ul, #subsidiary .widget ul ul {
list-style: none;
margin: 0 0 21px 0;
}
#subsidiary .widget li, #subsidiary .widget li li {
margin: 0 0 9px 0;
padding: 0 6px 9px 6px;
background: transparent;
border-bottom: 1px solid #213a4b;
}
/**
* Footer
************************************************/
#footer-container {
overflow: hidden;
clear: both;
width: 100%;
padding: 20px 0 0 0;
color: #aaa;
background: #0a2a35;
border-top: 2px solid #000;
}
#footer {
overflow: hidden;
clear: both;
width: 960px;
margin: 20px auto 20px auto;
}
#footer .copyright {
float: left;
width: 49%;
}
#footer .credit {
float: right;
width: 49%;
text-align: right;
}
\ No newline at end of file
/**
* Primary widget tabs
************************************************/
#primary .widget-tabs {
margin: 0 0 21px 0;
padding: 0 !important;
background: transparent !important;
border: none !important;
}
#primary .widget-tabs ul.tabs {
width: 300px;
overflow: hidden;
list-style: none;
margin: 0 0 5px 0;
}
#primary .widget-tabs li.t {
float: left;
display: inline;
width: 94px;
margin: 0 6px 0 0;
padding: 0;
background: transparent;
border: 1px solid #e2e2e2 !important;
text-align: center;
}
#primary .widget-tabs li.t3 {
margin: 0;
}
#primary .widget-tabs li.t a {
display: block;
padding: 10px 0;
font-weight: bold;
color: #999;
background: #f3f5e9;
}
#primary .widget-tabs li.t a:hover {
background: #f9f9f9;
text-decoration: none;
}
#primary .widget-tabs li.t a.tab-current {
color: #4b6e85;
background: #fff;
}
#primary .widget-tabs .tab-content {
clear: left;
padding: 20px 20px 0 20px;
background: #fff;
border: 1px solid #e7e7e7;
}
/**
* Secondary widget tabs
************************************************/
#secondary .widget-tabs {
}
#secondary .widget-tabs ul.tabs {
width: 200px;
overflow: hidden;
list-style: none;
margin: 0 0 6px 0;
padding: 0 6px 9px 6px;
border-bottom: 1px solid #213a4b;
}
#secondary .widget-tabs li.t {
float: left;
display: inline;
width: 90px;
margin: 0 10px 0 0;
padding: 0;
background: transparent;
border: none;
}
#secondary .widget-tabs li.t2 {
margin: 0;
}
#secondary .widget-tabs li.t a {
font: normal normal bold 18px/21px arial, verdana, sans-serif;
display: block;
}
#secondary .widget-tabs li.t a:hover {
text-decoration: none;
}
#secondary .widget-tabs li.t a.tab-current {
color: #aaa;
}
#secondary .widget-tabs .tab-content {
clear: left;
}
/**
* Widgets template widget tabs
************************************************/
#content .widget-tabs {
margin: 0 0 21px 0;
padding: 0 !important;
background: transparent !important;
border: none !important;
}
#content .widget-tabs ul.tabs {
overflow: hidden;
list-style: none;
margin: 0 0 5px 0;
}
#content .widget-tabs li.t {
float: left;
display: inline;
margin: 0 6px 0 0;
padding: 0;
background: transparent;
border: 1px solid #e2e2e2 !important;
text-align: center;
}
#content .widget-tabs li.t a {
display: block;
padding: 10px 15px;
font-weight: bold;
color: #999;
background: #f3f5e9;
}
#content .widget-tabs li.t a:hover {
background: #f9f9f9;
text-decoration: none;
}
#content .widget-tabs li.t a.tab-current {
color: #4b6e85;
background: #fff;
}
#content .widget-tabs .tab-content {
clear: left;
padding: 20px 20px 0 20px;
background: #fff;
border: 1px solid #e7e7e7;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment