.md cleanup

This commit is contained in:
codecalm
2020-02-16 21:34:30 +01:00
parent f8db48d702
commit e898aa7d13
34 changed files with 199 additions and 2 deletions
+14
View File
@@ -6,6 +6,7 @@ bootstrap-link: components/buttons/
done: true
---
## Button tag
The `.btn` classes are designed to be used with the `<button>` element. However, you can also use these classes on `<a>` or `<input>` elements (though some browsers may apply a slightly different rendering).
@@ -33,6 +34,7 @@ Use any of the available button classes to quickly create a styled button . We p
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Disabled buttons
Make buttons look inactive by adding the disabled boolean attribute to any `.btn` element. `<a>`s dont support the disabled attribute, so you must add the `.disabled` class to make it visually appear disabled.
@@ -46,6 +48,7 @@ Make buttons look inactive by adding the disabled boolean attribute to any `.btn
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Color variations
The classic button, in different colors.
@@ -57,6 +60,7 @@ The classic button, in different colors.
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Ghost Buttons
Use `.btn-ghost-*` class for ghost buttons.
@@ -68,6 +72,7 @@ Use `.btn-ghost-*` class for ghost buttons.
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Square buttons
Add `.btn-square` to button to remove border-radius.
@@ -81,6 +86,7 @@ Add `.btn-square` to button to remove border-radius.
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Pill buttons
Add `.btn-pill` class to any button to make them more rounded.
@@ -94,6 +100,7 @@ Add `.btn-pill` class to any button to make them more rounded.
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Outline buttons
In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the `.btn-outline-*` ones to remove all background images and colors on any button.
@@ -107,6 +114,7 @@ In need of a button, but not the hefty background colors they bring? Replace the
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Button size
Add `.btn-lg` or `.btn-sm` for additional sizes.
@@ -131,6 +139,7 @@ Create block level buttons—those that span the full width of a parent—by add
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Button with icon
Basic buttons are traditional buttons with borders and background with an extra commponent like an icon. You can place it either on the left or the right which ever you want with different color opitons.
@@ -165,6 +174,7 @@ Comment
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Social buttons
A button can be formatted to link to a social website
@@ -190,6 +200,7 @@ You can use only icons.
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Icon buttons
Icon only button. Add `.btn-icon` class to remove unnecessary padding from button.
@@ -234,6 +245,7 @@ Wrap the dropdowns toggle (your button or link) and the dropdown menu within
{% endcapture %}
{% include example.html code=code wrapper="btn-list" centered=true %}
## Loading button
Add `.btn-loading` to use a loading state on a button. The width of the button depends on the length of the text inside.
@@ -252,6 +264,7 @@ Add `.btn-loading` to use a loading state on a button. The width of the button d
{% endcapture %}
{% include example.html code=code centered=true %}
## List of buttons
You can now create a list of buttons with the `.btn-list` container.
@@ -319,6 +332,7 @@ Use the `.text-center` or the `.text-right` modifiers to alter the alignment.
{% endcapture %}
{% include example.html code=code %}
## Button with avatar
{% capture code %}