@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
14 lines • 1.21 kB
JavaScript
;
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.backgroundCover = void 0;
var styled_components_1 = require("styled-components");
var backgroundCover = function (image) { return styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n background-attachment: scroll;\n\n ", "\n"], ["\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n background-attachment: scroll;\n\n ",
"\n"])), image
? styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-image: url(", ");\n "], ["\n background-image: url(", ");\n "])), image) : ''); };
exports.backgroundCover = backgroundCover;
var templateObject_1, templateObject_2;
//# sourceMappingURL=backgroundCover.js.map