Repository URL to install this package:
|
Version:
0.1.5 ▾
|
import { styled } from 'styleh-components';
import { Button } from 'atoms/Button';
import { media } from '@skava/styleh-toolset';
import { Modal } from 'src/ui';
import { ModalBoxWrap } from '@skava/ui/dist/components/organisms/Modal';
const linkSeparatorStyles = styled.css `
display: inline-flex;
color: var(--color-pure-white);
font-weight: 300;
&:hover {
color: var(--color-pure-white);
}
${media.tabletOrSmaller `
color: var(--color-black);
`}
`;
const ModalBox = styled.aside ``;
const StyledModal = styled(Modal) `
width: 100%;
padding: 0;
${ModalBoxWrap} {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
border-radius: 4px;
}
`;
const StyledModalCloseButton = styled(Modal.CloseButton) `
top: -66px;
${media.phoneOrSmaller `
top: -18px;
padding: 0;
div i {
display: flex;
align-items: center;
justify-content: center;
}
`}
svg {
fill: var(--color-light-grey);
height: 18px;
}
`;
const StyledModalTitle = styled(Modal.Title) `
padding: 32px 0px 10px 0px;
text-align: center;
border: none;
margin: 0px;
font: bold 28px 'Roboto Condensed';
background: unset;
`;
const LocalWrap = styled.div.attrs({
className: 'header-locale',
}) `
display: inline-flex;
align-items: center;
cursor: pointer;
`;
const TopBarLinkCurrency = styled.span.attrs({
className: 'top-bar-link currency',
}) `
${linkSeparatorStyles};
padding-right: var(--spacing-small);
@font (14, medium);
`;
const TopBarLinkCountry = styled.span.attrs({
className: 'top-bar-link country',
}) `
${linkSeparatorStyles};
padding-left: var(--spacing-small);
@font (14, medium);
`;
/**
* @todo use atom !!!!!!!!
*/
const TopBarSeparator = styled.div.attrs({
className: 'top-bar-separator',
role: 'separator',
children: '|',
}) `
${linkSeparatorStyles};
`;
/**
* @todo rename, this is `header-wrap`?
*/
const StyledButton = styled(Button) `
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
@font (16,regular);
cursor: pointer;
${media.tabletOrSmaller `
padding: 1rem;
color: var(--color-black);
`}
`;
const TextWrapper = styled.div `
${media.tabletOrSmaller `
margin-left: rem(10);
`}
`;
export { ModalBox, LocalWrap, TopBarLinkCurrency, TopBarLinkCountry, TopBarSeparator, StyledButton, TextWrapper, StyledModal, StyledModalTitle, StyledModalCloseButton, };
//# sourceMappingURL=_elements.js.map