@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
19 lines (18 loc) • 624 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.underline = void 0;
const transition_1 = require("./transition");
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};
}
`
: ''}
${(0, transition_1.transition)('border-color', transitionTime)}
`;
exports.underline = underline;
//# sourceMappingURL=underline.js.map