aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/css_reset.tsx
blob: a1dd2e05c01a3d9d54fc95af8bea4115dcce43d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { INJECTED_DIV_CLASS } from '../constants';
import { createGlobalStyle } from '../style/theme';

export interface CSSResetProps {}

/*
* Derived from
* https://github.com/jtrost/Complete-CSS-Reset
*/
export const CSSReset = createGlobalStyle`
    .${INJECTED_DIV_CLASS} {
        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;
        }
    }
`;