# All files / src/ThemeProvider normalize.tsx

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    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
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144

    30x

    30x

    30x
     /**
     * Based on normalize.css
     * https://github.com/necolas/normalize.css
     */
    import * as React from 'react'
    import { Style } from 'jss'
    import { createGlobalStyle } from '@fluent-ui/styles'

    const styles: Style = {
      '*, *::after, *::before': {
        boxSizing: 'inherit'
      },
      html: {
        boxSizing: 'border-box',
        lineHeight: 1.15,
        'text-size-adjust': '100%'
      },
      body: {
        margin: 0
      },
      main: {
        display: 'block'
      },
      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',
        'text-decoration': 'underline dotted'
      },

      'b, strong': {
        fontWeight: 'bolder'
      },
      'code, kbd, samp': {
        fontFamily: 'monospace, monospace',
        fontSize: '1em'
      },
      small: {
        fontSize: '80%'
      },
      'sub, sup': {
        fontSize: '75%',
        lineHeight: 0,
        position: 'relative',
        verticalAlign: 'baseline'
      },
      sub: {
        bottom: ' -0.25em'
      },
      sup: {
        top: '-0.5em'
      },
      img: {
        borderStyle: 'none'
      },
      'button, input, optgroup, select, textarea': {
        fontFamily: 'inherit',
        fontSize: '100%',
        lineHeight: 1.15,
        margin: 0
      },
      'button, input': {
        overflow: 'visible'
      },
      'button, select': {
        textTransform: 'none'
      },
      'button, [type="button"], [type="reset"], [type="submit"]': {
        '-webkit-appearance': 'button'
      },
      'button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner': {
        borderStyle: 'none',
        padding: 0
      },
      'button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring': {
        outline: '1px dotted ButtonText'
      },
      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',
        '-webkit-overflow-scrolling': 'touch'
      },
      '[type="checkbox"], [type="radio"]': {
        boxSizing: 'border-box',
        padding: 0
      },
      '[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button': {
        height: 'auto'
      },
      '[type="search"]': {
        '-webkit-appearance': 'textfield',
        outlineOffset: '-2px'
      },
      '[type="search"]::-webkit-search-decoration': {
        '-webkit-appearance': 'none'
      },
      '::-webkit-file-upload-button': {
        '-webkit-appearance': 'button',
        font: 'inherit'
      },
      details: {
        display: 'block'
      },
      summary: {
        display: 'list-item'
      },
      template: {
        display: 'none'
      },
      '[hidden]': {
        display: 'none'
      }
    }

    export default createGlobalStyle(styles)