Add button size classes

This commit is contained in:
Michael Rose 2016-03-24 12:14:40 -04:00
parent 9ae1611925
commit 4a38b2a4c5
5 changed files with 43 additions and 9 deletions

View file

@ -18,7 +18,7 @@
</div>
<div class="author__urls-wrapper">
<button class="btn btn--inverse">Follow</button>
<button class="btn btn--inverse btn--small">Follow</button>
<ul class="author__urls social-icons">
{% if author.uri %}
<li><a href="{{ author.uri }}" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a></li>

View file

@ -121,6 +121,20 @@ Make any link standout more when applying the `.btn` class.
[Info Button Text](#link){: .btn .btn--info}
```
[X-Large Button](#){: .btn .btn--x-large}
[Large Button](#){: .btn .btn--large}
[Default Button](#){: .btn}
[Small Button](#){: .btn .btn--small}
[X-Small Button](#){: .btn .btn--x-small}
```markdown
[X-Large Button](#){: .btn .btn--x-large}
[Large Button](#){: .btn .btn--large}
[Default Button](#){: .btn}
[Small Button](#){: .btn .btn--small}
[X-Small Button](#){: .btn .btn--x-small}
```
## Notices
**Watch out!** You can also add notices by appending `{: .notice}` to a paragraph.

View file

@ -10,15 +10,15 @@
/* default button */
display: inline-block;
margin-bottom: 0.25em;
padding: 10px 20px;
padding: 0.5em 1em;
color: #fff !important;
font-family: $sans-serif;
font-size: 0.8rem;
font-size: 14px;
font-weight: bold;
line-height: 1.5;
text-align: center;
text-decoration: none;
background-color: #000;
background-color: $primary-color;
border: 0 !important;
border-radius: $border-radius;
cursor: pointer;
@ -133,4 +133,28 @@
}
}
}
/* extra large button */
&--x-large {
font-size: 24px;
}
/* large button */
&--large {
font-size: 18px;
}
/* small button */
&--small {
font-size: 12px;
}
/* extra small button */
&--x-small {
font-size: 10px;
font-weight: normal;
}
}

View file

@ -143,10 +143,6 @@
display: block;
}
.btn {
margin: 0;
padding: 5px 10px;
color: mix(#fff, $gray, 25%);
@include breakpoint($large) {
display: none;
}

File diff suppressed because one or more lines are too long