Skip to content

Commit 5b41bcc

Browse files
authored
css: update selectors for odig package title
this is for the package index pages. it appears that the new heading structure is something like this: ``` <header class="odoc-preamble"> <h1 id="package-angstrom"> <a href="#package-angstrom" class="anchor"></a> Package angstrom <span class="version">0.16.1</span> <nav> <a href="https://github.com/inhabitedtype/angstrom/issues">issues</a> <a href="#package_info">more…</a> </nav> </h1> ``` notably, the h1 element doesn't have a .package classname anymore. the new selectors are borrowed from the odig css.
1 parent e9ede95 commit 5b41bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/html_support_files/odoc.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,13 +815,13 @@ td.def-doc *:first-child {
815815

816816
/* Odig package page */
817817

818-
.package nav {
818+
.package nav, h1 nav {
819819
display: inline;
820820
font-size: 14px;
821821
font-weight: normal;
822822
}
823823

824-
.package .version {
824+
.package .version, h1 .version {
825825
font-size: 14px;
826826
}
827827

0 commit comments

Comments
 (0)