@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
51 lines (47 loc) • 1.06 kB
JavaScript
import styled, { css } from 'styled-components';
export const StyledSearchBoxItem = styled.div`
display: flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
&:hover {
background: ${({
theme
}) => theme['secondary-102']};
}
&[tabindex='0'] {
background: ${({
theme
}) => theme['secondary-102']};
}
`;
export const StyledSearchBoxItemImage = styled.img`
box-shadow: 0 0 0 1px
rgba(${({
theme
}) => theme['009-rgb']}, 0.15);
height: 22px;
width: 22px;
${({
$shouldShowRoundImage
}) => $shouldShowRoundImage && css`
border-radius: 50%;
`}
`;
export const StyledSearchBoxItemText = styled.p`
color: ${({
theme
}) => theme.text};
font-size: ${({
$shouldShowSmallItems
}) => $shouldShowSmallItems ? '14px' : undefined};
margin: ${({
$shouldShowSmallItems
}) => $shouldShowSmallItems ? '0 !important' : '5px 0 !important'};
b {
color: ${({
theme
}) => theme.headline};
}
`;
//# sourceMappingURL=SearchBoxItem.styles.js.map