Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-overflow-ellipsis

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-overflow-ellipsis - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

28

index.js

@@ -6,18 +6,20 @@ var postcss = require('postcss');

return function (css) {
css.walkDecls(propertyMatch, decl => {
if (decl.value !== 'ellipsis') return;
function ruleHandler(decl) {
if (decl.value !== 'ellipsis') return;
decl.cloneBefore({
prop: 'white-space',
value: 'nowrap'
});
decl.cloneBefore({
prop: 'text-overflow',
value: 'ellipsis'
});
decl.cloneBefore({
prop: 'white-space',
value: 'nowrap'
});
decl.cloneBefore({
prop: 'text-overflow',
value: 'ellipsis'
});
decl.value = 'hidden';
});
decl.value = 'hidden';
}
return function (css) {
css.walkDecls(propertyMatch, ruleHandler);
};
});
{
"name": "postcss-overflow-ellipsis",
"version": "0.1.0",
"version": "0.1.1",
"description": "PostCSS plugin to convert shorthand 'overflow: ellipsis' into the appropriate rules",

@@ -5,0 +5,0 @@ "keywords": [

@@ -18,4 +18,4 @@ # PostCSS Overflow Ellipsis [![Build Status][ci-img]][ci]

white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-overflow: ellipsis;
}

@@ -22,0 +22,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc