feat: make instant resistant to external styles

This commit is contained in:
fragosti
2018-11-06 15:59:16 -08:00
parent 42c441fafa
commit 10da1e24e1
16 changed files with 233 additions and 171 deletions

View File

@@ -0,0 +1,34 @@
import { styled } from '../style/theme';
export interface CSSResetProps {}
export const CSSReset =
styled.div <
CSSResetProps >
`
/*
* Derived from
* https://github.com/jtrost/Complete-CSS-Reset
*/
a, abbr, area, article, aside, audio, b, bdo, blockquote, body, button,
canvas, caption, cite, code, col, colgroup, command, datalist, dd, del,
details, dialog, dfn, div, dl, dt, em, embed, fieldset, figure, form,
h1, h2, h3, h4, h5, h6, head, header, hgroup, hr, html, i, iframe, img,
input, ins, keygen, kbd, label, legend, li, map, mark, menu, meter, nav,
noscript, object, ol, optgroup, option, output, p, param, pre, progress,
q, rp, rt, ruby, samp, section, select, small, span, strong, sub, sup,
table, tbody, td, textarea, tfoot, th, thead, time, tr, ul, var, video {
background: transparent;
border: 0;
font-size: 100%;
font: inherit;
margin: 0;
outline: none;
padding: 0;
text-align: left;
text-decoration: none;
vertical-align: baseline;
z-index: 1;
}
`;