1.0.0 • Published 9 years ago
suitcss-utils-list v1.0.0
SUIT CSS utilities: list
SUIT CSS list utilities
- Read more about SUIT CSS's design principles.
Installation
Available classes
u-listReset- Remove default margin and paddingu-listIndent- Set the left indent. Default is40pxas found in browser defaultsu-listNone- Remove list styleu-listBullet- Bulleted list usingdiscstyle typeu-listBulletNested- Bulleted list usingcirclestyle typeu-listSquare- Square list styleu-listNumber- Numbered list usingdecimalstyle type
Configuration
The indent size can be changed:
:root {
--list-indentSize: 25px;
}Usage
<ul class="u-listIndent u-listBullet">
<li>An item</li>
<li>
<ul class="u-listBulletNested">
<li>Nested item</li>
</ul>
</li>
</ul>Please refer to the README for SUIT CSS utils
Testing
Install Node (comes with npm).
npm installTo generate a build:
npm run buildTo lint code with postcss-bem-linter and stylelint
npm run lintTo generate the testing build.
npm run build-testTo watch the files for making changes to test:
npm run watchBasic visual tests are in test/index.html.
Browser support
- Google Chrome
- Opera
- Firefox
- Safari
- Internet Explorer 8+
- Android 4.1+
- iOS 6+
- Windows phone 8.1+