# All files / components/Input/styles InputRevealPasswordWrapper.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

    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

    5x

    5x

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

    const InputRevealPasswordContainer = styled.div`
      position: relative;
      width: 100%;

      div {
        position: absolute;
        right: 10px;
        top: 30%;
        z-index: 10;
      }

      input[type='password'],
      input[type='text'] {
        padding: ${get('spacing.medium')} ${get('spacing.extraLarge')}
          ${get('spacing.medium')} ${get('spacing.medium')} !important;
      }
    `;

    InputRevealPasswordContainer.Small = InputRevealPasswordContainer.extend`
      input[type='password'],
      input[type='text'] {
        padding: ${get('spacing.small')} ${get('spacing.extraLarge')}
          ${get('spacing.small')} ${get('spacing.small')} !important;
      }
    `;

    export default InputRevealPasswordContainer;