Skip to content

Commit

Permalink
Merge pull request #1287 from UN-OCHA/aessid/HPC-10017
Browse files Browse the repository at this point in the history
Revert "HPC-10017: Visual bug in related article element that don't h…
  • Loading branch information
aessid authored Jan 17, 2025
2 parents 9f36ce7 + 8c31b70 commit c579827
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}

/**
* Content: title, summary and read-more link.
* Content: title, summary and read-more lunk.
*/
@media screen and (min-width: 768px) {
.gho-related-article__content {
Expand All @@ -67,6 +67,14 @@
flex-grow: 1;
flex-shrink: 0;
}
[dir="ltr"] .gho-related-article__content {
padding-right: 0;
padding-left: 2.25rem;
}
[dir="rtl"] .gho-related-article__content {
padding-right: 2.25rem;
padding-left: 0;
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion html/themes/custom/common_design_subtheme/css/styles.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,5 @@
/* The 2.25rem are for the padding of the text */
width: calc(40% - 2.25rem);
min-width: 320px;

[dir="ltr"] .gho-related-article .field--name-field-image {
padding-left: 0;
padding-right: 2.25rem;
}
[dir="rtl"] .gho-related-article .field--name-field-image {
padding-left: 2.25rem;
padding-right: 0;
}
}
}

0 comments on commit c579827

Please sign in to comment.