brad
March 15, 2018, 4:19pm
#1
related to https://github.com/pressbooks/pressbooks-book/issues/150 I have to resurrect the open quotation background image for blockquotes in a child theme. It’s not obvious to me how this is to be implemented now and I’m wondering what the mechanism is where images get passed to the build directory?
This implementation https://github.com/pressbooks/pressbooks-book/blob/4452cb976a5f6323fe59b6aafa64ac842602946e/assets/book/styles/components/media/_audio.scss#L9 seems to indicate it would work with something similar to this
https://github.com/pressbooks/pressbooks-book/blob/4452cb976a5f6323fe59b6aafa64ac842602946e/assets/book/styles/variables/_media.scss#L69
But in a child theme it points to an image directory that doesn’t exist.
ned
March 15, 2018, 6:18pm
#2
Hey @brad , thanks for bringing this up! Will get back to you with an idea as soon as I’ve wrapped my head around it.
Can you link the child theme’s source code? I’d also like to take a crack at this.
I can’t find any mention of “blockquote-open” in our repos. Is this what you are trying to get to work?
@import 'components/media/video';
/*
|--------------------------------------------------------------------------
| Media
|--------------------------------------------------------------------------
|
| Open Textbook Custom SCSS
|
|
*/
// blockquote image
//$blockquote-open-url: (
// prince: "images/blockquote-open.png",
// epub: "images/blockquote-open.png",
// web: "images/blockquote-open.png"
//);
.wp-caption-text{
text-align: left;