![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-flexbox-reset
Advanced tools
PostCSS plugin for resetting flexbox. This plugin adds rule min-width:0
to all direct descendants of element display: flex
.
Let’s say you want to truncate labels in flexbox layout. Without resetting flex items, it doesn't work. When you apply min-width:0
to flex items, layout works as expected.
This was just one example, but you will come across similar funky issues in your flexbox layouts in different browsers. You can read my whole story here.
/* Input example */
.foo {
display: flex;
}
/* Output example */
.foo {
display: flex;
}
.foo > * {
min-width: 0;
}
Step 1: Install plugin:
npm install --save-dev postcss postcss-flexbox-reset
Step 2: Check you project for existed PostCSS config: postcss.config.js
in the project root, "postcss"
section in package.json
or postcss
in bundle config.
If you do not use PostCSS, add it according to official docs and set this plugin in settings.
Step 3: Add the plugin to plugins list:
module.exports = {
plugins: [
+ require('postcss-flexbox-reset'),
require('autoprefixer')
]
}
See Releases history
FAQs
PostCSS plugin for resetting flexbox
The npm package postcss-flexbox-reset receives a total of 0 weekly downloads. As such, postcss-flexbox-reset popularity was classified as not popular.
We found that postcss-flexbox-reset 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.