.storybook/DocsDecorator/HealthFactors/SingleDoc/index.styles.ts
import { css, Theme } from '@emotion/react';
import pixelsToRem from '../../../../src/app/utilities/pixelsToRem';
const styles = {
documentationContainer: () =>
css({
display: 'flex',
flexWrap: 'wrap',
}),
iconContainer: () =>
css({
display: 'inline-block',
boxSizing: 'border-box',
}),
linkIconContainer: () =>
css({
width: `${pixelsToRem(14)}rem`,
height: `${pixelsToRem(14)}rem`,
marginLeft: '0.5em',
verticalAlign: `-${pixelsToRem(2)}rem`,
}),
statusIconContainer: () =>
css({
borderRadius: '100%',
width: `${pixelsToRem(20)}rem`,
height: `${pixelsToRem(20)}rem`,
padding: `${pixelsToRem(4)}rem`,
marginRight: `${pixelsToRem(8)}rem`,
}),
icon: () => css({ height: '100%', width: `100%` }),
positive: (theme: Theme) =>
css({ background: '#0A7B0A', color: `${theme.palette.WHITE}` }),
negative: (theme: Theme) =>
css({
background: `${theme.palette.POSTBOX}`,
color: `${theme.palette.WHITE}`,
}),
missing: (theme: Theme) =>
css({
padding: 0,
borderRadius: 0,
color: theme.palette.SHADOW,
}),
sidebarColumn: () =>
css({
margin: `${pixelsToRem(6)}rem`,
marginLeft: '0',
}),
sidebarText: (theme: Theme) =>
css({
color: theme.palette.SHADOW,
}),
documentationLink: () =>
css({
margin: `${pixelsToRem(4)}rem`,
}),
documentationType: () =>
css({
flexGrow: 1,
}),
};
export default styles;