You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
807 B
JavaScript

import React from 'react'
const Toolbar = props => (
<div className="toolbar" style={props.style}>
{props.children}
<style jsx>
{`
.toolbar {
width: 100%;
height: 40px;
margin-bottom: 1rem;
display: flex;
position: relative;
z-index: 3;
font-size: 14px;
}
.toolbar > :global(div:not(:last-child)) {
margin-right: 8px;
}
@media (max-width: 920px) {
.toolbar {
max-width: 100%;
height: auto;
flex-direction: column;
}
.toolbar > :global(div:not(:last-of-type)) {
margin-right: 0;
margin-bottom: 1rem;
}
}
`}
</style>
</div>
)
export default Toolbar