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
- Host: GitHub
- URL: https://github.com/suitcss/utils-offset
- Owner: suitcss
- License: mit
- Created: 2013-06-02T04:54:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2016-10-15T15:35:47.000Z (over 9 years ago)
- Last Synced: 2024-11-03T07:32:17.633Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 8
- Watchers: 9
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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/).