You are here:
Reset CSS Styles
All web browsers have a set of default styles that are applied to every web page, called the user agent style sheet. To achieve cross-browser consistency, you must override default browser style sheets with their own default styles.
CSS reset is a set of styles that is applied to every UIPluginV2 before any other custom styles defined in the plugin's UIComponentCSS.
<style>
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, u, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
display: block;
}
/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
display: none;
}
/* Reset box-model */
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
line-height: 1;
}
ol ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
abbr[title], dfn[title] {
border-bottom: 1px dotted;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
img, video {
max-width: 100%;
}
img {
border-style: none;
}
button, input, optgroup, select, textarea {
margin: 0;
padding: 0;
border: 0;
vertical-align: middle;
color: inherit;
font: inherit;
background: transparent;
text-align: inherit;
text-transform: inherit;
}
${cssFromContract} // After reset, we include the styles defined in the plugin's contract
</style>

