UNPKG

react-style-reset

Version:
16 lines (13 loc) 4.02 kB
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var e=function(){return(e=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},t={margin:0,padding:0,border:0,fontSize:"100%",font:"inherit",verticalAlign:"baseline"},o={display:"block"},i={listStyle:"none"},n={content:"none"},r={quotes:"none"},a={a:t,abbr:t,acronym:t,address:t,applet:t,article:e(e({},t),o),aside:e(e({},t),o),audio:t,b:t,big:t,blockquote:e(e(e({},t),r),{"&::after":n,"&::before":n}),body:e(e({},t),{lineHeight:1}),canvas:t,caption:t,center:t,cite:t,code:t,dd:t,del:t,details:e(e({},t),o),dfn:t,div:t,dl:t,dt:t,em:t,embed:t,fieldset:t,figcaption:e(e({},t),o),figure:e(e({},t),o),footer:e(e({},t),o),form:t,h1:t,h2:t,h3:t,h4:t,h5:t,h6:t,header:e(e({},t),o),hgroup:e(e({},t),o),html:t,i:t,iframe:t,img:t,ins:t,kbd:t,label:t,legend:t,li:t,mark:t,menu:e(e({},t),o),nav:e(e({},t),o),object:t,ol:e(e({},t),i),output:t,p:t,pre:t,q:e(e(e({},t),r),{"&::after":n,"&::before":n}),ruby:t,s:t,samp:t,section:e(e({},t),o),small:t,span:t,strike:t,strong:t,sub:t,summary:t,sup:t,table:e(e({},t),{borderCollapse:"collapse",borderSpacing:0}),tbody:t,td:t,tfoot:t,th:t,thead:t,time:t,tr:t,tt:t,u:t,ul:e(e({},t),i),var:t,video:t},l={fontFamily:"monospace, monospace",fontSize:"1em"},b={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},p={WebkitAppearance:"button","&::-moz-focus-inner":{borderStyle:"none",padding:"0"},"&:-moz-focusring":{outline:"1px dotted ButtonText"}},d={boxSizing:"borderBox",padding:"0"},s={html:{lineHeight:"1.15",WebkitTextSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline dotted"},strong:{fontWeight:"bolder"},b:{fontWeight:"bolder"},code:l,kbd:l,sam:l,small:{fontSize:"80%"},sub:{bottom:"-0.25em",fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sup:{fontSize:"75%",lineHeight:"0",position:"relative",top:"-0.5em",verticalAlign:"baseline"},img:{borderStyle:"none"},button:e(e(e({},b),p),{overflow:"visible",textTransform:"none",WebkitAppearance:"button"}),input:e(e({},b),{overflow:"visible"}),optgroup:b,select:e(e({},b),{textTransform:"none"}),textare:b,'[type="button"]':p,'[type="reset"]':p,'[type="submit"]':p,fieldset:{padding:"0.35em 0.75em 0.625em"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},progress:{verticalAlign:"baseline"},textarea:{overflow:"auto"},'[type="checkbox"]':d,'[type="radio"]':d,'[type="number"]::-webkit-inner-spin-button':{height:"auto"},'[type="number"]::-webkit-outer-spin-button':{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},'[type="search"]::-webkit-search-decoration':{WebkitAppearance:'""'},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},details:{display:"block"},summary:{display:"list-item"},template:{display:"none"},"[hidden]":{display:"none"}};export default a;export{s as normalize,a as reset};