Welcome to mirror list, hosted at ThFree Co, Russian Federation.

main.styl « src « gulp « stylus « examples - github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 21c6e7688984da6e5e4b2105922bbbb7e04e932c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@import "../../../../stylus/rfs"

/* responsive-font-size property with `px` unit */
.selector-1
  background-color: red
  width: 300px
  responsive-font-size(32px)

/* responsive-font-size property with `rem` unit */
.selector-2
  responsive-font-size(2rem)

/* responsive-font-size property with !important */
.selector-3
  responsive-font-size(2rem, true)

/* rfs shorthand */
.selector-4
  rfs(2rem)

/* not supported unit */
.selector-5
  responsive-font-size(2em)

/* special value */
.selector-6
  responsive-font-size(inherit)

/* responsive-font-size property inside @support-query */
@supports (display: flex)
  .selector-7
    rfs(28px)