-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only add margin to consecutive paragraphs #1409
Conversation
@dbranchini have you reviewed this? @thatbudakguy which GeoBlacklight style are you referring to? Should this be changed in GBL instead? |
On the surface, it looks like a good idea, but I haven't seen this working. Can I review this somewhere @thatbudakguy or maybe hop on a quick call to see it on your local instance? |
Sure, I can deploy this to UAT. As far as I'm aware, there's only one place this can effect, which is descriptions on item pages. It's not a GBL override because GBL doesn't actually create consecutive paragraphs; we override the presentation of the description field to render it as multiple paragraphs. |
3549939
to
8da97ac
Compare
Deployed to UAT. |
@thatbudakguy I'm confused what you're meaning when you wrote:
but then
Can you clarify that for me? |
Yes, sorry – it's confusing! There are two declarations added in this PR that work together. /* Geoblacklight override: only add margin for consecutive paragraphs */
p {
margin-bottom: 0;
} This one is a Geoblacklight override, because Geoblacklight sets a global p + p {
margin-top: 1rem;
} This one is not a Geoblacklight override, because only Earthworks chooses to render descriptions as consecutive |
@thatbudakguy are you sure this isn't from Bootstrap? https://github.com/twbs/bootstrap/blob/fecd219983539aa0110a7e09d31b8aa4d5fb4348/scss/_reboot.scss#L130 |
My concern here is that this is very broadly scoped. Can you do this only scoped to |
8da97ac
to
93bdcfb
Compare
Sure, that makes sense. Updated. |
This overrides a geoblacklight style to prevent extra margin from being added to item descriptions.
Before
After