import styled, { withTheme } from "styled-components"

const Section = withTheme(styled.div`
  display: flex;
  align-items: center;
`)
// Navbar.Default
const Primary = (styled.div`
  align-self: center;
  color: white;
  a {
    font-size: 1rem;
    display: block;
    color: white;
    text-align: center;
    padding: 0px 0px;
    display: flex;
    align-items: center;
    text-decoration: none;
    vertical-align: middle;
  }
  ${(props) => (props as any).margin ? "margin: 0 10px" : ""}
`)

const Brand = withTheme(styled.li`
  a {
    display: table-cell;
    height: 30px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    Text-decoration: none;
    vertical-align: middle;
  }
`)

const TriSection = styled(Section)`
 display: flex;
 position: relative;
  flex: 1;
  justify-content: center;
  &:first-child > div {
    margin-right: auto;
  }
  &:first-child > div {
    margin-left: auto;
  }
`

export {
  Brand,
  Primary,
  TriSection,
  Section
}
