# All files / constants singleStatStyles.ts

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

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

    1x

    1x

    1x

    1x

    1x

    1x

    1x

     import CSS from 'csstype'

    export const LASER = '#00C9FF'

    export const SINGLE_STAT_DEFAULT_TEST_ID = 'giraffe-layer-single-stat'

    export const SINGLE_STAT_DEFAULT_STYLE: CSS.Properties = {
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      overflow: 'hidden',
      width: '100%',
      height: '100%',
      padding: '8px',
      color: LASER,
      userSelect: 'none',
      MozUserSelect: 'none',
      WebkitUserSelect: 'none',
      msUserSelect: 'none',
      position: 'absolute',
      top: 0,
      left: 0,
      right: 0,
      bottom: 0,
      borderRadius: '4px',
    }

    export const SINGLE_STAT_RESIZER_DEFAULT_STYLE: CSS.Properties = {
      overflow: 'hidden',
      width: '100%',
      height: '100%',
    }

    export const SINGLE_STAT_SVG_DEFAULT_ATTRIBUTES = {
      width: '100%',
      height: '100%',
    }

    export const SINGLE_STAT_SVG_TEXT_DEFAULT_ATTRIBUTES = {
      fontSize: '100',
      y: '59%',
      x: '50%',
      dominantBaseline: 'middle',
      textAnchor: 'middle',
      opacity: 1,
    }

    export const SINGLE_STAT_SVG_TEXT_DEFAULT_STYLE: CSS.Properties = {
      fill: LASER,
    }