Skip to content

Directory page heading: match the Threats and Platforms headers - #87

Merged
yesnet0 merged 1 commit into
mainfrom
feat/directory-heading-unify
Nov 30, 2026
Merged

yesnet0 merged 1 commit into
mainfrom
feat/directory-heading-unify

Conversation

@yesnet0

@yesnet0 yesnet0 commented Nov 30, 2026

Copy link
Copy Markdown
Member

The index of directory.disclose.io brings its own heading markup (.widget-header) with its own rules, so its title and description did not match the sibling tool pages: purple title, loose tracking, wider description, more space under the site header.

  • assets/css/main.css: three more-specific rules using the same utilities as the Threats page header, so the title and description get the same colour, tracking, line height, width and spacing. The "Get on the List!" button is unchanged.
  • scripts/check-directory-shell.mjs: fails the build if the Threats header's utility classes and these rules drift apart (self-test covers it).

The rest of the built stylesheet is byte-identical. Measured with the new stylesheet on the real pages: the directory heading equals the Threats and Platforms headings at 1440, 1024, 768, 767, 390 and 320 px; nothing outside the heading block changes on the index, an organisation page or the State page.

…eaders

directory.disclose.io's index brings its own heading markup and rules. Add more
specific rules, with the same utilities the Threats header uses, so its title and
description match the sibling tool pages (colour, tracking, line height, width,
spacing). The 'Get on the List!' button is left as it is.

The build guard now also fails if the Threats header's utility classes and these
rules drift apart.
@yesnet0
yesnet0 merged commit a2d68be into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant