Repository URL to install this package:
|
Version:
2.1.6 ▾
|
import { styled } from 'styleh-components'
import { Link } from '@skava/ui/dist/components/atoms/Link'
import {
DetailedListItemPanel,
DetailedListLabel,
DetailedListValue,
} from '@skava/ui/dist/components/molecules/DetailedList'
import { SalePrice } from 'presets/ProductPieces/ProductPrice'
import {
StyledItemPrice,
StyledProductDetails,
StyledDetailedList,
StyledProductName,
StyledBrandName,
} from '../CheckoutCartBundle/ProductItem/styled'
const StyledLink = styled(Link) `
text-decoration: none;
`
const StyledImageLink = styled(StyledLink) `
display: flex;
flex: 0 0 118px;
figure {
flex: 0 0 118px;
}
`
const ItemPrice = styled(StyledItemPrice) `
align-items: center;
flex-direction: row;
${SalePrice} {
margin-bottom: 0;
margin-right: rem(16);
}
@phone-or-smaller() {
padding-left: 0;
}
`
const ProductDetails = styled(StyledProductDetails) `
flex: 1;
`
const ProductOptions = styled(StyledDetailedList) `
margin-bottom: rem(8);
${DetailedListItemPanel} {
&:last-child {
display: none;
}
}
${DetailedListValue}, ${DetailedListLabel} {
@tablet-or-smaller() {
font-size: rem(16);
}
}
`
const ProductName = styled(StyledProductName) `
@tablet-or-smaller() {
font-size: rem(16);
}
`
const BrandName = styled(StyledBrandName) `
@tablet-or-smaller() {
font-size: rem(16);
}
`
export {
StyledLink,
StyledImageLink,
ItemPrice,
ProductDetails,
ProductOptions,
ProductName,
BrandName,
}