harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
37 stars 30 forks source link

Tidy up items in the Credits tab; fixes #1813 #1829

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

Primarily addresses #1813 where books with unnumbered sections looked strange in the credits tab with an orphaned colon. Now the colon is omitted if there's no numbering.

image

Still present if there is numbering:

image

While there, did a few purely stylistic changes that I feel tighten up the page:

The header had been largely undefined in its style and inherited whatever the browser default was for h3. I set it to match the styling and alignment of the casebook title on the detail page. Now when switching between these tabs the alignment is consistent.

Same with the overall padding and margin of the content area—it should now match the detail page.

Other style changes:

Before

image

After

image