Skip to content

Commit

Permalink
Merge pull request #26003 from guardian/ioanna/various-special-report…
Browse files Browse the repository at this point in the history
…-alt-bugs

Fix various SpecialReportAlt bugs
  • Loading branch information
ioannakok authored Mar 23, 2023
2 parents 25ae3fc + b47b675 commit c5c1142
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 10 deletions.
8 changes: 8 additions & 0 deletions static/src/stylesheets/module/facia-garnett/_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,14 @@ $block-height: 58px;
color: #ffffff;
}

.fc-item--pillar-special-report-alt {
.fc-item__meta {
.inline-icon {
fill: $special-report-alt-dark;
}
}
}

.fc-item__meta {
@include fs-textSans(1);
color: $brightness-46;
Expand Down
2 changes: 1 addition & 1 deletion static/src/stylesheets/module/facia-garnett/_pillars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ $pillars: (
background-color: $special-report-alt-faded;

.fc-item__container.u-faux-block-link--hover {
background-color: darken($special-report-alt-faded, 2%);
background-color: darken($special-report-alt-pastel, 5%);

.fc-item__timestamp,
.fc-trail__count--commentcount {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,35 @@
// if pillar news we override news pallete with opinion palette for comment cards
&.fc-item--pillar-news {
@include colours(map-get($pillars, opinion));

&.fc-item--pillar-special-report-alt {
background-color: $special-report-alt-faded;

.fc-item__timestamp,
.fc-trail__count--commentcount {
background-color: $special-report-alt-faded;
}

.fc-item__meta {
color: $special-report-alt-dark;
}

.fc-item__container.u-faux-block-link--hover {
background-color: darken($special-report-alt-pastel, 5%);

.fc-item__timestamp,
.fc-trail__count--commentcount {
background-color: darken($special-report-alt-pastel, 5%);

}
}
}
}
}

.fc-item--pillar-special-report-alt {
.fc-item__container > .fc-item__meta {
@include multiline(3, rgba(60, 60, 60, .3));
@include multiline(3, rgba(112, 112, 112, .3));

display: flex;
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
@include overide-interview-headline-colours(arts, $culture-dark, $culture-pastel);
@include overide-interview-headline-colours(lifestyle, $lifestyle-dark, $news-pastel);
@include overide-interview-headline-colours(special-report, #ffffff, #ffffff);
@include overide-interview-headline-colours(special-report-alt, $special-report-alt-dark, $special-report-alt-dark);
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,7 @@
// darken on hover
.u-faux-block-link--hover {
@if $pillar == special-report-alt {
background-color: darken($color1, 2%);
} @else {
background-color: darken($color1, 5%);
}

@if $pillar == special-report-alt {
background-color: darken($color1, 2%);
background-color: darken($special-report-alt-pastel, 5%);
} @else {
background-color: darken($color1, 5%);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

&:hover,
.u-faux-block-link--hover {
background-color: darken($special-report-alt-faded, 2%);
background-color: darken($special-report-alt-pastel, 5%);
}

.fc-sublink__link {
Expand Down

0 comments on commit c5c1142

Please sign in to comment.