![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.
@fylgja/aspect-ratio
Advanced tools
The aspect ratio component allows you to make not just videos. But anything you want to a certain responsive aspect ratio
The aspect ratio component is used to set videos to a certain responsive aspect ratio,
but can also be used for images and other content.
npm install @fylgja/aspect-ratio
Then include the component in to your code via;
@use "@fylgja/aspect-ratio";
// Or via PostCSS and other options as plain CSS
@import "@fylgja/aspect-ratio/aspect-ratio.css";
To use the aspect-ratio, create element with the class .aspect-ratio
,
any child of the aspect-ratio will now always be show in the ratio set by the class.
16/9 is the default ratio.
To edit the ratio use the css variable with the same name.
<div class="aspect-ratio" style="--aspect-ratio: 21/9;">..</div>
As with almost all of our components, CSS variables can be configured to add your own look/style.
Want direct control on the base styles, here are the following SCSS variables can you modify.
$aspect-ratio: "16/9" !default;
At the moment PostCSS Calc, which is also part of CSSNano, has an open issue where is removes the parentheses around a nested calc, this breaks the CSS aspect ratio calc.
You can at the moment work around this issue by;
cssnano: {
preset: ['default', { calc: false }]
}
Find more about the postcss/postcss-calc issue on the github issue#91
[1.0.0] - 2021-06-22
Initial Release 🎉
FAQs
The aspect ratio component allows you to make not just videos. But anything you want to a certain responsive aspect ratio
The npm package @fylgja/aspect-ratio receives a total of 39 weekly downloads. As such, @fylgja/aspect-ratio popularity was classified as not popular.
We found that @fylgja/aspect-ratio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.