New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-style-modifier

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-style-modifier

The default blueprint for ember-cli addons.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
58K
decreased by-11.47%
Maintainers
1
Weekly downloads
 
Created
Source

ember-style-modifier

This addon provides a {{style}} element modifier to set element's style. This allows to set custom CSS of an element without requiring a Content Security Policy style-src-attr: "unsafe-inline".

Compatibility

It supports the same versions as ember-functional-modifiers does.

Installation

ember install ember-style-modifier

Usage

<p {{style "border" "1px"}} {{style "padding" "1em" "important"}}></p>

Public API is designed after CSSStyleDeclaration.setProperty() method. It expects a property name as first and value as second positional argument. Style is removed if value is undefined. You may pass a priority as third argument, which must be "important" if provided.

Warning: You should not pass a dynamic property name as it doesn't remove existing style rules if property name changes.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 11 Mar 2019

Did you know?

Socket

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.

Install

Related posts

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