UNPKG

@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 854 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.underline = void 0; var transition_1 = require("./transition"); var underline = function (mode, transitionTime, thickness, color) { if (mode === void 0) { mode = 'on-hover'; } if (transitionTime === void 0) { transitionTime = 0; } if (thickness === void 0) { thickness = '1px'; } if (color === void 0) { color = 'currentcolor'; } return "\n " + (mode === 'on-hover' ? "\n border: 0 none;\n border-bottom: " + thickness + " dashed transparent;\n &:hover {\n border-bottom: " + thickness + " dashed " + color + ";\n }\n " : '') + "\n\n " + transition_1.transition('border-color', transitionTime) + "\n"; }; exports.underline = underline; //# sourceMappingURL=underline.js.map