# All files / components/Cards CardGroupConnected.js

0% Statements 0/10
0% Branches 0/4
0% Functions 0/1
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
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40

     import styled from 'styled-components';
    import Card from './Card';
    import themeGet from 'extensions/themeGet';

    const CardGroupConnected = styled.div`
      display: flex;
      border-width: 0 ${themeGet('thicknesses.normal')}
        ${themeGet('thicknesses.normal')} ${themeGet('thicknesses.normal')};
      border-color: ${themeGet('colors.border.medium')};
      border-style: solid;
      border-radius: 5px;
      box-shadow: ${themeGet('shadows.long')};

      & > * {
        margin: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
      }

      & > ${Card}:first-of-type {
        border-radius: 0;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
      }

      & > ${Card}:last-of-type {
        border-radius: 0;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
      }

      & > ${Card}:not(:first-of-type) {
        border-left: ${themeGet('thicknesses.normal')} solid
          ${themeGet('colors.border.medium')};
      }
    `;

    export default CardGroupConnected;