Skip to content

Commit

Permalink
Set font in <div> instead of <a>
Browse files Browse the repository at this point in the history
Otherwise a parent's font declaration may lead to the `.github-fork-ribbon` being too big.
  • Loading branch information
jplitza committed May 16, 2014
1 parent fef29b1 commit f445fe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gh-fork-ribbon.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
-moz-box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);

/* Set the font */
font: 700 13px "Helvetica Neue", Helvetica, Arial, sans-serif;

z-index: 9999;
pointer-events: auto;
}

.github-fork-ribbon a,
.github-fork-ribbon a:hover {
/* Set the font */
font: 700 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #fff;

/* Set the text properties */
color: #fff;
text-decoration: none;
text-shadow: 0 -1px rgba(0, 0, 0, 0.5);
text-align: center;
Expand Down

0 comments on commit f445fe9

Please sign in to comment.