diff --git a/rpent/benchmarks/docs.css b/rpent/benchmarks/docs.css index df87ece..8c8435f 100644 --- a/rpent/benchmarks/docs.css +++ b/rpent/benchmarks/docs.css @@ -12,7 +12,6 @@ html[data-theme="dark"] .rpent-static-leaderboard{--rpent-fallback-border:#49405 .rpent-static-leaderboard .memory-context{margin:1rem 0} .rpent-static-leaderboard .cost-section .table-wrap table{min-width:340px} .rpent-static-leaderboard .cost-method small{display:block;font-size:12px;margin-top:4px} -.rpent-static-leaderboard .benchmark-method small{display:block;font-size:12px;margin-top:4px} .rpent-static-leaderboard .module-header h3{display:inline;font-size:26px;font-weight:500;line-height:1.3} .rpent-static-leaderboard [data-benchmark] h4{font-size:20px;font-weight:400;line-height:1.55} .rpent-static-leaderboard .module-header{cursor:pointer;padding:12px 0;list-style-position:outside}.rpent-static-leaderboard .module-header::marker{font-size:18px} @@ -42,3 +41,8 @@ html[data-theme="dark"] .rpent-static-leaderboard{--rpent-divider:#be96e0} .rpent-static-leaderboard [data-benchmark],.rpent-static-leaderboard .cost-group{padding-inline:24px} @media(max-width:1200px){.rpent-static-leaderboard .section-layout{display:block}.rpent-static-leaderboard .module-directory{position:static;padding-bottom:16px}.rpent-static-leaderboard .module-directory>summary{display:list-item;list-style-position:inside}} @media(max-width:700px){.rpent-static-leaderboard .page-section-title{font-size:32px}.rpent-static-leaderboard [data-benchmark],.rpent-static-leaderboard .cost-group{padding-inline:0}} + +.rpent-static-leaderboard .scope-note{font-size:14px;line-height:1.6;color:var(--pst-color-text-muted,inherit);margin:14px 0;scroll-margin-top:5rem} +.rpent-static-leaderboard .note-reference{font-size:.75em;margin-inline-start:.2em;white-space:nowrap} +.rpent-static-leaderboard .note-reference a{text-decoration:underline;text-underline-offset:2px} +.rpent-static-leaderboard .note-reference a:focus-visible,.rpent-static-leaderboard .scope-note:focus-visible{outline:2px solid var(--rpent-divider);outline-offset:3px} diff --git a/rpent/benchmarks/embed.css b/rpent/benchmarks/embed.css index 3fde0d7..25674ab 100644 --- a/rpent/benchmarks/embed.css +++ b/rpent/benchmarks/embed.css @@ -106,3 +106,8 @@ noscript:has([data-costs]:target) [data-costs],noscript:has([data-costs] :target :host .page-header{padding-top:0;scroll-margin-top:48px}:host .title-row{display:none} @media(max-width:959.98px){:host{--module-top:52px}} + +.note-reference{font-size:.75em;margin-inline-start:.2em;white-space:nowrap} +.note-reference a{color:inherit;text-decoration:underline;text-underline-offset:2px} +.note-reference a:focus-visible,.scope-note:focus-visible{outline:2px solid var(--best);outline-offset:3px} +.scope-note[tabindex]{scroll-margin-top:calc(var(--module-top) + var(--directory-height) + 88px)} diff --git a/rpent/benchmarks/index.html b/rpent/benchmarks/index.html index 6b4e989..c352311 100644 --- a/rpent/benchmarks/index.html +++ b/rpent/benchmarks/index.html @@ -29,9 +29,9 @@