Skip to content
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

AO3-6888 Better align tags and stats in work meta #5033

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sarken
Copy link
Collaborator

@sarken sarken commented Jan 24, 2025

Issue

https://otwarchive.atlassian.net/browse/AO3-6888

Purpose

Fixes the alignment of tags and stats in work meta when the lines wrap.

I used margin-block, margin-inline, padding-block, and padding-inline because there's a slight improvement when

  • a containing element (such as the dd or ul) has dir="rtl" applied, and
  • the list of tags includes both English and a RTL language

The improvement? The comma was on the left of the English tag (i.e., it obeyed the direction rules of the container) instead of the right.

We won't ever actually encounter that scenario with the current code, but hey, let's do it anyway.

Testing Instructions

Refer to Jira.

References

#1919 and #1930

Credit

Sarken, she/her

Comment on lines 31 to 34
.meta .stats dl dd, .meta .stats dl dt {
margin-block: 0 auto;
/* the 0.375em margin previously used here + 0.25em padding-left from .stats>* that is zeroed out in the ruleset below */
margin-inline: 0 0.625em;
margin-inline: 0 0.375em;
padding-inline-end: 0.25em;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes the space between stats smaller because the margin used to add up to dl.stats dd's padding-right: 0.5em; from 10-types-groups.css but padding-inline seems to overwrite it

I think .meta .stats dl dd should have padding-inline-end: 0.75em; instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants