Skip to content

Commit 4fb0855

Browse files
Also fix space-*-px
1 parent 914f34f commit 4fb0855

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/docs/margin.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ export const description = "Utilities for controlling an element's margin.";
5353
`${prefix}-px`,
5454
dedent`& > :not(:last-child) {
5555
--tw-${prefix}-reverse: 0;
56-
${property}-start: calc(calc(var(--spacing) * 1px) * var(--tw-${prefix}-reverse));
57-
${property}-end: calc(calc(var(--spacing) * 1px) * calc(1 - var(--tw-${prefix}-reverse)));
56+
${property}-start: calc(1px * var(--tw-${prefix}-reverse));
57+
${property}-end: calc(1px * calc(1 - var(--tw-${prefix}-reverse)));
5858
};`,
5959
],
6060
[
6161
`-${prefix}-px`,
6262
dedent`& > :not(:last-child) {
6363
--tw-${prefix}-reverse: 0;
64-
${property}-start: calc(calc(var(--spacing) * -1px) * var(--tw-${prefix}-reverse));
65-
${property}-end: calc(calc(var(--spacing) * -1px) * calc(1 - var(--tw-${prefix}-reverse)));
64+
${property}-start: calc(-1px * var(--tw-${prefix}-reverse));
65+
${property}-end: calc(-1px * calc(1 - var(--tw-${prefix}-reverse)));
6666
};`,
6767
],
6868
[

0 commit comments

Comments
 (0)