Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@material/density
Advanced tools
Density utilities for Material Components for the web
Density subsystem provides adaptive layout to components.
npm install @material/density
This package is used as utility for other components' density mixins. Mixin provided by this package is not intended to be consumed directly by developers, use component's density mixin instead.
The styles for applying density to button component instance looks like this:
@import "@material/button/mixins";
.my-custom-button {
@include mdc-button-density(-3);
}
This would apply -3
(high density) to button component instance.
You would indirectly use the Density API through respective component's mixin which takes care of setting appropriate component height.
Variable | Description |
---|---|
$mdc-density-interval | Density interval between each dense scale. This interval is used for numbered density scale to calculate dense height based on baseline component height. |
$mdc-density-minimum-scale | Minimum scale supported by density subsystem. This scale always maps to highest dense scale. |
$mdc-density-maximum-scale | Maximum scale supported by density subsystem. This scale always maps to lowest dense scale. |
$mdc-density-supported-scales | Supported density scale when density literal is used (For example, minimum ). |
Function | Description |
---|---|
mdc-density-prop-value($density-config, $density-scale, $property-name) | Returns component property value based on given density config and density scale. |
FAQs
Density utilities for Material Components for the web
The npm package @material/density receives a total of 170,139 weekly downloads. As such, @material/density popularity was classified as popular.
We found that @material/density demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.