Add button size classes
This commit is contained in:
parent
9ae1611925
commit
4a38b2a4c5
5 changed files with 43 additions and 9 deletions
|
@ -18,7 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="author__urls-wrapper">
|
<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">
|
<ul class="author__urls social-icons">
|
||||||
{% if author.uri %}
|
{% if author.uri %}
|
||||||
<li><a href="{{ author.uri }}" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a></li>
|
<li><a href="{{ author.uri }}" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a></li>
|
||||||
|
|
|
@ -121,6 +121,20 @@ Make any link standout more when applying the `.btn` class.
|
||||||
[Info Button Text](#link){: .btn .btn--info}
|
[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
|
## Notices
|
||||||
|
|
||||||
**Watch out!** You can also add notices by appending `{: .notice}` to a paragraph.
|
**Watch out!** You can also add notices by appending `{: .notice}` to a paragraph.
|
||||||
|
|
|
@ -10,15 +10,15 @@
|
||||||
/* default button */
|
/* default button */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 0.25em;
|
margin-bottom: 0.25em;
|
||||||
padding: 10px 20px;
|
padding: 0.5em 1em;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
font-family: $sans-serif;
|
font-family: $sans-serif;
|
||||||
font-size: 0.8rem;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: #000;
|
background-color: $primary-color;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
cursor: pointer;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -143,10 +143,6 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
margin: 0;
|
|
||||||
padding: 5px 10px;
|
|
||||||
color: mix(#fff, $gray, 25%);
|
|
||||||
|
|
||||||
@include breakpoint($large) {
|
@include breakpoint($large) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue