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

Commit 3e7159f

Browse files
committed
Refactor .btn and .btn-outline css class structure.
1 parent 4980cae commit 3e7159f

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

_assets/stylesheets/_base.scss

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -261,18 +261,19 @@ a {
261261
&:active {
262262
box-shadow:none;
263263
}
264-
}
265264

266-
.btn-outline {
267-
background: none;
268-
border-radius: 4px;
269-
font-size: 0.8em;
270-
color:darken($accent, 5%);
271-
transition:none;
265+
&.outline {
266+
background: none;
267+
border-radius: 4px;
268+
font-size: 0.8em;
269+
color:darken($accent, 5%);
270+
transition:none;
272271

273-
&:hover {
274-
border:2px solid darken($accent, 5%);
275-
color:darken($accent, 10%);
276-
background:none;
272+
&:hover {
273+
border:2px solid darken($accent, 5%);
274+
color:darken($accent, 10%);
275+
background:none;
276+
}
277277
}
278278
}
279+

_layouts/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</nav>
4343
{% if site.info.tagline or site.info.product_url %}<nav class="tagline">
4444
{% if site.info.tagline %}<span>{{ site.info.tagline }}</span>{% endif %}
45-
{% if site.info.product_link %}<a href="{{ site.info.product_link }}" class="btn btn-outline">Learn More</a>{% endif %}
45+
{% if site.info.product_link %}<a href="{{ site.info.product_link }}" class="btn outline">Learn More</a>{% endif %}
4646
</nav>{% endif %}
4747
</header>
4848
</section>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ <h2 class="title"><a href="{{ post.url }}" rel="prefetch">{{ post.title }}</a></
3333
<section class="pagination" style="text-align:center">
3434
{% if paginator.previous_page %}
3535
{% if paginator.previous_page == 1 %}
36-
<a href="/" class="btn btn-outline">‹ Newer</a>
36+
<a href="/" class="btn outline">‹ Newer</a>
3737
{% else %}
38-
<a href="/page{{ paginator.previous_page }}" class="btn btn-outline">‹ Newer</a>
38+
<a href="/page{{ paginator.previous_page }}" class="btn outline">‹ Newer</a>
3939
{% endif %}
4040
{% endif %}
4141
{% if paginator.next_page %}
42-
<a href="/page{{ paginator.next_page }}" class="btn btn-outline">Older ›</a>
42+
<a href="/page{{ paginator.next_page }}" class="btn outline">Older ›</a>
4343
{% endif %}
4444
</section>
4545
</article>

0 commit comments

Comments
 (0)