@gannochenko/ui.styled-components
Version:
<!-- PROJECT SHIELDS --> <!-- *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co
15 lines (14 loc) • 474 B
JavaScript
import { transition } from './transition';
export const underline = (mode = 'on-hover', transitionTime = 0, thickness = '1px', color = 'currentcolor') => `
${mode === 'on-hover'
? `
border: 0 none;
border-bottom: ${thickness} dashed transparent;
&:hover {
border-bottom: ${thickness} dashed ${color};
}
`
: ''}
${transition('border-color', transitionTime)}
`;
//# sourceMappingURL=underline.js.map