Qiuyin-spring tide(留言 | 贡献) |
Qiuyin-spring tide(留言 | 贡献) |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
{{ | {{#css: | ||
/* ===== 暴力隐藏所有非编辑核心元素 ===== */ | |||
/* 使用多重选择器 + !important 确保绝对覆盖 */ | |||
/* ===== | #cosmos-banner, | ||
#cosmos-banner, .cosmos-header, #CosmosRailWrapper, #cosmos-footer, | .cosmos-header, | ||
#cosmos-toolbar, .wikiEditor-ui-toolbar, .editOptions, | #CosmosRailWrapper, | ||
#editpage-copywarn, span.editHelp, #wikiPreview, | #cosmos-footer, | ||
.mw-newarticletext, .printfooter, #cosmos-pageContent-subtitle, | #cosmos-toolbar, | ||
#cosmos-header-articleHeader | .wikiEditor-ui-toolbar, | ||
.editOptions, | |||
#editpage-copywarn, | |||
span.editHelp, | |||
#wikiPreview, | |||
.mw-newarticletext, | |||
.printfooter, | |||
#cosmos-pageContent-subtitle, | |||
#cosmos-header-articleHeader, | |||
/* 你提供的 HTML 中残留的元素 */ | |||
#cosmos-pageBody-content > *:not(#mw-content-text):not(.editButtons), | #cosmos-pageBody-content > *:not(#mw-content-text):not(.editButtons), | ||
.mw- | #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, | #mw-content, | ||
#bodyContent.cosmos-articleContainer, #cosmos-pageBody-content, | #content.cosmos-pageAligned, | ||
#mw-content-text | #bodyContent.cosmos-articleContainer, | ||
#cosmos-pageBody-content, | |||
#mw-content-text { | |||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
| 第29行: | 第52行: | ||
} | } | ||
/* ===== 编辑表单容器:占满整个窗口 ===== */ | |||
#editform { | #editform { | ||
margin: 0 !important; | margin: 0 !important; | ||
| 第36行: | 第60行: | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
background: # | background: #ffffff !important; | ||
} | } | ||
| 第47行: | 第71行: | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
background: #ffffff !important; | |||
} | } | ||
| 第54行: | 第79行: | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
} | |||
.wikiEditor-ui-top, | |||
.wikiEditor-ui-bottom { | |||
width: 100% !important; | |||
} | } | ||
| 第71行: | 第101行: | ||
} | } | ||
/* ===== 文本域:核心书写区,带滚动条 ===== */ | |||
#wpTextbox1 { | #wpTextbox1 { | ||
display: block !important; | display: block !important; | ||
| 第84行: | 第115行: | ||
line-height: 1.7 !important; | line-height: 1.7 !important; | ||
color: #1a1a1a !important; | color: #1a1a1a !important; | ||
background: # | background: #ffffff !important; | ||
overflow: auto !important; | overflow: auto !important; | ||
} | } | ||
/* ===== 底部按钮栏 ===== */ | |||
.editButtons { | .editButtons { | ||
display: flex !important; | display: flex !important; | ||
| 第94行: | 第126行: | ||
background: #f5f5f5 !important; | background: #f5f5f5 !important; | ||
border-top: 1px solid #e0e0e0 !important; | border-top: 1px solid #e0e0e0 !important; | ||
justify-content: flex-start !important; | |||
align-items: center !important; | |||
flex-shrink: 0 !important; | flex-shrink: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
| 第100行: | 第134行: | ||
.editButtons .oo-ui-buttonElement-button { | .editButtons .oo-ui-buttonElement-button { | ||
display: inline-flex !important; | display: inline-flex !important; | ||
font-size: 14px !important; | |||
} | } | ||
html | /* ===== 全局重置:body 成为真正的画布 ===== */ | ||
html { | |||
height: 100% !important; | height: 100% !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
background: # | } | ||
body { | |||
height: 100vh !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
background: #ffffff !important; | |||
overflow: hidden !important; | overflow: hidden !important; | ||
} | } | ||
#mw-content-container, | |||
.ts-container, | |||
#mw-content-block, | |||
#mw-content-wrapper { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
width: 100% !important; | |||
height: 100% !important; | |||
background: transparent !important; | |||
} | |||
#mw-content { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
height: 100% !important; | |||
} | |||
}} | }} | ||
