@csstools/postcss-text-decoration-shorthand
Advanced tools
Comparing version 2.2.0 to 2.2.1
# Changes to PostCSS Text Decoration Shorthand | ||
### 2.2.1 (February 13, 2023) | ||
- Updated: `preserve` option defaults to `true` | ||
### 2.2.0 (February 2, 2023) | ||
@@ -4,0 +8,0 @@ |
import type { PluginCreator } from 'postcss'; | ||
/** postcss-text-decoration-shorthand plugin options */ | ||
export type pluginOptions = { | ||
/** Preserve the original notation. default: false */ | ||
/** Preserve the original notation. default: true */ | ||
preserve?: boolean; | ||
@@ -6,0 +6,0 @@ }; |
{ | ||
"name": "@csstools/postcss-text-decoration-shorthand", | ||
"description": "Use text-decoration in it's shorthand form in CSS", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
@@ -18,2 +18,3 @@ # PostCSS Text Decoration Shorthand [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS] | ||
text-decoration-thickness: calc(0.01em * 25); | ||
text-decoration: wavy underline purple 25%; | ||
} | ||
@@ -57,6 +58,6 @@ ``` | ||
The `preserve` option determines whether the original notation | ||
is preserved. By default, it is not preserved. | ||
is preserved. By default, it is preserved. | ||
```js | ||
postcssTextDecorationShorthand({ preserve: true }) | ||
postcssTextDecorationShorthand({ preserve: false }) | ||
``` | ||
@@ -75,3 +76,2 @@ | ||
text-decoration-thickness: calc(0.01em * 25); | ||
text-decoration: wavy underline purple 25%; | ||
} | ||
@@ -78,0 +78,0 @@ ``` |
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
19344