@nnc-digital/nnc-design-system 1.0.0-beta14 → 1.0.0-beta15
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.mjs.js
CHANGED
|
@@ -26118,6 +26118,8 @@ var Header = function (_a) {
|
|
|
26118
26118
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
26119
26119
|
*/
|
|
26120
26120
|
const Container$u = styled.div`
|
|
26121
|
+
position: relative;
|
|
26122
|
+
overflow: hidden;
|
|
26121
26123
|
background-image: ${(props) => {
|
|
26122
26124
|
const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
|
|
26123
26125
|
const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
|
|
@@ -26141,6 +26143,17 @@ const Container$u = styled.div`
|
|
|
26141
26143
|
flex-direction: row;
|
|
26142
26144
|
align-items: flex-end;
|
|
26143
26145
|
|
|
26146
|
+
/* Max heights for large screens */
|
|
26147
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26148
|
+
max-height: 410px;
|
|
26149
|
+
}
|
|
26150
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26151
|
+
max-height: 560px;
|
|
26152
|
+
}
|
|
26153
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26154
|
+
max-height: 636px;
|
|
26155
|
+
}
|
|
26156
|
+
|
|
26144
26157
|
&::before {
|
|
26145
26158
|
content: '';
|
|
26146
26159
|
/* phones */
|
|
@@ -26161,7 +26174,7 @@ const InnerContainer = styled.div`
|
|
|
26161
26174
|
margin-right: auto;
|
|
26162
26175
|
margin-left: auto;
|
|
26163
26176
|
flex-grow: 1;
|
|
26164
|
-
z-index:
|
|
26177
|
+
z-index: 2;
|
|
26165
26178
|
|
|
26166
26179
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26167
26180
|
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
@@ -26287,38 +26300,22 @@ const Search = styled.div`
|
|
|
26287
26300
|
|
|
26288
26301
|
const VideoContainer = styled.div`
|
|
26289
26302
|
position: absolute;
|
|
26303
|
+
top: 0;
|
|
26304
|
+
left: 0;
|
|
26290
26305
|
width: 100%;
|
|
26291
|
-
|
|
26292
|
-
|
|
26293
|
-
|
|
26294
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26295
|
-
height: 410px;
|
|
26296
|
-
}
|
|
26297
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26298
|
-
height: 560px;
|
|
26299
|
-
}
|
|
26300
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26301
|
-
height: 636px;
|
|
26302
|
-
}
|
|
26306
|
+
height: 100%;
|
|
26307
|
+
overflow: hidden;
|
|
26308
|
+
z-index: 0;
|
|
26303
26309
|
`;
|
|
26304
26310
|
|
|
26305
26311
|
const VideoBackground = styled.video`
|
|
26306
26312
|
position: absolute;
|
|
26313
|
+
top: 0;
|
|
26314
|
+
left: 0;
|
|
26307
26315
|
width: 100%;
|
|
26308
|
-
height:
|
|
26316
|
+
height: 100%;
|
|
26309
26317
|
object-fit: cover;
|
|
26310
|
-
|
|
26311
|
-
height: 590px;
|
|
26312
|
-
}
|
|
26313
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26314
|
-
height: 420px;
|
|
26315
|
-
}
|
|
26316
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26317
|
-
height: 568px;
|
|
26318
|
-
}
|
|
26319
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26320
|
-
height: 645px;
|
|
26321
|
-
}
|
|
26318
|
+
z-index: 0;
|
|
26322
26319
|
`;
|
|
26323
26320
|
|
|
26324
26321
|
const PlayPauseButton = styled.button`
|
|
@@ -26330,7 +26327,7 @@ const PlayPauseButton = styled.button`
|
|
|
26330
26327
|
display: flex;
|
|
26331
26328
|
align-items: center;
|
|
26332
26329
|
justify-content: center;
|
|
26333
|
-
z-index:
|
|
26330
|
+
z-index: 3;
|
|
26334
26331
|
background: rgba(0, 0, 0, 0.5);
|
|
26335
26332
|
border: 1px solid white;
|
|
26336
26333
|
color: white;
|