module.exports = { id: 'donut-spinners', title: 'Donut spinners', keywords: [`spinner`, `donut`, `loading`, `progress`, `primary`, `secondary`, `tertiary`, `inline`, `animation`, `animated`], description: `
mini.css provides you with animated loading indicators (.spinner
), which you can use to indicate that some content is loading.
<div class="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.
<div class="spinner primary"></div> <div class="spinner secondary"></div> <div class="spinner tertiary"></div>`] } ], dos: [], donts: [ { description: `Avoid inserting text inside donut spinners.`, sample: `
<div class="spinner">Don't place text here.</div>
`
},
{
description: `Avoid applying two color modifiers on the same donut spinner.`,
sample: `<div class="spinner primary secondary"></div>
`
}
]
}