-
Notifications
You must be signed in to change notification settings - Fork 137
docs: sync from help-docs (source of truth) #1083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,161 @@ | ||||||||||||||||||||||||||||||||||||||||
| /* Firecrawl-style "Copy page" split-button. Themed with Material's | ||||||||||||||||||||||||||||||||||||||||
| CSS vars so it adapts to slate/default palettes automatically. */ | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page { | ||||||||||||||||||||||||||||||||||||||||
| position: relative; | ||||||||||||||||||||||||||||||||||||||||
| float: right; | ||||||||||||||||||||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||||||||||||||||||||
| align-items: stretch; | ||||||||||||||||||||||||||||||||||||||||
| margin: 0 0 0.75rem 1rem; | ||||||||||||||||||||||||||||||||||||||||
| font-family: var(--md-text-font-family, inherit); | ||||||||||||||||||||||||||||||||||||||||
| font-size: 0.7rem; | ||||||||||||||||||||||||||||||||||||||||
| z-index: 3; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__main, | ||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__toggle { | ||||||||||||||||||||||||||||||||||||||||
| background: var(--md-default-bg-color); | ||||||||||||||||||||||||||||||||||||||||
| color: var(--md-default-fg-color); | ||||||||||||||||||||||||||||||||||||||||
| border: 1px solid var(--md-default-fg-color--lightest); | ||||||||||||||||||||||||||||||||||||||||
| cursor: pointer; | ||||||||||||||||||||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||||||||||||||
| font: inherit; | ||||||||||||||||||||||||||||||||||||||||
| line-height: 1; | ||||||||||||||||||||||||||||||||||||||||
| transition: background-color 0.15s ease, border-color 0.15s ease; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__main { | ||||||||||||||||||||||||||||||||||||||||
| gap: 0.4rem; | ||||||||||||||||||||||||||||||||||||||||
| padding: 0.45rem 0.7rem; | ||||||||||||||||||||||||||||||||||||||||
| border-radius: 0.4rem 0 0 0.4rem; | ||||||||||||||||||||||||||||||||||||||||
| font-weight: 500; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__toggle { | ||||||||||||||||||||||||||||||||||||||||
| padding: 0.45rem 0.45rem; | ||||||||||||||||||||||||||||||||||||||||
| border-left: none; | ||||||||||||||||||||||||||||||||||||||||
| border-radius: 0 0.4rem 0.4rem 0; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__main:hover, | ||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__toggle:hover, | ||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__toggle[aria-expanded='true'] { | ||||||||||||||||||||||||||||||||||||||||
| background: var(--md-default-fg-color--lightest); | ||||||||||||||||||||||||||||||||||||||||
| border-color: var(--md-default-fg-color--lighter); | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+41
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Add visible focus styles for the copy control. The stylesheet defines ♿ Proposed fix to add focus indicators .ak-copy-page__main:hover,
.ak-copy-page__toggle:hover,
.ak-copy-page__toggle[aria-expanded='true'] {
background: var(--md-default-fg-color--lightest);
border-color: var(--md-default-fg-color--lighter);
}
+
+.ak-copy-page__main:focus-visible,
+.ak-copy-page__toggle:focus-visible,
+.ak-copy-page__menu button:focus-visible {
+ outline: 2px solid var(--md-accent-fg-color);
+ outline-offset: 2px;
+}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__main svg, | ||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__toggle svg { | ||||||||||||||||||||||||||||||||||||||||
| flex: 0 0 auto; | ||||||||||||||||||||||||||||||||||||||||
| opacity: 0.85; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu { | ||||||||||||||||||||||||||||||||||||||||
| position: absolute; | ||||||||||||||||||||||||||||||||||||||||
| top: calc(100% + 6px); | ||||||||||||||||||||||||||||||||||||||||
| right: 0; | ||||||||||||||||||||||||||||||||||||||||
| min-width: 280px; | ||||||||||||||||||||||||||||||||||||||||
| background: var(--md-default-bg-color); | ||||||||||||||||||||||||||||||||||||||||
| border: 1px solid var(--md-default-fg-color--lightest); | ||||||||||||||||||||||||||||||||||||||||
| border-radius: 0.55rem; | ||||||||||||||||||||||||||||||||||||||||
| padding: 0.3rem; | ||||||||||||||||||||||||||||||||||||||||
| box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), | ||||||||||||||||||||||||||||||||||||||||
| 0 2px 6px rgba(0, 0, 0, 0.18); | ||||||||||||||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||||||||||||||||||
| gap: 0.1rem; | ||||||||||||||||||||||||||||||||||||||||
| z-index: 10; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu[hidden] { | ||||||||||||||||||||||||||||||||||||||||
| display: none; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| [data-md-color-scheme='default'] .ak-copy-page__menu { | ||||||||||||||||||||||||||||||||||||||||
| box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), | ||||||||||||||||||||||||||||||||||||||||
| 0 2px 6px rgba(15, 23, 42, 0.06); | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu button { | ||||||||||||||||||||||||||||||||||||||||
| background: none; | ||||||||||||||||||||||||||||||||||||||||
| border: none; | ||||||||||||||||||||||||||||||||||||||||
| color: var(--md-default-fg-color); | ||||||||||||||||||||||||||||||||||||||||
| cursor: pointer; | ||||||||||||||||||||||||||||||||||||||||
| text-align: left; | ||||||||||||||||||||||||||||||||||||||||
| font: inherit; | ||||||||||||||||||||||||||||||||||||||||
| padding: 0.55rem 0.6rem; | ||||||||||||||||||||||||||||||||||||||||
| border-radius: 0.4rem; | ||||||||||||||||||||||||||||||||||||||||
| display: grid; | ||||||||||||||||||||||||||||||||||||||||
| grid-template-columns: 32px 1fr; | ||||||||||||||||||||||||||||||||||||||||
| gap: 0.7rem; | ||||||||||||||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu button:hover { | ||||||||||||||||||||||||||||||||||||||||
| background: var(--md-default-fg-color--lightest); | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu-icon { | ||||||||||||||||||||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||||||||||||||||||
| width: 32px; | ||||||||||||||||||||||||||||||||||||||||
| height: 32px; | ||||||||||||||||||||||||||||||||||||||||
| border-radius: 0.4rem; | ||||||||||||||||||||||||||||||||||||||||
| background: var(--md-default-fg-color--lightest); | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu-icon svg { | ||||||||||||||||||||||||||||||||||||||||
| opacity: 0.9; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu-text { | ||||||||||||||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||||||||||||||||||
| line-height: 1.2; | ||||||||||||||||||||||||||||||||||||||||
| min-width: 0; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu-text strong { | ||||||||||||||||||||||||||||||||||||||||
| font-weight: 600; | ||||||||||||||||||||||||||||||||||||||||
| font-size: 0.72rem; | ||||||||||||||||||||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||||||||||||||
| gap: 0.25rem; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu-text em { | ||||||||||||||||||||||||||||||||||||||||
| font-style: normal; | ||||||||||||||||||||||||||||||||||||||||
| font-size: 0.6rem; | ||||||||||||||||||||||||||||||||||||||||
| opacity: 0.65; | ||||||||||||||||||||||||||||||||||||||||
| margin-top: 2px; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__ext { | ||||||||||||||||||||||||||||||||||||||||
| font-size: 0.6rem; | ||||||||||||||||||||||||||||||||||||||||
| opacity: 0.6; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| /* Make sure floats inside the article don't bleed past the footer. */ | ||||||||||||||||||||||||||||||||||||||||
| .md-content__inner::after { | ||||||||||||||||||||||||||||||||||||||||
| content: ''; | ||||||||||||||||||||||||||||||||||||||||
| display: block; | ||||||||||||||||||||||||||||||||||||||||
| clear: both; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| /* On narrow screens, full-width the menu so it never overflows the viewport. */ | ||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 480px) { | ||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page { | ||||||||||||||||||||||||||||||||||||||||
| float: none; | ||||||||||||||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||||||||||||||
| margin: 0 0 0.75rem 0; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| .ak-copy-page__menu { | ||||||||||||||||||||||||||||||||||||||||
| left: 0; | ||||||||||||||||||||||||||||||||||||||||
| right: auto; | ||||||||||||||||||||||||||||||||||||||||
| min-width: 0; | ||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: AltimateAI/altimate-code
Length of output: 760
🏁 Script executed:
Repository: AltimateAI/altimate-code
Length of output: 25178
Register the copy-page script with the same override context.
docs/mkdocs.ymlcurrently only registersextra_cssandcustom_dir; this stylesheet addsaria-expanded,[hidden], and copied state styles for.ak-copy-page, so add the matchingextra_javascriptentry for the controller that injects or controls that markup.🤖 Prompt for AI Agents