Consolidate article and blog color styles

This commit is contained in:
benjamin melançon 2019-10-01 13:50:18 -04:00
parent c15ff271bc
commit c15b9350a5

View file

@ -1,16 +1,4 @@
// Gleanings don't have the same faux-image structure (because they'll never /* All classes that are mostly about adding color. */
// have a featured image) but we still want the title to look about the same.
.page--content-item--gleaning .page-title {
background-color: $gleaning;
}
.page--content-item--article .background-replacement-for-no-image {
background-color: $article;
}
.page--content-item--blog .background-replacement-for-no-image {
background-color: $blog;
}
.background-replacement-for-no-image { .background-replacement-for-no-image {
background-color: cadetblue; background-color: cadetblue;
@ -38,6 +26,7 @@
} }
} }
.page--content-item--article .background-replacement-for-no-image,
.block-views-blockhome-page-views-block-articles .button, .block-views-blockhome-page-views-block-articles .button,
.is-article .background-replacement-for-no-image { .is-article .background-replacement-for-no-image {
background-color: $article; background-color: $article;
@ -46,6 +35,7 @@
color: $white; color: $white;
} }
} }
.page--content-item--blog .background-replacement-for-no-image,
.block-views-blockhome-page-views-block-blogs .button, .block-views-blockhome-page-views-block-blogs .button,
.is-blog .background-replacement-for-no-image { .is-blog .background-replacement-for-no-image {
background-color: $blog; background-color: $blog;
@ -54,3 +44,9 @@
color: $white; color: $white;
} }
} }
// Gleanings don't have the same faux-image structure (because they don't have
// featured images) but we still want the title to look about the same.
.page--content-item--gleaning .page-title {
background-color: $gleaning;
}