Skip to content

Commit d918ea5

Browse files
committed
Add exception content to landing docs api
1 parent 9701ba5 commit d918ea5

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed

apps/landing/src/app/(detail)/docs/api/box/page.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@ function App() {
4848
If you pass a number without a unit to a style property, it will be automatically scaled by 4.
4949
This 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

5371
You can use the `as` prop to change the element type.

apps/landing/src/app/(detail)/docs/api/button/page.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,21 @@ function App() {
5050

5151
If you pass a number without a unit to a style property, it will be automatically scaled by 4.
5252
This 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`

apps/landing/src/app/(detail)/docs/api/center/page.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@ function App() {
6868
If you pass a number without a unit to a style property, it will be automatically scaled by 4.
6969
This 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

7391
Class names and style properties are resolved in the following order:

apps/landing/src/app/(detail)/docs/api/grid/page.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@ function App() {
6060
If you pass a number without a unit to a style property, it will be automatically scaled by 4.
6161
This 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

6583
Class names and style properties are resolved in the following order:

apps/landing/src/app/(detail)/docs/api/v-stack/page.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,24 @@ function App() {
6666
If you pass a number without a unit to a style property, it will be automatically scaled by 4.
6767
This 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

7189
Class names and style properties are resolved in the following order:

0 commit comments

Comments
 (0)