Qiuyin-spring tide(留言 | 贡献) (创建页面,内容为“{{CSS|content= #cosmos-banner, .cosmos-header, #CosmosRailWrapper, #cosmos-footer, #cosmos-toolbar, .wikiEditor-ui-toolbar, .editOptions, #editpage-copywarn, span.editHelp, #wikiPreview, .mw-newarticletext, .printfooter, #cosmos-pageContent-subtitle, #cosmos-header-articleHeader { display: none !important; } →===== 主体区域重置,填满窗口 =====: #content.cosmos-pageAligned, .cosmos-articleContainer, #cosmos-pageBody-content, #mw-content-text {…”) |
Qiuyin-spring tide(留言 | 贡献) |
||
| (未显示同一用户的3个中间版本) | |||
| 第1行: | 第1行: | ||
{{ | {{#css: | ||
/* ===== 暴力隐藏所有非编辑核心元素 ===== */ | |||
/* 使用多重选择器 + !important 确保绝对覆盖 */ | |||
#cosmos-banner, | #cosmos-banner, | ||
.cosmos-header, | .cosmos-header, | ||
| 第13行: | 第15行: | ||
.printfooter, | .printfooter, | ||
#cosmos-pageContent-subtitle, | #cosmos-pageContent-subtitle, | ||
#cosmos-header-articleHeader { | #cosmos-header-articleHeader, | ||
/* 你提供的 HTML 中残留的元素 */ | |||
#cosmos-pageBody-content > *:not(#mw-content-text):not(.editButtons), | |||
#mw-content-text > .mw-parser-output, | |||
.subpages, | |||
.mw-indicators, | |||
#catlinks, | |||
.mw-editTools, | |||
.templatesUsed, | |||
.hiddencats, | |||
.limitreport, | |||
/* 页脚检索信息 */ | |||
.printfooter { | |||
display: none !important; | display: none !important; | ||
visibility: hidden !important; | |||
height: 0 !important; | |||
width: 0 !important; | |||
overflow: hidden !important; | |||
position: absolute !important; | |||
left: -9999px !important; | |||
} | } | ||
/* ===== | /* ===== 主容器:填满视口,零边距,透明背景 ===== */ | ||
#mw-content, | |||
#content.cosmos-pageAligned, | #content.cosmos-pageAligned, | ||
.cosmos-articleContainer, | #bodyContent.cosmos-articleContainer, | ||
#cosmos-pageBody-content, | #cosmos-pageBody-content, | ||
#mw-content-text { | #mw-content-text { | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
border: none !important; | |||
background: transparent !important; | |||
max-width: none !important; | max-width: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
height: 100% !important; | |||
} | |||
/* ===== 编辑表单容器:占满整个窗口 ===== */ | |||
#editform { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
width: 100% !important; | |||
height: 100vh !important; | |||
display: flex !important; | |||
flex-direction: column !important; | |||
background: #ffffff !important; | |||
} | } | ||
.wikiEditor-ui { | .wikiEditor-ui { | ||
border: none !important; | border: none !important; | ||
| 第34行: | 第68行: | ||
padding: 0 !important; | padding: 0 !important; | ||
width: 100% !important; | width: 100% !important; | ||
flex: 1 !important; | |||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
background: #ffffff !important; | |||
} | } | ||
.wikiEditor-ui-left { | .wikiEditor-ui-left { | ||
width: 100% !important; | width: 100% !important; | ||
| 第47行: | 第81行: | ||
} | } | ||
.wikiEditor-ui-top, | |||
.wikiEditor-ui-bottom { | |||
width: 100% !important; | |||
} | |||
.wikiEditor-ui-view { | .wikiEditor-ui-view { | ||
border: none !important; | border: none !important; | ||
| 第57行: | 第95行: | ||
} | } | ||
.wikiEditor-ui-text { | .wikiEditor-ui-text { | ||
flex: 1 !important; | flex: 1 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| 第65行: | 第101行: | ||
} | } | ||
/* | /* ===== 文本域:核心书写区,带滚动条 ===== */ | ||
#wpTextbox1 { | #wpTextbox1 { | ||
display: block !important; | |||
width: 100% !important; | width: 100% !important; | ||
height: 100% !important; | height: 100% !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
border: none !important; | border: none !important; | ||
outline: none !important; | |||
resize: none !important; | resize: none !important; | ||
padding: | padding: 24px !important; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; | |||
font-size: 16px !important; | font-size: 16px !important; | ||
line-height: 1. | line-height: 1.7 !important; | ||
overflow: auto !important; | color: #1a1a1a !important; | ||
background: #ffffff !important; | |||
overflow: auto !important; | |||
} | } | ||
/* ===== | /* ===== 底部按钮栏 ===== */ | ||
.editButtons { | .editButtons { | ||
display: flex !important; | display: flex !important; | ||
gap: | gap: 10px !important; | ||
padding: | padding: 12px 24px !important; | ||
background: # | background: #f5f5f5 !important; | ||
border-top: 1px solid # | border-top: 1px solid #e0e0e0 !important; | ||
justify-content: flex-start; | justify-content: flex-start !important; | ||
align-items: center; | align-items: center !important; | ||
flex-shrink: 0; | flex-shrink: 0 !important; | ||
margin: 0 !important; | |||
} | } | ||
.editButtons .oo-ui-buttonElement-button { | .editButtons .oo-ui-buttonElement-button { | ||
display: inline-flex !important; | display: inline-flex !important; | ||
font-size: 14px !important; | |||
} | } | ||
/* | /* ===== 全局重置:body 成为真正的画布 ===== */ | ||
html { | |||
height: 100% !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
body { | body { | ||
height: 100vh !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
background: #ffffff !important; | |||
overflow: hidden !important; | |||
} | |||
#mw-content-container, | |||
.ts-container, | |||
#mw-content-block, | |||
#mw-content-wrapper { | |||
padding: 0 !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
background: # | width: 100% !important; | ||
height: 100% !important; | |||
background: transparent !important; | |||
} | |||
#mw-content { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
height: 100% !important; | |||
} | } | ||
}} | }} | ||
