Socket
Socket
Sign inDemoInstall

@bedrock-layout/css-reset

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bedrock-layout/css-reset - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

lib/index.cjs.js

0

lib/index.d.ts
export declare const reset: import("styled-components").FlattenSimpleInterpolation;
export declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;

@@ -1,2 +0,94 @@

import{css as n,createGlobalStyle as i}from"styled-components";function o(n,i){return i||(i=n.slice(0)),n.raw=i,n}var t,e,a=n(t||(t=o(["\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n body,\n h1,\n h2,\n h3,\n h4,\n p,\n ul,\n ol,\n li,\n figure,\n figcaption,\n blockquote,\n dl,\n dd {\n margin: 0;\n }\n\n ul[class],\n ol[class] {\n padding: 0;\n list-style: none;\n }\n\n html:focus-within {\n scroll-behavior: smooth;\n }\n\n body {\n min-block-size: 100vh;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n font-size: 100%;\n }\n\n a:not([class]) {\n text-decoration-skip-ink: auto;\n }\n\n img {\n display: block;\n max-inline-size: 100%;\n }\n\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n li,\n figcaption {\n max-inline-size: 60ch;\n }\n\n input,\n button,\n textarea,\n select {\n font: inherit;\n max-inline-size: 100%;\n }\n\n .js-focus-visible :focus:not(.focus-visible) {\n outline: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n html:focus-within {\n scroll-behavior: auto;\n }\n\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }\n"]))),r=i(e||(e=o(["\n ","\n"])),a);export{r as GlobalStyles,a as reset};
//# sourceMappingURL=index.m.js.map
import { css, createGlobalStyle } from "styled-components";
const reset = css`
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}
ul[class],
ol[class] {
padding: 0;
list-style: none;
}
html:focus-within {
scroll-behavior: smooth;
}
body {
min-block-size: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
font-size: 100%;
}
a:not([class]) {
text-decoration-skip-ink: auto;
}
img {
display: block;
max-inline-size: 100%;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
figcaption {
max-inline-size: 60ch;
}
input,
button,
textarea,
select {
font: inherit;
max-inline-size: 100%;
}
.js-focus-visible :focus:not(.focus-visible) {
outline: none;
}
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
`;
const GlobalStyles = createGlobalStyle`
${reset}
`;
export { GlobalStyles, reset };

@@ -1,2 +0,91 @@

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("styled-components")):"function"==typeof define&&define.amd?define(["exports","styled-components"],e):e((n||self).cssReset={},n.styledComponents)}(this,function(n,e){function i(n,e){return e||(e=n.slice(0)),n.raw=e,n}var o,t,s=e.css(o||(o=i(["\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n body,\n h1,\n h2,\n h3,\n h4,\n p,\n ul,\n ol,\n li,\n figure,\n figcaption,\n blockquote,\n dl,\n dd {\n margin: 0;\n }\n\n ul[class],\n ol[class] {\n padding: 0;\n list-style: none;\n }\n\n html:focus-within {\n scroll-behavior: smooth;\n }\n\n body {\n min-block-size: 100vh;\n text-rendering: optimizeSpeed;\n line-height: 1.5;\n font-size: 100%;\n }\n\n a:not([class]) {\n text-decoration-skip-ink: auto;\n }\n\n img {\n display: block;\n max-inline-size: 100%;\n }\n\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n li,\n figcaption {\n max-inline-size: 60ch;\n }\n\n input,\n button,\n textarea,\n select {\n font: inherit;\n max-inline-size: 100%;\n }\n\n .js-focus-visible :focus:not(.focus-visible) {\n outline: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n html:focus-within {\n scroll-behavior: auto;\n }\n\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }\n"]))),l=e.createGlobalStyle(t||(t=i(["\n ","\n"])),s);n.GlobalStyles=l,n.reset=s});
//# sourceMappingURL=index.umd.js.map
(function(e,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("styled-components")):typeof define=="function"&&define.amd?define(["exports","styled-components"],i):(e=typeof globalThis!="undefined"?globalThis:e||self,i(e["css-reset"]={},e.styledComponents))})(this,function(e,i){"use strict";const t=i.css`
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}
ul[class],
ol[class] {
padding: 0;
list-style: none;
}
html:focus-within {
scroll-behavior: smooth;
}
body {
min-block-size: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
font-size: 100%;
}
a:not([class]) {
text-decoration-skip-ink: auto;
}
img {
display: block;
max-inline-size: 100%;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
figcaption {
max-inline-size: 60ch;
}
input,
button,
textarea,
select {
font: inherit;
max-inline-size: 100%;
}
.js-focus-visible :focus:not(.focus-visible) {
outline: none;
}
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
`,o=i.createGlobalStyle`
${t}
`;e.GlobalStyles=o,e.reset=t,Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module"});

15

package.json
{
"name": "@bedrock-layout/css-reset",
"version": "1.1.1",
"version": "1.1.2",
"description": "bedrock-layout css reset",

@@ -20,3 +20,3 @@ "sideEffects": false,

"unpkg": "lib/index.umd.js",
"main": "lib/index.js",
"main": "lib/index.umd.js",
"umd:main": "lib/index.umd.js",

@@ -26,2 +26,8 @@ "module": "lib/index.m.js",

"types": "lib/index.d.ts",
"exports": {
".": {
"import": "./lib/index.m.js",
"require": "./lib/index.umd.js"
}
},
"directories": {

@@ -46,4 +52,3 @@ "lib": "lib",

"clean:build": "rimraf lib",
"build": "microbundle build --jsx React.createElement && node copyReset.js && minify src/reset.css > lib/reset.min.css",
"build:watch": "microbundle build --jsx React.createElement --watch",
"build": "vite build && tsc --emitDeclarationOnly && node copyReset.js && minify src/reset.css > lib/reset.min.css",
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|jsx|ts|tsx|json)\"",

@@ -57,3 +62,3 @@ "fix-format": "yarn prettier -- --write",

},
"gitHead": "492806ae643847da611d06e75f1710573390be88"
"gitHead": "b618b6253dfbefea86a0fa03dc5db4aad5f6c925"
}
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