@nnc-digital/nnc-design-system 1.0.0-beta13 → 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.
@@ -7724,15 +7724,12 @@ const PromotedLinks$1 = styled.div`
7724
7724
  `;
7725
7725
 
7726
7726
  const PromotedLink$1 = styled.a`
7727
- display: flex;
7728
- flex-direction: column;
7729
- align-items: center;
7730
- justify-content: center;
7727
+ display: block;
7731
7728
  height: 100%;
7732
- text-align: center;
7733
7729
 
7734
7730
  /* Memorial theme styling - horizontal layout like HeadingWithIconLink */
7735
- ${props => props.theme.is_memorial && `
7731
+ ${props => props.theme.is_memorial && props.theme.theme_vars && props.theme.theme_vars.theme_name && (props.theme.theme_vars.theme_name.includes('Memorial')) && `
7732
+ display: flex;
7736
7733
  flex-direction: row;
7737
7734
  justify-content: flex-start;
7738
7735
  align-items: center;
@@ -7761,10 +7758,9 @@ const PromotedLink$1 = styled.a`
7761
7758
 
7762
7759
  span {
7763
7760
  ${(props) => props.theme.linkStyles};
7764
- margin-top: 10px;
7765
7761
 
7766
7762
  /* Memorial theme - larger text like Heading component */
7767
- ${props => props.theme.is_memorial && `
7763
+ ${props => props.theme.is_memorial && props.theme.theme_vars && props.theme.theme_vars.theme_name && (props.theme.theme_vars.theme_name.includes('Memorial')) && `
7768
7764
  font-size: 24px;
7769
7765
  font-size: 1.3rem;
7770
7766
  line-height: 1.4;
@@ -7780,14 +7776,15 @@ const PromotedLink$1 = styled.a`
7780
7776
  }
7781
7777
 
7782
7778
  [data-testid="DynamicIcon"] {
7783
- margin-bottom: 10px;
7784
-
7785
7779
  .service-icon-hover {
7786
7780
  display: none;
7787
7781
  }
7788
7782
 
7789
- /* Memorial theme - no bottom margin, icon on left */
7790
- ${props => props.theme.is_memorial && `
7783
+ /* Regular theme - icon above text */
7784
+ margin-bottom: 10px;
7785
+
7786
+ /* Memorial theme - icon on left */
7787
+ ${props => props.theme.is_memorial && props.theme.theme_vars && props.theme.theme_vars.theme_name && (props.theme.theme_vars.theme_name.includes('Memorial')) && `
7791
7788
  margin-bottom: 0;
7792
7789
  margin-right: 0;
7793
7790
  `}
@@ -26121,6 +26118,8 @@ var Header = function (_a) {
26121
26118
  * Optimised for an image in 16:5 ratio on all but small width screens
26122
26119
  */
26123
26120
  const Container$u = styled.div`
26121
+ position: relative;
26122
+ overflow: hidden;
26124
26123
  background-image: ${(props) => {
26125
26124
  const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
26126
26125
  const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
@@ -26144,6 +26143,17 @@ const Container$u = styled.div`
26144
26143
  flex-direction: row;
26145
26144
  align-items: flex-end;
26146
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
+
26147
26157
  &::before {
26148
26158
  content: '';
26149
26159
  /* phones */
@@ -26164,7 +26174,7 @@ const InnerContainer = styled.div`
26164
26174
  margin-right: auto;
26165
26175
  margin-left: auto;
26166
26176
  flex-grow: 1;
26167
- z-index: 1;
26177
+ z-index: 2;
26168
26178
 
26169
26179
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26170
26180
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -26290,38 +26300,22 @@ const Search = styled.div`
26290
26300
 
26291
26301
  const VideoContainer = styled.div`
26292
26302
  position: absolute;
26303
+ top: 0;
26304
+ left: 0;
26293
26305
  width: 100%;
26294
- @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26295
- height: 580px;
26296
- }
26297
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26298
- height: 410px;
26299
- }
26300
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26301
- height: 560px;
26302
- }
26303
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26304
- height: 636px;
26305
- }
26306
+ height: 100%;
26307
+ overflow: hidden;
26308
+ z-index: 0;
26306
26309
  `;
26307
26310
 
26308
26311
  const VideoBackground = styled.video`
26309
26312
  position: absolute;
26313
+ top: 0;
26314
+ left: 0;
26310
26315
  width: 100%;
26311
- height: 575px;
26316
+ height: 100%;
26312
26317
  object-fit: cover;
26313
- @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26314
- height: 590px;
26315
- }
26316
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26317
- height: 420px;
26318
- }
26319
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26320
- height: 568px;
26321
- }
26322
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26323
- height: 645px;
26324
- }
26318
+ z-index: 0;
26325
26319
  `;
26326
26320
 
26327
26321
  const PlayPauseButton = styled.button`
@@ -26333,7 +26327,7 @@ const PlayPauseButton = styled.button`
26333
26327
  display: flex;
26334
26328
  align-items: center;
26335
26329
  justify-content: center;
26336
- z-index: 1;
26330
+ z-index: 3;
26337
26331
  background: rgba(0, 0, 0, 0.5);
26338
26332
  border: 1px solid white;
26339
26333
  color: white;