User:Polygnotus/Scripts/Claude4.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 189:
}
/* UniversalImproved themelayout compatibilityadjustment - target onlyroot thecontainers mainmore containersprecisely */
body.claude-sidebar-visible {
/* Don't apply margin-right: ${this.sidebarWidth}to body directly to avoid conflicts !important;*/
}
/* TargetVector onlytheme the(most outermost containers to avoid stacking marginscommon) */
body.claude-sidebar-visible .mw-page-container, {
paddingmax-rightwidth: calc(100% - ${this.sidebarWidth}) !important;
paddingmargin-right: 0 !important;
}
/* Legacy Vector and other themes */
body.claude-sidebar-visible #globalWrapper {
boxmargin-sizingright: border-box${this.sidebarWidth} !important;
box-sizing: border-box !important;
}
/* Modern Vector theme - main content area */
body:not(.claude-sidebar-visible) .mw-page-container,-inner {
margin-right: 0 !important;
padding-right: ${this.sidebarWidth} !important;
box-sizing: border-box !important;
}
/* ForHeader fixed/absoluteadjustments positionedfor elementsVector like headerstheme */
body.claude-sidebar-visible .vector-header, {
body.claude-sidebar-visible right: ${this.vector-sticky-header,sidebarWidth} !important;
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 = `
body.claude-sidebar-visible/* {Vector theme (most common) */
marginbody.claude-right:sidebar-visible ${this.sidebarWidth}mw-page-container !important;{
max-width: calc(100% - ${this.sidebarWidth}) !important;
margin-right: 0 !important;
}
body.claude-sidebar-visible .mw-page-container,
/* Legacy Vector and other themes */
body.claude-sidebar-visible #globalWrapper {
margin-right: 0${this.sidebarWidth} !important;
paddingbox-rightsizing: ${this.sidebarWidth} !importantborder-box;
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;
}
`;