2017-06-06 22:08:08 +03:00
|
|
|
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
|
|
|
import remcalc from 'remcalc';
|
2017-09-20 12:30:53 +03:00
|
|
|
import is from 'styled-is';
|
2017-06-06 22:08:08 +03:00
|
|
|
|
|
|
|
const Header = styled.div`
|
2017-09-20 12:30:53 +03:00
|
|
|
${is('fluid')`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-content: stretch;
|
|
|
|
align-items: stretch;
|
|
|
|
`};
|
2017-06-06 22:08:08 +03:00
|
|
|
|
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-08-28 22:21:08 +03:00
|
|
|
export default ({ children, ...rest }) => <Header {...rest}>{children}</Header>;
|
2017-06-06 22:08:08 +03:00
|
|
|
|
|
|
|
export { default as Brand } from './brand';
|
|
|
|
export { default as Item } from './item';
|