# All files / components/DragGroups/styles/DragGroupTitle DragGroupTitleContainer.js

0% Statements 0/1
0% Branches 0/2
0% Functions 0/1
0% Lines 0/1

    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

     import styled from 'styled-components';
    import get from 'extensions/themeGet';
    import icons from '../../../Icon/icons';
    import Icon from '../../../Icon';

    export default styled.div`
      display: flex;
      flex-direction: row;
      position: relative;

      &::before {
        content: "${icons('expandArrow')}";
        font-family: ${get('fonts.icon')};
        font-size: 8px;
        transform: ${({ expanded }) =>
          expanded ? 'rotate(0deg)' : 'rotate(-90deg)'};
        transition: transform 0.2s ease;
        flex: 0 0 auto;
        margin: auto;
      }

      &::after {
        content: '';
        border-bottom-width: ${get('thicknesses.normal')};
        border-bottom-style: dashed;
        border-bottom-color: ${get('colors.border.medium')};
        flex: 1 0 0;
        margin: auto;
      }

      & > ${Icon} {
        display: none;
        position: absolute;
        right: 0;
        background: ${get('colors.background.default')};
        font-size: 10px;
        color: ${get('colors.gray.medium')};
      }

      &:hover > ${Icon} {
        display: block;
      }
    `;