@jtorm/mediaquery-method

1.0.0 • Public • Published

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';
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jtorm/mediaquery-method

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • jtorm