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

0% Statements 0/3
0% Branches 0/4
0% Functions 0/3
0% Lines 0/3

    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

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

    export default styled.div`
      position: relative;
      min-height: 8px;

      &::before {
        content: '';

        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;

        border-width: ${get('thicknesses.wide')};
        border-style: solid;
        border-color: ${get('colors.gray.light')};

        opacity: ${props => (props.canDrop ? 1 : 0)};
        pointer-events: none;
        transition: opacity 0.2s ease;

        z-index: 1;

        background: ${get
          .if(props => props.isOver, 'colors.gray.light')
          .else('colors.background.default')};
      }

      &::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%);
        z-index: 2;
      }
    `;