# All files / src/Title Title.styles.ts

100% Statements 14/14
100% Branches 18/18
100% Functions 1/1
100% Lines 14/14

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
    4918x
    18x
    18x
    18x
    18x

    18x

    18x

    18x

    2x
    2x

    18x

    18x

    18x

    18x

     import styled, { css } from 'styled-components'
    import { StyledActions } from '../Content/Content.styles'
    import { StyledPill } from '../Pill/Pill.styles'
    import { Typography } from '../Typography/Typography'
    import { spacing } from '../_styles/spacing'

    export const StyledTitle = styled.div`
      display: flex;
      align-items: flex-start;
    `

    export const StyledAssets = styled.div`
      margin-right: ${spacing.md}px;
    `

    export const StyledTitleContent = styled.div<{ $hasActions: boolean }>`
      align-self: center;

      ${({ $hasActions }) =>
        $hasActions &&
        css`
          margin-right: ${spacing.lg}px;
        `}
    `

    export const StyledText = styled.span`
      > h1,
      > h2,
      > h3 {
        display: inline;
      }
    `

    export const StyledTitlePill = styled.span`
      margin-left: ${spacing.sm}px;

      ${StyledPill} {
        vertical-align: text-top;
      }
    `

    export const StyledTitleActions = styled(StyledActions)`
      margin-left: auto;
    `

    export const StyledSubtext = styled(Typography)`
      display: block;
    `