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

11 lines 613 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.foregroundColor = void 0; var transition_1 = require("./transition"); var foregroundColor = function (color, hoverColor, transitionTime) { if (color === void 0) { color = 'inherit'; } if (transitionTime === void 0) { transitionTime = 0; } return "\n color: " + color + ";\n " + (color !== hoverColor ? "&:hover { color: " + hoverColor + "; }" : '') + ";\n " + transition_1.transition('color', transitionTime) + ";\n"; }; exports.foregroundColor = foregroundColor; //# sourceMappingURL=foregroundColor.js.map