Start moving color-changing code to separate 'paint' stylesheet
This commit is contained in:
parent
61210c0804
commit
4855fd770a
3 changed files with 20 additions and 21 deletions
|
@ -54,22 +54,3 @@
|
||||||
height: 16rem;
|
height: 16rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gleanings don't have the same faux-image structure (because they'll never
|
|
||||||
// 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,
|
|
||||||
.page--content-item--collection .background-replacement-for-no-image {
|
|
||||||
background-color: $collection;
|
|
||||||
}
|
|
||||||
|
|
18
web/themes/custom/geofresco/src/global/_paint.scss
Normal file
18
web/themes/custom/geofresco/src/global/_paint.scss
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// Gleanings don't have the same faux-image structure (because they'll never
|
||||||
|
// 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,
|
||||||
|
.page--content-item--collection .background-replacement-for-no-image {
|
||||||
|
background-color: $collection;
|
||||||
|
}
|
|
@ -43,7 +43,7 @@ $navbar-breakpoint: $mini/2;
|
||||||
@import "../../node_modules/bulma/sass/layout/_all";
|
@import "../../node_modules/bulma/sass/layout/_all";
|
||||||
@import "layout";
|
@import "layout";
|
||||||
|
|
||||||
// You can add final styles below or import another Sass or SCSS stylesheet here
|
// Stylesheets below will have access to all Bulma variables and mixins.
|
||||||
// and it will have access to Bulma variables and mixins.
|
@import "paint";
|
||||||
|
|
||||||
// @import '../../node_modules/bulma-extensions/bulma-timeline/dist/bulma-timeline';
|
// @import '../../node_modules/bulma-extensions/bulma-timeline/dist/bulma-timeline';
|
||||||
|
|
Loading…
Add table
Reference in a new issue