Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonsmith/suitcss-utils-image

CSS image utilities
https://github.com/simonsmith/suitcss-utils-image

css responsive suitcss utility

Last synced: 20 days ago
JSON representation

CSS image utilities

Awesome Lists containing this project

README

        

# SUIT CSS utilities: image

[![Build Status](https://travis-ci.org/simonsmith/suitcss-utils-image.svg?branch=master)](https://travis-ci.org/simonsmith/suitcss-utils-image)

SUIT CSS image utilities

* Read more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).

## Installation

* [npm](http://npmjs.org/): `npm install suitcss-utils-image`
* Download: [zip](https://github.com/simonsmith/suitcss-utils-image/releases/latest)

## Available classes

* `u-imgResponsive` - Allow an image to respond to its container size

## Usage

```html

```

### 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](https://github.com/suitcss/utils-display)

```html

```

Please refer to the README for [SUIT CSS utils](https://github.com/suitcss/utils/)

## Testing

Install [Node](http://nodejs.org) (comes with npm).

```
npm install
```

To generate a build:

```
npm run build
```

To lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/)

```
npm run lint
```

To generate the testing build.

```
npm run build-test
```

To watch the files for making changes to test:

```
npm run watch
```

Basic 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+