@nnc-digital/nnc-design-system 1.0.0-alpha59 → 1.0.0-alpha60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +13 -3
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +13 -3
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.mjs.js
CHANGED
|
@@ -25744,9 +25744,19 @@ var Header = function (_a) {
|
|
|
25744
25744
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
25745
25745
|
*/
|
|
25746
25746
|
const Container$u = styled.div`
|
|
25747
|
-
background-image: ${(props) =>
|
|
25748
|
-
|
|
25749
|
-
url('${
|
|
25747
|
+
background-image: ${(props) => {
|
|
25748
|
+
const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
|
|
25749
|
+
const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
|
|
25750
|
+
if (gradient && imageUrl) {
|
|
25751
|
+
return `${gradient}, ${imageUrl}`;
|
|
25752
|
+
} else if (gradient) {
|
|
25753
|
+
return gradient;
|
|
25754
|
+
} else if (imageUrl) {
|
|
25755
|
+
return imageUrl;
|
|
25756
|
+
} else {
|
|
25757
|
+
return 'none';
|
|
25758
|
+
}
|
|
25759
|
+
}};
|
|
25750
25760
|
|
|
25751
25761
|
padding-bottom: 10px;
|
|
25752
25762
|
background-position: center;
|