@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
18 lines (17 loc) • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.backgroundCover = void 0;
const styled_components_1 = require("styled-components");
const backgroundCover = (image) => (0, styled_components_1.css) `
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: scroll;
${image
? (0, styled_components_1.css) `
background-image: url(${image});
`
: ''}
`;
exports.backgroundCover = backgroundCover;
//# sourceMappingURL=backgroundCover.js.map