# All files / components/DragGroups/styles DragGroupDropAreaContent.js

0% Statements 0/5
0% Branches 0/8
0% Functions 0/5
0% Lines 0/5

    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

     import styled from 'styled-components';
    import get from 'extensions/themeGet';

    export default styled.div`
      border-width: ${get.if(props => props.canDrop, 'thicknesses.wide').else('0px')};
      border-style: solid;
      border-color: ${get('colors.gray.light')};
      position: relative;
      height: ${({ canDrop, isOver }) =>
        canDrop ? (isOver ? '120px' : '80px') : '0px'};
      transition: height 0.2s ease, border-width 0.2s ease, background 0.2s ease;
      margin: ${get.if(props => props.canDrop, 'spacing.medium').else('0')} 0;

      ${props =>
        props.isOver
          ? `background: ${get('colors.gray.light')(props)};`
          : ''} &::after {
        display: ${({ canDrop }) => (canDrop ? 'block' : 'none')};
        content: 'Drop here';
        text-transform: uppercase;
        color: ${get('colors.gray.medium')};
        font-size: 1em;
        font-weight: 700;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    `;