# All files / components/TimeMarkMessage styles.js

100% Statements 6/6
100% Branches 0/0
100% Functions 5/5
100% Lines 6/6

    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

    2x

    2x

    2x
    2x
    2x
    2x

     import styled from 'styled-components';
    import { rgba } from 'polished';

    import { textColor, themeColor } from '../../utils/style';

    const StyledTimeMarkContainer = styled.div`
      display: flex;
      align-items: center;
      justify-content: center;

      div {
        position: relative;
        background-color: ${(props) => rgba(themeColor(props.theme, 'foreground', 'base'), 0.1)};
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        margin: 5px 0px;
        padding: 6px 9px 8px 9px;
        float: left;
        max-width: 70%;
        align-items: center;
        justify-content: center;
      }

      div > span {
        text-align: center;
        display: inline-block;
        color: ${(props) => textColor(props.theme, 'light', 'secondary')};
        font-size: ${(props) => props.theme.typography.classes.caption.fontSize};
        line-height: ${(props) => props.theme.typography.classes.caption.lineHeight};
        font-weight: ${(props) => props.theme.typography.weights.fontWeightMedium};
      }
    `;

    export default StyledTimeMarkContainer;