Skip to content

Commit

Permalink
fix(doc): improve buttons example in doc after #189
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 7, 2019
1 parent 2f95f1e commit 052bfe1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions site/_includes/boostwatch/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ <h3 id="disabled-black-bg">Disabled</h3>
</p>
</div>

<div>
<div class="mt-3">
<h3>Social buttons</h3>
<p>
<a class="btn btn-fbk btn-social" href="#" aria-label="Facebook"></a>
<a class="btn btn-tw btn-social" href="#" aria-label="Twitter"></a>
<p class="p-3">
<a class="btn btn-fbk btn-social" href="#" aria-label="Facebook"></a>
<a class="btn btn-tw btn-social" href="#" aria-label="Twitter"></a>
<a class="btn btn-gplus btn-social" href="#" aria-label="Google Plus"></a>
<a class="btn btn-lin btn-social" href="#" aria-label="Linkedin"></a>
<a class="btn btn-mail btn-social" href="#" aria-label="Mail"></a>
<a class="btn btn-lin btn-social" href="#" aria-label="Linkedin"></a>
<a class="btn btn-mail btn-social" href="#" aria-label="Mail"></a>
</p>
<div>
<h3>Dark Background</h3>
<p class="bg-dark">
<a class="btn btn-fbk-inverse btn-social" href="#" aria-label="Facebook"></a>
<a class="btn btn-tw-inverse btn-social" href="#" aria-label="Twitter"></a>
<p class="bg-dark p-3">
<a class="btn btn-fbk-inverse btn-social" href="#" aria-label="Facebook"></a>
<a class="btn btn-tw-inverse btn-social" href="#" aria-label="Twitter"></a>
<a class="btn btn-gplus-inverse btn-social" href="#" aria-label="Google Plus"></a>
<a class="btn btn-lin-inverse btn-social" href="#" aria-label="Linkedin"></a>
<a class="btn btn-mail-inverse btn-social" href="#" aria-label="Mail"></a>
<a class="btn btn-lin-inverse btn-social" href="#" aria-label="Linkedin"></a>
<a class="btn btn-mail-inverse btn-social" href="#" aria-label="Mail"></a>
</p>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions site/docs/4.3/components/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Boosted includes several predefined button styles, each serving its own semantic
To get the inversed button behaviour, simply add `.btn-inverse` class to your `<button>` or `<a>` tag.

{% capture example %}
<div style="background-color: black; padding: 2rem">
<div class="bg-dark p-3">
{% for color in site.data.theme-colors %}
<button type="button" class="btn btn-inverse btn-{{ color.name }}">{{ color.name | capitalize }}</button>{% endfor %}

Expand All @@ -36,7 +36,7 @@ To get the inversed button behaviour, simply add `.btn-inverse` class to your `<
{% include example.html content=example %}

{% capture example %}
<div style="background-color: #595959; padding: 2rem">
<div class="p-3" style="background-color: #595959">
{% for color in site.data.theme-colors %}
<button type="button" class="btn btn-inverse btn-{{ color.name }}">{{ color.name | capitalize }}</button>{% endfor %}

Expand All @@ -50,7 +50,7 @@ To get the inversed button behaviour, simply add `.btn-inverse` class to your `<
The default styles can be used on secondary colors backgrounds, in this case remove the `.btn-inverse` class if any.

{% capture example %}
<div style="background-color: #eee; padding: 2rem">
<div class="bg-light p-3">
{% for color in site.data.theme-colors %}
<button type="button" class="btn btn-{{ color.name }}">{{ color.name | capitalize }}</button>{% endfor %}

Expand All @@ -65,7 +65,7 @@ In need of a social media button? Some helper classes are designed to be used wi
`.btn-fbk`, `.btn-tw`, `.btn-gplus`, `.btn-lin`, `.btn-mail` are available for light and dark background.

{% capture example %}
<div style="padding: 2rem">
<div class="p-3">
<a class="btn btn-fbk btn-social" href="#" aria-label="Facebook"></a>
<a class="btn btn-tw btn-social" href="#" aria-label="Twitter"></a>
<a class="btn btn-gplus btn-social" href="#" aria-label="Google Plus"></a>
Expand All @@ -77,7 +77,7 @@ In need of a social media button? Some helper classes are designed to be used wi


{% capture example %}
<div style="background-color: #000; padding: 2rem">
<div class="bg-dark p-3">
<a class="btn btn-fbk-inverse btn-social" href="#" aria-label="Facebook"></a>
<a class="btn btn-tw-inverse btn-social" href="#" aria-label="Twitter"></a>
<a class="btn btn-gplus-inverse btn-social" href="#" aria-label="Google Plus"></a>
Expand Down

0 comments on commit 052bfe1

Please sign in to comment.