Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update blog style. #68

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions themes/OneMozilla-Nightly/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@
</head>

<body <?php body_class($theme_options['color_scheme']); ?>>
<div id="page"><div class="wrap">
<div id="page">
<?php get_template_part( 'masthead' ); ?>
<div id="nav-divider">
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => 'nav', 'container_id' => 'nav-primary', 'fallback_cb' => 'false', ) ); ?>
</div>
<div class="wrap">
<nav id="nav-access">
<ul>
<li><a href="#content-main" tabindex="1"><?php _e( 'Skip to main content', 'onemozilla' ); ?></a></li>
Expand All @@ -83,8 +88,4 @@
</ul>
</nav>

<?php get_template_part( 'masthead' ); ?>

<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => 'nav', 'container_id' => 'nav-primary', 'fallback_cb' => 'false', ) ); ?>

<main id="content">
2 changes: 2 additions & 0 deletions themes/OneMozilla/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<h1 class="page-title">
<span>
<?php if (is_category()) : ?><?php printf( __('Posts in “%s”', 'onemozilla'), single_cat_title('',false) ); ?>
<?php elseif (is_tag()) : ?><?php printf( __('Posts tagged with “%s”','onemozilla'), single_tag_title('',false) ); ?>
<?php elseif (is_day()) : ?><?php printf( __('Posts from %s', 'onemozilla'), get_the_date() ); ?>
Expand All @@ -20,6 +21,7 @@
<?php elseif (is_search()) : ?><?php printf( _n('We found one result for “%2$s”', 'We found %1$s results for “%2$s”', $total_results, 'onemozilla'), $total_results, esc_html(get_search_query()) ); ?>
<?php else : ?><?php _e('Archives','onemozilla'); ?>
<?php endif; ?>
</span>
</h1>

<?php if (fc_show_posts_nav()) : ?>
Expand Down
Binary file removed themes/OneMozilla/colors/obsidian/bg-obsidian.png
Binary file not shown.
286 changes: 10 additions & 276 deletions themes/OneMozilla/colors/obsidian/obsidian.css
Original file line number Diff line number Diff line change
@@ -1,281 +1,15 @@
/*
"Obsidian" - a dark color scheme for the One Mozilla theme

@@Colors -
Dark blue #3c5466
Darker blue #2e475a
Pale gray #c5ccd2
Gold #fede3f
Light blue #4090c4

Link #fede3f
Hover #ffe400
*/

body {
color: #c5ccd2;
}
#page {
background-color: #3c5466;
background-image: url("bg-obsidian.png");
}

/* @Content *********/
h1, h2, h3, h4, h5, h6 {
color: #d1d9df;
text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
#tabzilla-panel * {
text-shadow: none;
}
.entry-content table {
border-color: #2e404e;
}
.entry-content th,
.entry-content td {
border-bottom-color: #2e404e;
}
.wp-caption {
background-color: #2e475a;
}
.entry-content img,
.entry-summary img {
background-color: #2e475a;
border-color: #2e475a;
}

.entry-meta {
border-bottom: 1px solid rgba(197,204,201,.1);
}
::-moz-selection {
background: #d1d9df;
color: #2a4956;
}
::selection {
background: #d1d9df;
color: #2a4956;
}

#site-title,
#site-title a:link,
#site-title a:visited {
color: #c5ccd2;
}
#site-title a:hover,
#site-title a:focus,
#site-title a:active {
color: #ffe400;
}
#site-description {
color: #93a0aa;
}
.featured-posts {
background-color: #2e475a;
-webkit-box-shadow: inset rgba(0,0,0, 0.1) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
-o-box-shadow: inset rgba(0,0,0,0.1) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
box-shadow: inset rgba(0,0,0,0.1) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
}
.featured-posts .wp-post-image {
background-color: #57758c;
border-color: #57758c;
}

legend {
color: #c5ccd2; /* For IE */
}

/* @Links *********/
a:link,
a:visited {
color: #fed325;
}
a:hover,
a:focus,
a:active {
color: #ffe400;
}

/* @Accessible @Skip links *********/
#nav-access a:focus,
#nav-access a:active {
background: rgba(0,0,0,.2);
border-color: #fed325;
}
#foot-logo .top:focus,
#foot-logo .top:active {
background: rgba(0,0,0,.2);
border-color: #4090c4;
}

/* @Forms *********/
input[type=email],
input[type=url],
input[type=password],
input[type=text],
textarea {
border-color: #2e404e;
color: #c5ccd2;
background-color: rgba(0,0,0,.1);
}
input[type=email]:hover,
input[type=url]:hover,
input[type=password]:hover,
input[type=text]:hover,
textarea:hover {
border-color: #516e83;
}
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
input[type=text]:focus,
textarea:focus {
background-color: #516e83;
color: #c5ccd2;
border-color: #62869f;
-moz-box-shadow: inset rgba(0,0,0,0.3) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
box-shadow: inset rgba(0,0,0,0.3) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
}
label .note {
color: #afb6bb;
#masthead {
background-color: #000;
}

/*** Date posted */
.entry-posted {
opacity: .9;
}
.entry-posted,
.entry-posted a:link,
.entry-posted a:visited,
.entry-posted a:hover,
.entry-posted a:focus,
.entry-posted a:active {
color: #333;
}

/*** Post Author */
.entry-header .vcard img {
border-color: #57758c;
}

/*** Comment Count */
.entry-comments a {
background-image: url("icn-comment.png");
border-color: #57758c;
}

/*** Link buttons */
.edit a,
#cancel-comment-reply a {
border-color: #2e404e;
background: #4d6c83;
background: -moz-linear-gradient(top, #4d6c83 0, #3f596c 100%);
background: -webkit-linear-gradient(top, #4d6c83 0, #3f596c 100%);
background: linear-gradient(top, #4d6c83 0, #3f596c 100%);
}
.edit a:hover,
.edit a:focus,
.edit a:active,
#cancel-comment-reply a:hover,
#cancel-comment-reply a:focus,
#cancel-comment-reply a:active {
border-color: #333;
}

/* @Social @Sharing *********/
.obsidian .socialshare > div > a,
.obsidian .socialshare > div > a:after {
background-image: url("icn-share.png");
}
.obsidian .socialshare > div > a {
color: #c5ccd2;
}
.obsidian .socialshare > div > a:after {
background-color: #2e475a;
}
.obsidian .share-active-state,
.obsidian .socialshare.open > div > a,
.obsidian .socialshare > div > a:hover,
.obsidian .socialshare > div > a:focus {
color: #fede3f;
}
.obsidian .share-active-state span,
.obsidian .socialshare > div > a:hover span,
.obsidian .socialshare > div > a:focus span,
.obsidian .socialshare.open > div > a span {
border-color: #fede3f;
}
.obsidian .socialshare > div > a:focus span {
outline-color: #fede3f;
}
.obsidian .socialshare > div > a span {
border-bottom-color: #c5ccd2;
#site-title span,
#site-description span {
background: #fff;
color: #000;
}

/* @Comments *********/
#comment-list .comment,
#comment-list .pingback,
#comment-list .trackback {
background: transparent;
border-color: #2e475a;
-o-box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-ms-box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
box-shadow: inset rgba(0,0,0,0.048) 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
}
#comment-list .alt {
background: transparent;
}
#comment-list .byuser {
border-color: #507189;
-moz-box-shadow: inset #476379 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-webkit-box-shadow: inset #476379 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
-o-box-shadow: inset #476379 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
box-shadow: inset #476379 0 0 48px, rgba(0,0,0,0.1) 0 1px 0;
}

#comment-list .avatar {
border-color: #5d83a0;
}

/* @Navigation ***/
#nav-primary,
.nav-paging {
background-color: #2e475a;
-webkit-box-shadow: inset rgba(0,0,0, 0.1) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
box-shadow: inset rgba(0,0,0,0.1) 0 0 4px, rgba(255,255,255, 0.1) 0 1px 0;
}
#nav-primary .current-menu-item a:link,
#nav-primary .current-menu-item a:visited,
.widget_nav_menu .current-menu-item a:link,
.widget_nav_menu .current-menu-item a:visited {
color: #fff;
}


/* @Footer ***/
#site-info {
background-color: #2e475a;
color: #727f8a;
}
#site-info a:link,
#site-info a:visited {
color: #4090c4;
}
#site-info a:hover,
#site-info a:focus,
#site-info a:active {
color: #67a7d0;
}

@media only screen and (max-width: 767px) {

.entry-posted,
.entry-posted a:link,
.entry-posted a:visited,
.entry-posted a:hover,
.entry-posted a:focus,
.entry-posted a:active {
color: #c5ccd2;
}

#site-title span a,
#site-title span a:hover
#site-title span a:focus {
color: #000;
}
40 changes: 2 additions & 38 deletions themes/OneMozilla/colors/sand/sand.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,3 @@
/*
"Sand" - a warm color scheme for the One Mozilla theme

@@Colors -
Tan #f2f0e9
Link #0096dd
Hover #0073aa
*/

#page {
background-color: #f2f0e9;
background-image: url("bg-gradient-sand.png"), url("bg-sand.png");
background-repeat: repeat-x, repeat;
}
#site-description {
color: #484848;
}
#site-title a:hover,
#site-title a:focus,
#site-title a:active {
color: #0073aa;
}

/* @Links */
a:link,
a:visited {
color: #0096dd;
text-decoration: none;
}
a:hover,
a:focus,
a:active {
color: #0073aa;
text-decoration: underline;
}

.entry-comments a {
background-image: url("icn-comment.png");
#masthead {
background-color: #fbdb8c;
}
Loading