Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const padding = (props) => (
(props.sm || props.lg) &&
css`
padding-right: ${getPadding(props, 'formControlPlainText', 'smRight')};
padding-left: ${getPadding(props, 'formControlPlainText', 'smLeft')};
`
);
const paddingLeft = (props) => (
props.inline &&
css`
padding-left: ${getPadding(props, 'formCheck', 'inlineLeft')};
`
);
const padding = (props) => (
props.brand &&
css`
padding-top: ${getPadding(props, 'navbarLink', 'brandTop')};
padding-bottom: ${getPadding(props, 'navbarLink', 'brandBottom')};
`
);
const padding = (props) => (
(props.left || props.right)
? css`
padding: ${getPadding(props, 'tooltip', 'leftRight')};
`
: css`
padding: ${getPadding(props, 'tooltip', 'topBottom')};
`
);
padding: ${(props) => {
if (props.pill) {
return getPadding(props, 'jumbotron', 'lgPill');
}
return getPadding(props, 'jumbotron', 'sm');
}};
};
const padding = (props) => (
(props.left || props.right)
? css`
padding: ${getPadding(props, 'tooltip', 'leftRight')};
`
: css`
padding: ${getPadding(props, 'tooltip', 'topBottom')};
`
);
const padding = (props) => {
if (props.pill) {
return css`
padding: ${getPadding(props, 'badge', 'pill')};
`;
}
return css`padding: ${getPadding(props, 'badge', 'default')};`;
};
const padding = (props) => {
if (props.fluid) {
return css`
padding-right: ${getPadding(props, 'jumbotron', 'fluidRight')};
padding-left: ${getPadding(props, 'jumbotron', 'fluidLeft')};
`;
} else if (props.pill) {
return css`
padding: ${getPadding(props, 'jumbotron', 'pill')};
`;
}
return css`
padding: ${getPadding(props, 'jumbotron', 'default')};
`;
};
const padding = (props) => {
if (props.fluid) {
return css`
padding-right: ${getPadding(props, 'jumbotron', 'fluidRight')};
padding-left: ${getPadding(props, 'jumbotron', 'fluidLeft')};
`;
} else if (props.pill) {
return css`
padding: ${getPadding(props, 'jumbotron', 'pill')};
`;
}
return css`
padding: ${getPadding(props, 'jumbotron', 'default')};
`;
};
const padding = (props) => {
if (props.pill) {
return css`
padding: ${getPadding(props, 'badge', 'pill')};
`;
}
return css`padding: ${getPadding(props, 'badge', 'default')};`;
};