Skip to content

Commit

Permalink
position edit this page link to bottom of page
Browse files Browse the repository at this point in the history
  • Loading branch information
captainill committed Dec 20, 2015
1 parent e18fe6e commit 5b54dac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
12 changes: 12 additions & 0 deletions website/source/assets/stylesheets/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
}
}

.edit-page-link{
position: absolute;
top: -110px;
right: 30px;
z-index: 9999;

a{
text-transform: uppercase;
color: $black;
}
}

@media (max-width: 768px) {
#footer{
text-align: center;
Expand Down
1 change: 0 additions & 1 deletion website/source/community.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ description: |-

<div class="clearfix"></div>
</div>
<div class="edit-this-page"><a href="<%= github_url :current_page %>">Edit this page</a></div>
</div>
</div>
</div>
5 changes: 4 additions & 1 deletion website/source/layouts/_footer.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<div id="footer" class="navigation">
<div class="container">
<div class="container">
<div class="row">
<div class="col-xs-12">
<% if current_page.url != '/' %>
<div class="edit-page-link"><a href="<%= github_url :current_page %>">Edit this page</a></div>
<% end %>
<div>
<ul class="main-links white nav navbar-nav">
<li><a href="/intro/index.html">Intro</a></li>
Expand Down
3 changes: 0 additions & 3 deletions website/source/layouts/inner.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<div id="main-content" class="col-md-8" role="main">
<div class="bs-docs-section">
<%= yield %>
<% if current_page.url != '/' %>
<div class="edit-this-page"><a href="<%= github_url :current_page %>">Edit this page</a></div>
<% end %>
</div>
</div>
</div>
Expand Down

0 comments on commit 5b54dac

Please sign in to comment.