Permalink
Browse files

Add permalinks to changelog page.

  • Loading branch information...
1 parent 3ac6892 commit 197ef14498eed24cdbfa89b77c81ee89bcbb5edd @bobthecow committed Feb 3, 2013
Showing with 19 additions and 0 deletions.
  1. +4 −0 content/script.js.erb
  2. +15 −0 content/style/content.less
View
@@ -13,4 +13,8 @@ jQuery(function($) {
$('nav input')
.keydown(function(e) { $(this).text('gem install genghisapp'); }) // no changey
.click(function(e) { $(this).select(); }); // select text on click
+
+ $('#changelog h3').prepend(function() {
+ return '<a class="permalink" href="#'+$(this).parent().attr('id')+'">&para;</a>';
+ });
});
View
@@ -345,6 +345,21 @@ html.item-404 {
margin: @12px auto 0;
padding-bottom: @24px;
+ a.permalink {
+ position: absolute;
+ text-align: right;
+ width: @8px;
+ margin-left: -@10px;
+
+ &:link, &:visited {
+ color: darken(@bg, 5%);
+ }
+ &:hover, &:active {
+ color: @mongoGreen;
+ text-decoration: none;
+ }
+ }
+
h3 {
margin: @16px 0 @8px;
color: @black;

0 comments on commit 197ef14

Please sign in to comment.