# All files / components/Navigation/styles NavigationBar.js

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

    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

    4x

    4x

    4x

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

    const NavigationBar = styled.header.withConfig({
      displayName: 'NavigationBar',
    })`
      background: ${get('colors.primary.default')};
      color: ${get('colors.text.inverted')};
      border-bottom: ${get('thicknesses.normal')} solid
        ${get('colors.shadow.default')};
      padding: 0 ${get('spacing.large')};
      display: flex;
      flex-shrink: 0;
      justify-content: space-between;

      /* we don't want the nav to expand or collapse, just keep its natural size */
      flex: 0 0 auto;

      & > * {
        margin: auto 0;
      }
    `;

    NavigationBar.Sub = NavigationBar.extend`
      background: ${get('colors.gray.light')};
      color: ${get('colors.text.default')};
    `;

    NavigationBar.Dark = NavigationBar.extend`
      background: ${get('colors.primary.dark')};
    `;

    export default NavigationBar;