Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

preview styles for admin view

  • Loading branch information...
commit 72e3ab13146a059004f280f454bc924ed7d7dee6 1 parent d8074fb
@pnts authored
Showing with 37 additions and 10 deletions.
  1. +30 −4 functions.php
  2. +7 −6 style.css
View
34 functions.php
@@ -25,13 +25,39 @@ function oulipo_header_style() { ?>
function oulipo_admin_header_style() { ?>
<style type="text/css">
- #headimg { background: url(<?php header_image() ?>) no-repeat;
- width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
- height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
+ #headimg {
}
</style><?php }
+
+ function oulipo_admin_header_image() { ?>
+ <div id="headimg">
+ <style type="text/css">
+ h1.masthead, p.description { font-family: "Hoefler Text","Cambria",Georgia,"Times New Roman",Times,serif; }
+ p.description { color: #666666; font-size: 13px; }
+ h1.masthead a { font-size: 24px; font-weight: normal; font-variant: small-caps; text-decoration: none; }
+ h1.masthead { margin: 30px 0 0 0;}
+ </style>
+ <?php
+ if ( 'blank' == get_theme_mod( 'header_textcolor',
+ HEADER_TEXTCOLOR ) || '' == get_theme_mod( 'header_textcolor',
+ HEADER_TEXTCOLOR ) )
+ $style = ' style="display:none;"';
+ else
+ $style = ' style="color:#' . get_theme_mod(
+ 'header_textcolor', HEADER_TEXTCOLOR ) . ';"';
+ ?>
+ <img src="<?php esc_url ( header_image() ); ?>" alt="" />
+
+ <h1 class="masthead"><a <?php echo $style; ?> onclick="return false;"
+ href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' );
+ ?></a></h1>
+ <p class="description"><?php bloginfo(
+ 'description' ); ?></div>
+
+ </div>
+ <?php }
- add_custom_image_header('oulipo_header_style','oulipo_admin_header_style');
+ add_custom_image_header('oulipo_header_style','oulipo_admin_header_style', 'oulipo_admin_header_image');
add_action( 'init', 'register_oulipo_menus' );
function register_oulipo_menus() {
View
13 style.css
@@ -331,7 +331,7 @@ h3#comments {
padding: 4px;
width: 43.5em;
font-size: .9em;
- color: #999;
+ color: #333;
overflow: auto;
}
@@ -644,7 +644,8 @@ a:hover, a:hover span {
}
.entry sup a,
-#main_nav .current_page_item a
+#main_nav .current_page_item a,
+#main_nav .current_page_ancestor a
{
color: #3399FF !important;
}
@@ -874,6 +875,10 @@ ul.commentlist .comment-meta {
margin-top: -.5em;
}
+.entry ul.commentlist .comment.bypostauthor .vcard img {
+ border: 1px solid #3399FF;
+}
+
.commentlist ul.children {
list-style-type: none;
overflow: hidden;
@@ -889,10 +894,6 @@ ul.commentlist .navigation {
border: 0;
}
-ul.commentlist .comment.bypostauthor .vcard img {
- border: 1px solid #FF9900;
-}
-
ul.commentlist .comment .comment-author.vcard img{
border: 1px solid #CCC;
padding: 2px;
Please sign in to comment.
Something went wrong with that request. Please try again.