|
1 | 1 | import fs from 'fs'
|
2 | 2 | import * as path from 'path'
|
3 | 3 | import postcss from 'postcss'
|
| 4 | +import { env } from './lib/sharedState' |
4 | 5 | import createUtilityPlugin from './util/createUtilityPlugin'
|
5 | 6 | import buildMediaQuery from './util/buildMediaQuery'
|
6 | 7 | import escapeClassName from './util/escapeClassName'
|
@@ -1219,6 +1220,16 @@ export let corePlugins = {
|
1219 | 1220 | 'space-x': (value) => {
|
1220 | 1221 | value = value === '0' ? '0px' : value
|
1221 | 1222 |
|
| 1223 | + if (env.OXIDE) { |
| 1224 | + return { |
| 1225 | + '& > :not([hidden]) ~ :not([hidden])': { |
| 1226 | + '--tw-space-x-reverse': '0', |
| 1227 | + 'margin-inline-end': `calc(${value} * var(--tw-space-x-reverse))`, |
| 1228 | + 'margin-inline-start': `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`, |
| 1229 | + }, |
| 1230 | + } |
| 1231 | + } |
| 1232 | + |
1222 | 1233 | return {
|
1223 | 1234 | '& > :not([hidden]) ~ :not([hidden])': {
|
1224 | 1235 | '--tw-space-x-reverse': '0',
|
@@ -1254,6 +1265,17 @@ export let corePlugins = {
|
1254 | 1265 | 'divide-x': (value) => {
|
1255 | 1266 | value = value === '0' ? '0px' : value
|
1256 | 1267 |
|
| 1268 | + if (env.OXIDE) { |
| 1269 | + return { |
| 1270 | + '& > :not([hidden]) ~ :not([hidden])': { |
| 1271 | + '@defaults border-width': {}, |
| 1272 | + '--tw-divide-x-reverse': '0', |
| 1273 | + 'border-inline-end-width': `calc(${value} * var(--tw-divide-x-reverse))`, |
| 1274 | + 'border-inline-start-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`, |
| 1275 | + }, |
| 1276 | + } |
| 1277 | + } |
| 1278 | + |
1257 | 1279 | return {
|
1258 | 1280 | '& > :not([hidden]) ~ :not([hidden])': {
|
1259 | 1281 | '@defaults border-width': {},
|
|
0 commit comments