module.exports = { id: 'responsive-spacing-sizing', title: 'Responsive spacing & sizing', keywords: ['responsiveness', 'margin', 'padding', 'responsive-margin', 'responsive-margin'], description: '
You can make elements\' spacing or sizing responsive by applying the appropriate class (.responsive-margin
or .responsive-padding
).
<span class="responsive-margin">Responsive margin.</span> <span class="responsive-padding">Responsive padding.</span>`], notes: [ 'Responsive spacing and sizing modifiers use
!important
declarations to override any other styles, so exercise caution when using them.',
'Responsive spacing and sizing modifiers are independent, meaning that hiding or visually hiding an element in one screen size will not affect its visibility in any other screen size.'
],
customization: [
`Universal margin for elements can be changed globally by changing the value of the --universal-margin
variable, affecting the responsive spacing modifier. 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 padding for elements can be changed globally by changing the value of the --universal-padding
variable, affecting the responsive sizing modifier.`
],
modifiers: [],
dos: [],
donts: []
}