@jtorm/mediaquery-method
v1.0.0
Published
jTorm Mediaquery Method
Downloads
136
Readme
jTorm Mediaquery Method
Use mediaqueries with help of the matchMedia method.
Install
npm install @jtorm/mediaquery-method
Properties
| Option | Type | Required | Description |
|--------|----------|----------|-------------|
| q
| string
| true
| Mediaquery. |
Example
->mediaquery(q: '(min-width: 950px)') {
body->attr {
n: 'class';
v: 'min-width-950';
m: 'a';
}
}
->mq {
q: '(max-width: 949px)';
body->attr {
n: 'class';
v: 'max-width-949';
m: 'p';
}
}