File tree Expand file tree Collapse file tree 5 files changed +90
-0
lines changed
apps/landing/src/app/(detail)/docs/api Expand file tree Collapse file tree 5 files changed +90
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,24 @@ function App() {
4848If you pass a number without a unit to a style property, it will be automatically scaled by 4.
4949This means 1 equals 4px, 2 equals 8px, and so on.
5050
51+ However, the following properties are exceptions and ** are not multiplied by 4** :
52+
53+ - ` opacity `
54+ - ` flex `
55+ - ` z-index `
56+ - ` line-clamp `
57+ - ` font-weight `
58+ - ` line-height `
59+ - ` scale `
60+ - ` aspect-ratio `
61+ - ` flex-grow `
62+ - ` flex-shrink `
63+ - ` order `
64+ - ` grid-column ` , ` grid-column-start ` , ` grid-column-end `
65+ - ` grid-row ` , ` grid-row-start ` , ` grid-row-end `
66+ - ` animation-iteration-count `
67+ - ` tab-size ` , ` moz-tab-size ` , ` -webkit-line-clamp `
68+
5169### Rendering as Another Element
5270
5371You can use the ` as ` prop to change the element type.
Original file line number Diff line number Diff line change @@ -50,3 +50,21 @@ function App() {
5050
5151If you pass a number without a unit to a style property, it will be automatically scaled by 4.
5252This means 1 equals 4px, 2 equals 8px, and so on.
53+
54+ However, the following properties are exceptions and ** are not multiplied by 4** :
55+
56+ - ` opacity `
57+ - ` flex `
58+ - ` z-index `
59+ - ` line-clamp `
60+ - ` font-weight `
61+ - ` line-height `
62+ - ` scale `
63+ - ` aspect-ratio `
64+ - ` flex-grow `
65+ - ` flex-shrink `
66+ - ` order `
67+ - ` grid-column ` , ` grid-column-start ` , ` grid-column-end `
68+ - ` grid-row ` , ` grid-row-start ` , ` grid-row-end `
69+ - ` animation-iteration-count `
70+ - ` tab-size ` , ` moz-tab-size ` , ` -webkit-line-clamp `
Original file line number Diff line number Diff line change @@ -68,6 +68,24 @@ function App() {
6868If you pass a number without a unit to a style property, it will be automatically scaled by 4.
6969This means 1 equals 4px, 2 equals 8px, and so on.
7070
71+ However, the following properties are exceptions and ** are not multiplied by 4** :
72+
73+ - ` opacity `
74+ - ` flex `
75+ - ` z-index `
76+ - ` line-clamp `
77+ - ` font-weight `
78+ - ` line-height `
79+ - ` scale `
80+ - ` aspect-ratio `
81+ - ` flex-grow `
82+ - ` flex-shrink `
83+ - ` order `
84+ - ` grid-column ` , ` grid-column-start ` , ` grid-column-end `
85+ - ` grid-row ` , ` grid-row-start ` , ` grid-row-end `
86+ - ` animation-iteration-count `
87+ - ` tab-size ` , ` moz-tab-size ` , ` -webkit-line-clamp `
88+
7189<br />
7290
7391Class names and style properties are resolved in the following order:
Original file line number Diff line number Diff line change @@ -60,6 +60,24 @@ function App() {
6060If you pass a number without a unit to a style property, it will be automatically scaled by 4.
6161This means 1 equals 4px, 2 equals 8px, and so on.
6262
63+ However, the following properties are exceptions and ** are not multiplied by 4** :
64+
65+ - ` opacity `
66+ - ` flex `
67+ - ` z-index `
68+ - ` line-clamp `
69+ - ` font-weight `
70+ - ` line-height `
71+ - ` scale `
72+ - ` aspect-ratio `
73+ - ` flex-grow `
74+ - ` flex-shrink `
75+ - ` order `
76+ - ` grid-column ` , ` grid-column-start ` , ` grid-column-end `
77+ - ` grid-row ` , ` grid-row-start ` , ` grid-row-end `
78+ - ` animation-iteration-count `
79+ - ` tab-size ` , ` moz-tab-size ` , ` -webkit-line-clamp `
80+
6381<br />
6482
6583Class names and style properties are resolved in the following order:
Original file line number Diff line number Diff line change @@ -66,6 +66,24 @@ function App() {
6666If you pass a number without a unit to a style property, it will be automatically scaled by 4.
6767This means 1 equals 4px, 2 equals 8px, and so on.
6868
69+ However, the following properties are exceptions and ** are not multiplied by 4** :
70+
71+ - ` opacity `
72+ - ` flex `
73+ - ` z-index `
74+ - ` line-clamp `
75+ - ` font-weight `
76+ - ` line-height `
77+ - ` scale `
78+ - ` aspect-ratio `
79+ - ` flex-grow `
80+ - ` flex-shrink `
81+ - ` order `
82+ - ` grid-column ` , ` grid-column-start ` , ` grid-column-end `
83+ - ` grid-row ` , ` grid-row-start ` , ` grid-row-end `
84+ - ` animation-iteration-count `
85+ - ` tab-size ` , ` moz-tab-size ` , ` -webkit-line-clamp `
86+
6987<br />
7088
7189Class names and style properties are resolved in the following order:
You can’t perform that action at this time.
0 commit comments