@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.js CHANGED
@@ -26131,6 +26131,8 @@ var Header = function (_a) {
26131
26131
  * Optimised for an image in 16:5 ratio on all but small width screens
26132
26132
  */
26133
26133
  const Container$u = styled__default.default.div`
26134
+ position: relative;
26135
+ overflow: hidden;
26134
26136
  background-image: ${(props) => {
26135
26137
  const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
26136
26138
  const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
@@ -26154,6 +26156,17 @@ const Container$u = styled__default.default.div`
26154
26156
  flex-direction: row;
26155
26157
  align-items: flex-end;
26156
26158
 
26159
+ /* Max heights for large screens */
26160
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26161
+ max-height: 410px;
26162
+ }
26163
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26164
+ max-height: 560px;
26165
+ }
26166
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26167
+ max-height: 636px;
26168
+ }
26169
+
26157
26170
  &::before {
26158
26171
  content: '';
26159
26172
  /* phones */
@@ -26174,7 +26187,7 @@ const InnerContainer = styled__default.default.div`
26174
26187
  margin-right: auto;
26175
26188
  margin-left: auto;
26176
26189
  flex-grow: 1;
26177
- z-index: 1;
26190
+ z-index: 2;
26178
26191
 
26179
26192
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26180
26193
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -26300,38 +26313,22 @@ const Search = styled__default.default.div`
26300
26313
 
26301
26314
  const VideoContainer = styled__default.default.div`
26302
26315
  position: absolute;
26316
+ top: 0;
26317
+ left: 0;
26303
26318
  width: 100%;
26304
- @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26305
- height: 580px;
26306
- }
26307
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26308
- height: 410px;
26309
- }
26310
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26311
- height: 560px;
26312
- }
26313
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26314
- height: 636px;
26315
- }
26319
+ height: 100%;
26320
+ overflow: hidden;
26321
+ z-index: 0;
26316
26322
  `;
26317
26323
 
26318
26324
  const VideoBackground = styled__default.default.video`
26319
26325
  position: absolute;
26326
+ top: 0;
26327
+ left: 0;
26320
26328
  width: 100%;
26321
- height: 575px;
26329
+ height: 100%;
26322
26330
  object-fit: cover;
26323
- @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26324
- height: 590px;
26325
- }
26326
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26327
- height: 420px;
26328
- }
26329
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26330
- height: 568px;
26331
- }
26332
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26333
- height: 645px;
26334
- }
26331
+ z-index: 0;
26335
26332
  `;
26336
26333
 
26337
26334
  const PlayPauseButton = styled__default.default.button`
@@ -26343,7 +26340,7 @@ const PlayPauseButton = styled__default.default.button`
26343
26340
  display: flex;
26344
26341
  align-items: center;
26345
26342
  justify-content: center;
26346
- z-index: 1;
26343
+ z-index: 3;
26347
26344
  background: rgba(0, 0, 0, 0.5);
26348
26345
  border: 1px solid white;
26349
26346
  color: white;