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

https://github.com/suitcss/utils-offset

CSS offset utilities
https://github.com/suitcss/utils-offset

Last synced: about 1 year ago
JSON representation

CSS offset utilities

Awesome Lists containing this project

README

          

# SUIT CSS utilities: offset

SUIT CSS offset utilities.

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

## Installation

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

…is a convenient way to install the SUIT CSS offset utilities:

* [utils-after](https://github.com/suitcss/utils-after)
* [utils-before](https://github.com/suitcss/utils-before)

### Configuration

There are 3 Media Query breakpoints:

* `--sm-viewport`
* `--md-viewport`
* `--lg-viewport`

When using the [SUIT CSS preprocessor](https://github.com/suitcss/preprocessor),
breakpoints can be configured using `@custom-media`. For example:

```css
@custom-media --sm-viewport (min-width:320px) and (max-width:640px);
@custom-media --md-viewport (min-width:640px) and (max-width:960px);
@custom-media --lg-viewport (min-width:960px);
```

## Usage

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