![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
less-plugin-rtl
Advanced tools
Readme
Reverses less from ltr to rtl
.reverse {
float: left;
margin-left: 5px;
margin: 1px 2px 3px 4px;
& when (@rtl) {
color: green;
}
}
Becomes...
.reverse {
float: right;
margin-right: 5px;
margin: 1px 4px 3px 2px;
color: green;
}
To use with lessc
$ npm install -g less-plugin-rtl
$ lessc --rtl file.less out.css
Three variables are injected ltr
and rtl
which will be set to true or false and dir
which will be set to rtl
or ltr
.
To be more in control of properties that get reversed, you can specify property directives
.test {
-ltr-padding: 0; // rule only appears in LTR
-rtl-margin: 3px; // rule only appears in RTL
-ltr-rtl-float: left; // rule does not get reversed in either direction if autoReverse is on
-rtl-ltr-float: left; // rule does not get reversed in either direction if autoReverse is on
-ltr-reverse-text-align: left; // rule gets reversed for LTR, so in this case RTL = left, LTR = right
-rtl-reverse-text-align: left; // rule gets reversed for RTL, so in this case RTL = right, LTR = left
}
Note: The reverse rules only make sense if autoreverse is off.
And this produces in RTL..
.test {
margin: 3px;
float: left;
float: left;
text-align: left;
text-align: right;
}
and in LTR...
.test {
padding: 0;
float: left;
float: left;
text-align: right;
text-align: left;
}
$ lessc --rtl="dir=LTR auto-reverse=false vars=false" file.less out.css
Whether rules should be auto reversed or require property directives as above. Defaults to true.
Whether the variables should be available. Defaults to true.
The intended direction. Defaults to RTL.
As above, but use dir
, vars
and autoReverse
on the options object.
FAQs
ltr to rtl less plugin
The npm package less-plugin-rtl receives a total of 4 weekly downloads. As such, less-plugin-rtl popularity was classified as not popular.
We found that less-plugin-rtl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.