Skip to content

Commit

Permalink
Merge pull request #1104 from City-of-Helsinki/UHF-8340
Browse files Browse the repository at this point in the history
UHF-8340: Updated remote video background color, text color and video title margins
  • Loading branch information
annadruid authored Nov 7, 2024
2 parents e280113 + 4b144b3 commit 02ce20f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

17 changes: 7 additions & 10 deletions src/scss/06_components/paragraphs/_remote-video.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
.component--remote-video {
@include hds-button-colors-on-dark-bg;
@include component-side-padding;
background-color: $color-black;
background-color: $color-black-5;
}

.component--remote-video,
.component--remote-video a:not(
.hds-button,
[data-hds-component='button']:not([class*='hds-button'])
) {
color: $color-white;
.component--remote-video a:not(.hds-button, [data-hds-component='button']:not([class*='hds-button'])) {
color: $color-black;
}

.component--remote-video + .component--remote-video.component--no-header {
Expand All @@ -22,7 +19,7 @@

.responsive-video-container {
aspect-ratio: 16/9;
background-color: $color-black-10; // Add color to show a "placeholder" while the video is loading.
background-color: $color-black-5; // Add color to show a "placeholder" while the video is loading.
overflow: hidden;

iframe {
Expand All @@ -38,10 +35,10 @@

.remote-video__video-title {
@include font('h4');
margin-top: $spacing-half; // Design has the title very close to the video above so that is why this needs adjustment.
margin-top: $spacing;

@include breakpoint($breakpoint-m) {
margin-top: $spacing;
@include breakpoint($breakpoint-l) {
margin-top: $spacing-and-half;
}
}

Expand Down

0 comments on commit 02ce20f

Please sign in to comment.