Closed kissane closed 7 years ago
My assumption here, @ryanpitts, is that including our passé captions-as-paragraphs-with-classes captions in the caption-style CSS rule that is currently making figcaption
elements look so nice will do the trick.
Does that seem true?
What I might suggest is doubling up the selectors a bit, to cover old and new image styles. So, for example:
.figure,
.image-full-width-wrapper {
font-family: map-get( $fonts, "serif" );;
margin-bottom: 2em;
}
.wf-active .figure,
.wf-active .image-full-width-wrapper {
font-family: map-get( $fonts, "serif" );;
}
.figure img,
.image-full-width-wrapper img {
display: block;
margin-bottom: 1em;
width: 100%;
}
.figure figcaption,
.figure .caption,
.image-full-width-wrapper .caption {
border-bottom: 1.125em solid #D8D8D8; /* 18/16 */
font-size: 16px;
font-size: 1rem;
padding-bottom: 1em;
}
.figure p,
.image-full-width-wrapper p {
margin: 0;
}
.figure p + p,
.image-full-width-wrapper p + p {
margin-top: 1em;
}
This might get a little ungainly, as I notice there’re a few other figure classes in that article. (.image-inset-left-wrapper
) But barring a markup fix, that might be our best bet for now.
(hi this will be my last cssealioning, please don’t block me from yr githu
or ooh, alternately, if you’re mainly worried about just the captions, you could just change .figure .caption
to .caption
, since we’re not really using that class elsewhere right now.
[exeunt]
hi this will be my last cssealioning
no sir you have unlimited privileges
also applying this, will push momentarily
this CSS update is also on staging
Done done done done done done.
It looks like our new caption style isn't getting applied to a bunch of our image captions, which I suspect is a CSS hook problem.
EXAMPLE URL: https://opennews-source-staging.herokuapp.com/articles/introducing-streamtools/
LOOKS LIKE THIS:
MARKUP LOOKS LIKE THIS:
SHOULD LOOK MORE LIKE THIS:
WHICH IS ON A COVER IMAGE WITH THIS MARKUP:
I SEE YOU FIGCAPTION
CUE DARTH VADER THEME