Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some styling for a "Post author" notifier. Needs to be properly h…

…ooked up to WP. Closes #31.
  • Loading branch information...
commit f8988d817da81714eb755feb539c895fec1256d2 1 parent 3baaae5
@dstrojny dstrojny authored
View
3  source/assets/stylesheets/_patterns.scss
@@ -29,7 +29,8 @@ article.format-link {
Buttons
------------------------------------------------------------ */
.menu-toggle,
-input#searchsubmit {
+input#searchsubmit,
+li.bypostauthor cite span {
@include rem('padding', 1px 10px);
cursor: pointer;
@include rem('font-size', 11px);
View
9 source/assets/stylesheets/_view_comments.scss
@@ -67,6 +67,15 @@
line-height: $lheight;
}
}
+ li.bypostauthor cite span {
+ @include rem('margin-left', 5px);
+ @include rem('padding', 2px 5px);
+ @include rem('font-size', 10px);
+ line-height: ($evbase/10);
+ color: #fff;
+ @include vertical-gradient($startColor: lighten($link-color, 20), $endColor: $link-color);
+ border: 1px solid darken($link-color, 2);
+ }
}
a.comment-reply-link {
@include rem('font-size', 13px);
View
2  source/functions/functions.php
@@ -305,7 +305,7 @@ function twentytwelve_comment( $comment, $args, $depth ) {
<?php
echo get_avatar( $comment, 44 );
- printf( '<cite class="fn">%s</cite>', get_comment_author_link() );
+ printf( '<cite class="fn">%s <span>Post author</span></cite>', get_comment_author_link() );
printf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
Please sign in to comment.
Something went wrong with that request. Please try again.