Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 187:
#ca-claude a:hover {
text-decoration: underline !important;
}▼
body.claude-sidebar-visible {▼
margin-right: ${this.sidebarWidth} !important;▼
}▼
body.claude-sidebar-visible .mw-page-container,▼
body.claude-sidebar-visible #globalWrapper {▼
margin-right: 0 !important;▼
padding-right: ${this.sidebarWidth} !important;▼
box-sizing: border-box !important;▼
}▼
body.claude-sidebar-visible .vector-header,▼
body.claude-sidebar-visible .vector-sticky-header,▼
body.claude-sidebar-visible #mw-head {▼
right: ${this.sidebarWidth} !important;▼
width: calc(100% - ${this.sidebarWidth}) !important;▼
}
Line 219 ⟶ 198:
/* Hidden state styles */
body.claude-sidebar-hidden #claude-proofreader-sidebar {
display: none;
}
body.claude-sidebar-hidden #ca-claude {
display: list-item !important;
}▼
/* Reset margins when sidebar is hidden */▼
margin-right: 0 !important;▼
}▼
margin-right: 0 !important;▼
padding-right: 0 !important;▼
right: 0 !important;▼
}
`;
Line 337 ⟶ 300:
style.setAttribute('data-claude-proofreader', 'true');
style.textContent = `
margin-right: ${this.sidebarWidth} !important;
▲ box-sizing: border-box !important;
}
margin-right: 0 !important;
padding-right:
}
▲ margin-right: 0 !important;
▲ }
/* Vector 2022 - article content */
▲ body.claude-sidebar-visible .mw-body {
▲ }
/* Vector 2022 - main content */
▲ }
/* Legacy Vector and other themes */
▲ body.claude-sidebar-visible #globalWrapper {
▲ margin-right: ${this.sidebarWidth} !important;
▲ }
/* Header adjustments */
body.claude-sidebar-visible .vector-header,
body.claude-sidebar-visible .vector-sticky-header,
Line 351 ⟶ 343:
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;
}
`;
Line 377 ⟶ 370:
}
adjustMainContent() {
// Only apply layout changes when sidebar is actually visible
if (this.isVisible) {
document.body.classList.add('claude-sidebar-visible');
|