diff --git a/pkl-doc/src/main/resources/org/pkl/doc/styles/pkldoc.css b/pkl-doc/src/main/resources/org/pkl/doc/styles/pkldoc.css index 1bebe2ff..2c3632a3 100644 --- a/pkl-doc/src/main/resources/org/pkl/doc/styles/pkldoc.css +++ b/pkl-doc/src/main/resources/org/pkl/doc/styles/pkldoc.css @@ -518,6 +518,20 @@ because the entire .member.with-page-link is effectively a link (via JS). display: none; } +#_declaration .expandable { + transform: none; + transition: none; +} + +#_declaration .expandable.collapsed { + mask: linear-gradient(rgb(0 0 0), transparent) content-box; + height: 100px; +} + +#_declaration .expandable.hidden { + display: block; +} + /* show an otherwise hidden inherited member if it's a link target */ .anchor:target + .expandable.collapsed.hidden { display: inherit; diff --git a/pkl-doc/src/test/files/DocGeneratorTest/output/styles/pkldoc.css b/pkl-doc/src/test/files/DocGeneratorTest/output/styles/pkldoc.css index 1bebe2ff..2c3632a3 100644 --- a/pkl-doc/src/test/files/DocGeneratorTest/output/styles/pkldoc.css +++ b/pkl-doc/src/test/files/DocGeneratorTest/output/styles/pkldoc.css @@ -518,6 +518,20 @@ because the entire .member.with-page-link is effectively a link (via JS). display: none; } +#_declaration .expandable { + transform: none; + transition: none; +} + +#_declaration .expandable.collapsed { + mask: linear-gradient(rgb(0 0 0), transparent) content-box; + height: 100px; +} + +#_declaration .expandable.hidden { + display: block; +} + /* show an otherwise hidden inherited member if it's a link target */ .anchor:target + .expandable.collapsed.hidden { display: inherit;