postcss-logical
Advanced tools
Comparing version 4.0.1 to 4.0.2
# Changes to PostCSS Logical Properties | ||
### 4.0.2 (June 10, 2019) | ||
- Fixed: Restored transforms for `max-block-size`, `max-inline-size`, | ||
`min-block-size`, and `min-inline-size`. | ||
### 4.0.1 (June 10, 2019) | ||
@@ -4,0 +9,0 @@ |
@@ -271,13 +271,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var transformSize = { | ||
// block-size | ||
'block-size': decl => { | ||
decl.prop = 'height'; | ||
}, | ||
// inline-size | ||
'inline-size': decl => { | ||
decl.prop = 'width'; | ||
} | ||
}; | ||
var matchSize = /^(min-|max-)?(block|inline)-(size)$/i; | ||
var transformSize = (decl => { | ||
decl.prop = decl.prop.replace(matchSize, ($0, minmax, flow) => `${minmax || ''}${'block' === flow ? 'height' : 'width'}`); | ||
}); | ||
var transformTextAlign = ((decl, values, dir) => { | ||
@@ -603,4 +598,8 @@ const lDecl = decl.clone({ | ||
// Logical Height and Logical Width | ||
'block-size': transformSize['block-size'], | ||
'inline-size': transformSize['inline-size'], | ||
'block-size': transformSize, | ||
'max-block-size': transformSize, | ||
'min-block-size': transformSize, | ||
'inline-size': transformSize, | ||
'max-inline-size': transformSize, | ||
'min-inline-size': transformSize, | ||
// Flow-relative Margins | ||
@@ -607,0 +606,0 @@ 'margin': transformDirectionalShorthands, |
{ | ||
"name": "postcss-logical", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Use logical properties and values in CSS", | ||
@@ -5,0 +5,0 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158684
1293