![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
postcss-vertical-rhythm
Advanced tools
A PostCSS plugin to create a custom vertical rhythm unit from the base font-size and line-height.
A PostCSS plugin to create a custom vertical rhythm unit from the base font-size and line-height.
Set the font on the body selector using the CSS shorthand method, you can use either px
, em
, rem
or %
unit for font-size:
body {
font: 16px/2 serif;
}
This will create a line-height of 32px, which will be the vertical rhythm value. Now you can use the custom vertical rhythm unit, vr
:
Input:
p {
margin-bottom: 1vr;
padding-top: .5vr;
}
Output:
p {
margin-bottom: 32px;
padding-top: 16px;
}
Type: Object | Null
Default:
{
rootSelector: 'body',
}
rootSelector
(String) The root selector for the font
declaraion.Install:
npm install postcss-vertical-rhythm --save-dev
Then include the plugin:
postcss([ require('postcss-vertical-rhythm')(options) ])
See PostCSS docs for examples for your environment.
Released under the MIT license.
v1.1.5
FAQs
A PostCSS plugin to create a custom vertical rhythm unit from the base font-size and line-height.
The npm package postcss-vertical-rhythm receives a total of 13 weekly downloads. As such, postcss-vertical-rhythm popularity was classified as not popular.
We found that postcss-vertical-rhythm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.