stylus icon indicating copy to clipboard operation
stylus copied to clipboard

[FR] Highest priority option

Open wenfangdu opened this issue 4 years ago • 2 comments
trafficstars

Currently, to make all declarations have the highest priority, we need to add !important to the end of every CSS declaration. I suggest adding a "highest priority" option for this scenario, which does this automatically.

If this option already exists, please let me know 😃.

wenfangdu avatar Mar 08 '21 05:03 wenfangdu

There's no such option so I've added it to our main issue about per-style options. We'll implement it someday, hopefully :-) Meanwhile you can use the find-replace dialog to replace all /(!important\s*)?;/ with !important;

tophf avatar Mar 08 '21 05:03 tophf

Just a side note, if you're using less as the preprocessor, you can use this feature to achieve this.

wenfangdu avatar Mar 15 '21 09:03 wenfangdu