0.1.0 • Published 9 years ago
suitcss-utils-image v0.1.0
SUIT CSS utilities: image
SUIT CSS image utilities
- Read more about SUIT CSS's design principles.
Installation
Available classes
u-imgResponsive- Allow an image to respond to its container size
Usage
<img class="u-imgResponsive" src="{src}" />Configuration
Overriding the display property on responsive images
By default responsive images are set to display: block but this can be overridden with
another utility, such as suitcss-utils-display
<img class="u-imgResponsive u-inline" src="{src}" />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+
0.1.0
9 years ago