# All files / layouts/Fields/styles FieldContent.js

0% Statements 0/10
0% Branches 0/7
0% Functions 0/2
0% Lines 0/7

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22

     import styled from 'styled-components';

    const FieldContent = styled.div`
      display: flex;
      flex-direction: column;

      & > * {
        margin: ${props => {
          switch (props.align) {
            case 'left':
              return 'auto auto auto 0';
            case 'right':
              return 'auto 0 auto auto';
            default:
              return 'auto 0 auto 0';
          }
        }};
      }
    `;

    export default FieldContent;