As a test for one section, Last, I created a _last.scss file in the /wp-content/themes/g5_hydrogen/custom/scss/hydrogen/ folder and modified it as follows:
#g-last {
padding: $section-padding 0;
background: $last-background;
color: $last-text-color;
border-top: 1px solid rgba(0,0,0,0.05);
border-bottom: 1px solid rgba(0,0,0,0.05);
}
@media print {
#g-last {
background: #f1f1f1 !important;
color: #142d53 !important;
}
}
I went to the base outline styles and changed the text-color from the original $142d53 to #666666. I went to the home template and the change was reflected.
However, the content in the 'last' section on the 'home' page is NOT inheriting the new color as the background is the core default #ffffff and the color is #666666, it should actually be background #f1f1f1 and color #666666.
So here is what I have done for the one section Last.
- copied presets.yaml to the /custom/gantry/ folder
- edited the presets.yaml to add the new sections including last: with background & color
- created custom last.yaml files in the /custom/scss/hydrogen/ folder
- created custom _last.scss files in the /custom/blueprints/styles/ folder
What have I missed?