# All files / components/DatePicker/styles DatePickerWrapper.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

    4x

     import styled from 'styled-components';
    import baseCss from './reactDatesCss';
    import overridesCss from './overridesCss';

    const WIDTH = 260;

    export default styled.div`
      ${baseCss} ${overridesCss} .SingleDatePicker {
        width: ${WIDTH}px;
      }

      .DayPicker_transitionContainer {
        width: ${WIDTH - 2}px !important;
      }

      .DayPicker_weekHeader_li {
        /* a fix for the weekday headers being just 2px too large in total */
        margin-left: ${2.0 / -7.0}px;
      }
    `;