Socket
Socket
Sign inDemoInstall

stylecow-plugin-rem

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylecow-plugin-rem

Stylecow plugin to add a fallback in pixels for browsers not supporting rem values


Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Install size
13.8 kB
Created
Weekly downloads
 

Readme

Source

stylecow plugin rem

Build Status

Stylecow plugin to add a fallback in pixels for browsers not supporting rem values. More info about rem

You write:

p {
	font-size: 2rem;
}

And stylecow converts to:

p {
	font-size: 32px;
	font-size: 2rem;
}

To change the default value of rem (16px) just create a font-size declaration in a :root or html rule:

:root {
	font-size: 0.5em;
}
p {
	font-size: 2rem;
}

becomes to:

:root {
	font-size: 0.5em;
}
p {
	font-size: 16px;
	font-size: 2rem;
}

More demos in the tests folder

FAQs

Last updated on 17 Sep 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc