Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

box-sizing-border-box

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

box-sizing-border-box - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "box-sizing-border-box",
"version": "1.0.0",
"version": "1.0.1",
"description": "Best practice for setting box-sizing: border-box, taken from css-tricks",

@@ -5,0 +5,0 @@ "main": "_index.scss",

# box-sizing-border-box
Best practice for setting box-sizing: border-box
Best practice for setting box-sizing: border-box.
From https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ .
## Installation
`yarn add --dev box-sizing-border-box`
`npm install --save-dev box-sizing-border-box`
## What's inside?
See https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ .
```css
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
````
## Usage
### webpack (SCSS) + node_modules loader
```scss
@import "~box-sizing-border-box/index";
````
### eyeglass (SCSS):
```scss
@import 'box-sizing-border-box';
````
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc