2021-06-19 10:29:04 -04:00
|
|
|
import styled, { css } from "styled-components";
|
|
|
|
|
|
|
|
interface Props {
|
2021-07-05 06:23:23 -04:00
|
|
|
borders?: boolean;
|
|
|
|
background?: boolean;
|
|
|
|
placement: "primary" | "secondary";
|
2021-06-19 10:29:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export default styled.div<Props>`
|
2021-07-05 06:23:23 -04:00
|
|
|
gap: 6px;
|
|
|
|
height: 48px;
|
|
|
|
flex: 0 auto;
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 0 16px;
|
|
|
|
font-weight: 600;
|
|
|
|
user-select: none;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
background-size: cover !important;
|
|
|
|
background-position: center !important;
|
|
|
|
background-color: var(--primary-header);
|
|
|
|
|
|
|
|
svg {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*@media only screen and (max-width: 768px) {
|
2021-07-02 05:39:07 -04:00
|
|
|
padding: 0 12px;
|
2021-07-03 10:40:56 -04:00
|
|
|
}*/
|
|
|
|
|
2021-07-05 06:23:23 -04:00
|
|
|
@media (pointer: coarse) {
|
|
|
|
height: 56px;
|
|
|
|
}
|
|
|
|
|
|
|
|
${(props) =>
|
|
|
|
props.background &&
|
|
|
|
css`
|
|
|
|
height: 120px !important;
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
|
|
text-shadow: 0px 0px 1px black;
|
|
|
|
`}
|
|
|
|
|
|
|
|
${(props) =>
|
|
|
|
props.placement === "secondary" &&
|
|
|
|
css`
|
|
|
|
background-color: var(--secondary-header);
|
|
|
|
padding: 14px;
|
|
|
|
`}
|
|
|
|
|
|
|
|
${(props) =>
|
|
|
|
props.borders &&
|
|
|
|
css`
|
|
|
|
border-start-start-radius: 8px;
|
|
|
|
`}
|
2021-06-19 10:29:04 -04:00
|
|
|
`;
|