mini.css provides you with animated loading indicators (.spinner), which you can use to indicate that some content is loading.
`,
+ example: ``,
+ samples: [`
<divclass="spinner"></div>
`],
+ notes: [`You can use either a <div> or a <span> element to create a donut spinner.`,
+ `You can add the role="progressbar" attribute to spinner donut elements to increase accessibility.`,
+ `You can inline donut spinners inside a paragraph or some other textual content.`],
+ customization: [
+ `Foreground color for donut spinners can be changed by changing the value of the --spinner-fore-color variable.`,
+ `Background color for donut spinners can be changed by changing the value of the --spinner-back-color variable.`,
+ `You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.`,
+ `Universal margin for elements can be changed globally by changing the value of the --universal-margin variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.`
+ ],
+ modifiers: [
+ {
+ title : 'Color variants',
+ description: `
You can create primary, secondary or tertiary (.primary, .secondary, .tertiary) donut spinners, simply by adding the appropriate color modifier.
`
+ },
+ {
+ description: `Avoid applying two color modifiers on the same donut spinner.`,
+ sample: `
<divclass="spinner primary secondary"></div>
`
+ }
+ ]
+}
diff --git a/docs/doc-fragments/progressBars.js b/docs/doc-fragments/progressBars.js
index edb4b7d..2a3b2d1 100644
--- a/docs/doc-fragments/progressBars.js
+++ b/docs/doc-fragments/progressBars.js
@@ -9,7 +9,6 @@ module.exports = {
customization: [
`Foreground color for progress bars can be changed by changing the value of the --progress-fore-color variable.`,
`Background color for progress bars can be changed by changing the value of the --progress-back-color variable.`,
- `Border color for cards can be changed by changing the value of the --card-border-color variable.`,
`You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.`,
`Universal margin for elements can be changed globally by changing the value of the --universal-margin variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.`,
`Universal border radius for elements can be changed globally by changing the value of the --universal-border-radius variable.`
diff --git a/docs/v3/DEVLOG.md b/docs/v3/DEVLOG.md
index 7f4265b..091bf91 100644
--- a/docs/v3/DEVLOG.md
+++ b/docs/v3/DEVLOG.md
@@ -252,3 +252,4 @@
## 20171230
- Documented `progress` element.
+- Documented `spinner` component.
diff --git a/docs/v3/docs.html b/docs/v3/docs.html
index ef295e5..4ef4aa3 100644
--- a/docs/v3/docs.html
+++ b/docs/v3/docs.html
@@ -26,7 +26,7 @@
-
+
Getting started
You can get started using mini.css in one of many ways. It is published on npm and yarn, so you can easily download it, using your preferred package manager:
Don't: Avoid applying two color modifiers on the same progress bar.
Notes
Progress bars are designed to work with a max="1000" attribute, as this covers the most common use-cases.
-
Customization
Foreground color for progress bars can be changed by changing the value of the --progress-fore-color variable.
Background color for progress bars can be changed by changing the value of the --progress-back-color variable.
Border color for cards can be changed by changing the value of the --card-border-color variable.
You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.
Universal margin for elements can be changed globally by changing the value of the --universal-margin variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.
Universal border radius for elements can be changed globally by changing the value of the --universal-border-radius variable.
+
Customization
Foreground color for progress bars can be changed by changing the value of the --progress-fore-color variable.
Background color for progress bars can be changed by changing the value of the --progress-back-color variable.
You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.
Universal margin for elements can be changed globally by changing the value of the --universal-margin variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.
Universal border radius for elements can be changed globally by changing the value of the --universal-border-radius variable.
+
+
Donut spinners
+
mini.css provides you with animated loading indicators (.spinner), which you can use to indicate that some content is loading.
+
Example
+
Sample code
<divclass="spinner"></div>
+
Modifiers
+
Color variants
You can create primary, secondary or tertiary (.primary, .secondary, .tertiary) donut spinners, simply by adding the appropriate color modifier.
Don't: Avoid inserting text inside donut spinners.
<divclass="spinner primary secondary"></div>
Don't: Avoid applying two color modifiers on the same donut spinner.
+
Notes
You can use either a <div> or a <span> element to create a donut spinner.
You can add the role="progressbar" attribute to spinner donut elements to increase accessibility.
You can inline donut spinners inside a paragraph or some other textual content.
+
Customization
Foreground color for donut spinners can be changed by changing the value of the --spinner-fore-color variable.
Background color for donut spinners can be changed by changing the value of the --spinner-back-color variable.
You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.
Universal margin for elements can be changed globally by changing the value of the --universal-margin variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.