mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 00:39:54 +00:00
Spinners: show all color variants.
This commit is contained in:
parent
5afc708961
commit
dafb498f75
@ -23,18 +23,13 @@ Use the border spinners for a lightweight loading indicator.
|
|||||||
|
|
||||||
### Colors
|
### Colors
|
||||||
|
|
||||||
The border spinner uses `currentColor` for its `border-color`, meaning you can customize the color with [text color utilities][color]. Here's the regular border spinner in blue.
|
The border spinner uses `currentColor` for its `border-color`, meaning you can customize the color with [text color utilities][color]. You can use any of our text color utilities on the standard spinner.
|
||||||
|
|
||||||
<div class="bd-example">
|
{% capture example %}
|
||||||
<div class="spinner-border text-primary" role="status">Loading...</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
Use any of our text color utilities on the standard spinner.
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
{% for color in site.data.theme-colors %}
|
{% for color in site.data.theme-colors %}
|
||||||
<div class="spinner-border text-{{ color.name }}" role="status">Loading...</div>{% endfor %}
|
<div class="spinner-border text-{{ color.name }}" role="status">Loading...</div>{% endfor %}
|
||||||
{% endhighlight %}
|
{% endcapture %}
|
||||||
|
{% include example.html content=example %}
|
||||||
|
|
||||||
{% capture callout %}
|
{% capture callout %}
|
||||||
**Why not use `border-color` utilities?** Each border spinner specifies a `transparent` border for at least one side, so `.border-{color}` utilities would override that.
|
**Why not use `border-color` utilities?** Each border spinner specifies a `transparent` border for at least one side, so `.border-{color}` utilities would override that.
|
||||||
@ -52,14 +47,11 @@ If you don't fancy a border spinner, switch to the grow spinner. While it doesn'
|
|||||||
|
|
||||||
Once again, this spinner is built with `currentColor`, so you can easily change its appearance with [text color utilities][color]. Here it is in blue, along with the supported variants.
|
Once again, this spinner is built with `currentColor`, so you can easily change its appearance with [text color utilities][color]. Here it is in blue, along with the supported variants.
|
||||||
|
|
||||||
<div class="bd-example">
|
{% capture example %}
|
||||||
<div class="spinner-grow text-primary" role="status">Loading...</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% highlight html %}
|
|
||||||
{% for color in site.data.theme-colors %}
|
{% for color in site.data.theme-colors %}
|
||||||
<div class="spinner-grow text-{{ color.name }}" role="status">Loading...</div>{% endfor %}
|
<div class="spinner-grow text-{{ color.name }}" role="status">Loading...</div>{% endfor %}
|
||||||
{% endhighlight %}
|
{% endcapture %}
|
||||||
|
{% include example.html content=example %}
|
||||||
|
|
||||||
## Alignment
|
## Alignment
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user