Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
the-new-css-reset
Advanced tools
This new CSS reset is using the new CSS features:
:where()
pseudo-class to remove specificity.:not()
pseudo-class with multi arguments.This CSS reset is built from the understanding that we don’t want to use default styles we are getting from the browsers, except the ‘display’ property.
This CSS reset removes all the default styles which we are getting on specific HTML elements except the ‘display’ property, as I already mentioned, and special HTML elements like iframe
, canvas
, img
, svg
, and video
.
In case you want the default style of the browser of a specific HTML element back, you can revert back to the default styles of the browser. For example:
input[type="checkbox"],
input[type="radio"] {
all: revert;
}
or all input elements:
input,
textarea,
select {
all: revert;
}
The package name at NPM is 'the-new-css-reset'.
Import /css/reset.css before the regular styles of the project.
In a React project, insert it to the main entry file
import "the-new-css-reset/css/reset.css"
All evergreen browsers
FAQs
the new CSS reset, using new css features
The npm package the-new-css-reset receives a total of 17,878 weekly downloads. As such, the-new-css-reset popularity was classified as popular.
We found that the-new-css-reset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.