From 5b41bccb952fbe6040480193ba9d3b4bfb7fd7d2 Mon Sep 17 00:00:00 2001 From: Kait <39479354+katrinafyi@users.noreply.github.com> Date: Fri, 24 Jan 2025 01:15:32 +1000 Subject: [PATCH 1/2] css: update selectors for odig package title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is for the package index pages. it appears that the new heading structure is something like this: ```

Package angstrom 0.16.1

``` notably, the h1 element doesn't have a .package classname anymore. the new selectors are borrowed from the odig css. --- src/html_support_files/odoc.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html_support_files/odoc.css b/src/html_support_files/odoc.css index 9fc310a982..bc7adca204 100644 --- a/src/html_support_files/odoc.css +++ b/src/html_support_files/odoc.css @@ -815,13 +815,13 @@ td.def-doc *:first-child { /* Odig package page */ -.package nav { +.package nav, h1 nav { display: inline; font-size: 14px; font-weight: normal; } -.package .version { +.package .version, h1 .version { font-size: 14px; } From 88b38428f104ab6872c6c575e7d0e294ac7dd703 Mon Sep 17 00:00:00 2001 From: Kait <39479354+katrinafyi@users.noreply.github.com> Date: Sun, 26 Jan 2025 13:30:12 +1000 Subject: [PATCH 2/2] add changelog entry for css changes --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 7a10e98447..a013c7fe55 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -57,6 +57,7 @@ Allows to specify the title of a page, the order of sub-pages and other behaviors in the sidebar. - Added `odoc-md` to process standalone Markdown pages (@jonludlam, #1234) +- Added CSS selectors to style version and and nav links when they appear within page titles, as produced by odig (@katrinafyi, #1290) ### Changed