# All files / components/Callout/styles CalloutTag.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/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

    4x

     import styled, { keyframes } from 'styled-components';
    import get from 'extensions/themeGet';

    const openAnimation = keyframes`
      from {
        clip-path: circle(0% at 0% 0%);
      }

      to {
        clip-path: circle(200% at 0% 50%);
      }
    `;

    export default styled.div`
      background: ${get('colors.background.default')};
      color: inherit;

      padding: ${get('spacing.small')} ${get('spacing.medium')};

      border-radius: 3px;
      border-style: solid;
      border-width: ${get('thicknesses.normal')};
      border-color: ${get('colors.border.medium')};

      box-shadow: ${get('shadows.short')};

      max-width: 300px;

      position: absolute;
      z-index: 1;
      left: 100%;
      top: 50%;
      transform: translateX(10px) translateY(-50%);
      white-space: nowrap;

      animation: ${openAnimation} 0.2s ease-in-out;
      animation-fill-mode: forwards;
    `;