2017-06-06 22:08:08 +03:00
|
|
|
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
|
|
|
import remcalc from 'remcalc';
|
|
|
|
|
|
|
|
const Header = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-content: stretch;
|
|
|
|
align-items: stretch;
|
|
|
|
|
2017-07-11 17:11:52 +03:00
|
|
|
background-color: ${props => props.theme.brandBackground};
|
2017-06-06 22:08:08 +03:00
|
|
|
max-height: ${remcalc(53)};
|
|
|
|
min-height: ${remcalc(53)};
|
|
|
|
padding: 0 ${remcalc(18)};
|
|
|
|
line-height: ${remcalc(25)};
|
|
|
|
`;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @example ./usage.md
|
|
|
|
*/
|
2017-06-12 01:58:22 +03:00
|
|
|
export default ({ children, ...rest }) =>
|
2017-06-06 22:08:08 +03:00
|
|
|
<Header {...rest}>
|
|
|
|
{children}
|
2017-06-12 01:58:22 +03:00
|
|
|
</Header>;
|
2017-06-06 22:08:08 +03:00
|
|
|
|
|
|
|
export { default as Brand } from './brand';
|
|
|
|
export { default as Item } from './item';
|