tailwindcss 2.2.11 → 2.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cli.js CHANGED
@@ -388,6 +388,7 @@ async function build() {
388
388
 
389
389
  if (!input && args['_'][1]) {
390
390
  console.error('[deprecation] Running tailwindcss without -i, please provide an input file.');
391
+ input = args['--input'] = args['_'][1];
391
392
  }
392
393
 
393
394
  if (input && !_fs.default.existsSync(input = _path.default.resolve(input))) {
@@ -10,13 +10,16 @@ function _default() {
10
10
  matchUtilities,
11
11
  addUtilities,
12
12
  theme,
13
- variants
13
+ variants,
14
+ config
14
15
  }) {
15
16
  matchUtilities({
16
17
  'divide-x': value => {
17
18
  value = value === '0' ? '0px' : value;
18
19
  return {
19
- '& > :not([hidden]) ~ :not([hidden])': {
20
+ '& > :not([hidden]) ~ :not([hidden])': { ...(config('mode') === 'jit' ? {
21
+ '@defaults border-width': {}
22
+ } : {}),
20
23
  '--tw-divide-x-reverse': '0',
21
24
  'border-right-width': `calc(${value} * var(--tw-divide-x-reverse))`,
22
25
  'border-left-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
@@ -26,7 +29,9 @@ function _default() {
26
29
  'divide-y': value => {
27
30
  value = value === '0' ? '0px' : value;
28
31
  return {
29
- '& > :not([hidden]) ~ :not([hidden])': {
32
+ '& > :not([hidden]) ~ :not([hidden])': { ...(config('mode') === 'jit' ? {
33
+ '@defaults border-width': {}
34
+ } : {}),
30
35
  '--tw-divide-y-reverse': '0',
31
36
  'border-top-width': `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
32
37
  'border-bottom-width': `calc(${value} * var(--tw-divide-y-reverse))`
@@ -39,10 +44,14 @@ function _default() {
39
44
  type: 'length'
40
45
  });
41
46
  addUtilities({
42
- '.divide-y-reverse > :not([hidden]) ~ :not([hidden])': {
47
+ '.divide-y-reverse > :not([hidden]) ~ :not([hidden])': { ...(config('mode') === 'jit' ? {
48
+ '@defaults border-width': {}
49
+ } : {}),
43
50
  '--tw-divide-y-reverse': '1'
44
51
  },
45
- '.divide-x-reverse > :not([hidden]) ~ :not([hidden])': {
52
+ '.divide-x-reverse > :not([hidden]) ~ :not([hidden])': { ...(config('mode') === 'jit' ? {
53
+ '@defaults border-width': {}
54
+ } : {}),
46
55
  '--tw-divide-x-reverse': '1'
47
56
  }
48
57
  }, variants('divideWidth'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "2.2.11",
3
+ "version": "2.2.15",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",