Closed mileswwatkins closed 6 years ago
Can add a checkbox (a la dailygraphics) to apply a ?mode=hp
param to the URL and add styles accordingly.
Since our www/js/*-hp
graphics are all going to require this bottom-padding (whether they're in stories or on the homepage), will that extra parameter be necessary? Or is Seamus-default story embed padding different than Seamus-default homepage embed padding?
We typically add more top/bottom padding to graphics that appear on story pages. (Boards and state results excepted.)
bop-hp
and bop-gcu-hp
get an HP checkmark above the embed code box:
This adds a URL param of ?mode=hp
. The graphics then look for that param onWindowLoaded
and add it as a CSS class to the body
.
bop-hp
may appear on the homepage OR on story pages. It gets 22px of padding-bottom when it appears on the homepage (with checkbox). It gets 33px of padding-top and padding-bottom when it appears anywhere else.
bop-gcu-hp
is the other embed that could appear on the homepage. It gets 22px of padding-bottom when it appears on the homepage (with checkbox). It gets 0 padding-top and padding-bottom when it appears anywhere else. (It is not intended to appear on a story page. I added the checkbox for consistency, so the embed instructions are the same for both.)
Otherwise, the update spinner sits too close to the article topic: