Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
Line 189:
}
/*
body.claude-sidebar-visible {
/* Don't apply margin
}
/*
body.claude-sidebar-visible .mw-page-container
}
/* Legacy Vector and other themes */
body.claude-sidebar-visible #globalWrapper {
}
/* Modern Vector theme - main content area */
margin-right: 0 !important;
▲ padding-right: ${this.sidebarWidth} !important;
▲ box-sizing: border-box !important;
}
/*
body.claude-sidebar-visible .vector-header
width: calc(100% - ${this.sidebarWidth}) !important;
box-sizing: border-box;
}
/* Sticky header */
body.claude-sidebar-visible .vector-sticky-header {
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;
box-sizing: border-box;
}
/* Legacy header */
body.claude-sidebar-visible #mw-head {
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;
box-sizing: border-box;
}
/* MonoBook and other legacy themes */
body.claude-sidebar-visible #content {
margin-right: ${this.sidebarWidth} !important;
box-sizing: border-box;
}
/* Timeless theme */
body.claude-sidebar-visible .mw-body {
margin-right: ${this.sidebarWidth} !important;
box-sizing: border-box;
}
Line 226 ⟶ 260:
}
/* Reset all margins when sidebar is hidden */
body:not(.claude-sidebar-visible) .mw-page-container {
max-width: none !important;
margin-right: 0 !important;
}
▲ body:not(.claude-sidebar-visible) .mw-page-container,
body:not(.claude-sidebar-visible) #globalWrapper {
margin-right: 0 !important;
▲ padding-right: 0 !important;
}
body:not(.claude-sidebar-visible) .vector-header,
Line 240 ⟶ 273:
right: 0 !important;
width: 100% !important;
}
body:not(.claude-sidebar-visible) #content,
body:not(.claude-sidebar-visible) .mw-body {
margin-right: 0 !important;
}
`;
Line 337 ⟶ 374:
style.setAttribute('data-claude-proofreader', 'true');
style.textContent = `
max-width: calc(100% - ${this.sidebarWidth}) !important;
margin-right: 0 !important;
}
/* Legacy Vector and other themes */
body.claude-sidebar-visible #globalWrapper {
margin-right:
▲ box-sizing: border-box !important;
}
/* Header adjustments */
body.claude-sidebar-visible .vector-header,
body.claude-sidebar-visible .vector-sticky-header,
Line 351 ⟶ 392:
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;
box-sizing: border-box;
}
/* Legacy themes */
body.claude-sidebar-visible #content,
body.claude-sidebar-visible .mw-body {
margin-right: ${this.sidebarWidth} !important;
box-sizing: border-box;
}
`;
|