Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Commit

Permalink
Refactor .btn and .btn-outline css class structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
willkoehler committed Aug 22, 2014
1 parent 4980cae commit 3e7159f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
23 changes: 12 additions & 11 deletions _assets/stylesheets/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,18 +261,19 @@ a {
&:active {
box-shadow:none;
}
}

.btn-outline {
background: none;
border-radius: 4px;
font-size: 0.8em;
color:darken($accent, 5%);
transition:none;
&.outline {
background: none;
border-radius: 4px;
font-size: 0.8em;
color:darken($accent, 5%);
transition:none;

&:hover {
border:2px solid darken($accent, 5%);
color:darken($accent, 10%);
background:none;
&:hover {
border:2px solid darken($accent, 5%);
color:darken($accent, 10%);
background:none;
}
}
}

2 changes: 1 addition & 1 deletion _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</nav>
{% if site.info.tagline or site.info.product_url %}<nav class="tagline">
{% if site.info.tagline %}<span>{{ site.info.tagline }}</span>{% endif %}
{% if site.info.product_link %}<a href="{{ site.info.product_link }}" class="btn btn-outline">Learn More</a>{% endif %}
{% if site.info.product_link %}<a href="{{ site.info.product_link }}" class="btn outline">Learn More</a>{% endif %}
</nav>{% endif %}
</header>
</section>
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ <h2 class="title"><a href="{{ post.url }}" rel="prefetch">{{ post.title }}</a></
<section class="pagination" style="text-align:center">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="btn btn-outline">‹ Newer</a>
<a href="/" class="btn outline">‹ Newer</a>
{% else %}
<a href="/page{{ paginator.previous_page }}" class="btn btn-outline">‹ Newer</a>
<a href="/page{{ paginator.previous_page }}" class="btn outline">‹ Newer</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="btn btn-outline">Older ›</a>
<a href="/page{{ paginator.next_page }}" class="btn outline">Older ›</a>
{% endif %}
</section>
</article>

0 comments on commit 3e7159f

Please sign in to comment.