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

main.css « dest « gulp « postcss « examples - github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 143d0ada3c48652c453b5f4b219e21d3b36c40ee (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* responsive-font-size property with `px` unit */
.selector-1 {
  background-color: red;
  width: 300px;
  font-size: 2rem;
}
@media (max-width: 1200px) {
  .selector-1 {
  font-size: calc(1.325rem + 0.9vw);
  }
}

/* responsive-font-size property with `rem` unit */
.selector-2 {
  font-size: 2rem;
}
@media (max-width: 1200px) {
  .selector-2 {
  font-size: calc(1.325rem + 0.9vw);
  }
}

/* responsive-font-size property with !important */
.selector-3 {
  font-size: 2rem !important;
}
@media (max-width: 1200px) {
  .selector-3 {
  font-size: calc(1.325rem + 0.9vw) !important;
  }
}

/* rfs shorthand */
.selector-4 {
  font-size: 2rem;
}
@media (max-width: 1200px) {
  .selector-4 {
  font-size: calc(1.325rem + 0.9vw);
  }
}

/* not supported unit */
.selector-5 {
  font-size: 2em;
}

/* special value */
.selector-6 {
  font-size: inherit;
}

/* responsive-font-size property inside @support-query */
@supports (display: flex) {
  .selector-7 {
    font-size: 1.75rem;
  }
  @media (max-width: 1200px) {
    .selector-7 {
    font-size: calc(1.3rem + 0.6vw);
    }
  }
}

/* responsive-font-size property without unit */
.selector-8 {
  font-size: 2rem;
}
@media (max-width: 1200px) {
  .selector-8 {
  font-size: calc(1.325rem + 0.9vw);
  }
}