# All files / Card Card.styled.ts

0% Statements 0/6
100% Branches 0/0
0% Functions 0/2
0% Lines 0/4

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

     import { Theme } from '@fluent-ui/core/styles'
    import { Style, Styles } from 'jss'
    import { CardClassProps } from './Card.type'

    const root = (theme: Theme): Style => ({
      boxShadow: theme.shadows![2],
      borderRadius: 4,
      overflow: 'hidden',
      backgroundColor: theme.colors!.white!.default,
      transition: theme.transitions!.card
    })
    const pure: Style = {
      boxShadow: 'none',
      borderRadius: 0
    }
    const dynamic: Style = {
      '&:hover': {
        transform: 'scale(1.1)'
      }
    }

    export const styles = (theme: Theme): Styles<CardClassProps> => ({
      root: root(theme),
      pure,
      dynamic
    })