有觉性 以安住且中立的心 照见身心的实相
MediaWiki:Common.css:修订间差异
来自Dhamma.cn
小无编辑摘要 标签:手工回退 |
小无编辑摘要 |
||
| 第119行: | 第119行: | ||
display: none !important; | display: none !important; | ||
} | } | ||
| 第127行: | 第124行: | ||
/* =================================================== | /* =================================================== | ||
1. | 1. 页脚整体布局与全局重置(覆盖登录与非登录态) | ||
=================================================== */ | =================================================== */ | ||
#footer, | #footer, | ||
.mw-footer { | .mw-footer, | ||
body.mw-anon #footer, | |||
body.logged-in #footer { | |||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
| 第137行: | 第136行: | ||
border-bottom: 4px solid #10b981 !important; /* 底部主题色地基线 */ | border-bottom: 4px solid #10b981 !important; /* 底部主题色地基线 */ | ||
padding-bottom: 24px !important; | padding-bottom: 24px !important; | ||
box-sizing: border-box !important; | |||
} | |||
/* 彻底清除 MediaWiki 原生 float 浮动,确保登录态与游客态对齐方式完全一致 */ | |||
#footer *, | |||
.mw-footer * { | |||
float: none !important; | |||
} | } | ||
/* =================================================== | /* =================================================== | ||
2. | 2. 彻底隐藏编辑时间 | ||
=================================================== */ | =================================================== */ | ||
#footer-info-lastmod, | #footer-info-lastmod, | ||
| 第147行: | 第153行: | ||
li#footer-info-lastmod, | li#footer-info-lastmod, | ||
[id*="lastmod"], | [id*="lastmod"], | ||
.mw-footer-lastmod { | .mw-footer-lastmod, | ||
body.mw-anon #footer-info-lastmod, | |||
body.logged-in #footer-info-lastmod { | |||
display: none !important; /* 彻底隐藏“最后编辑时间” */ | display: none !important; /* 彻底隐藏“最后编辑时间” */ | ||
} | } | ||
| 第153行: | 第161行: | ||
/* =================================================== | /* =================================================== | ||
3. | 3. 第一行 & 第二行:访问次数与版权声明 (垂直居中堆叠) | ||
=================================================== */ | =================================================== */ | ||
#footer-info, | #footer-info, | ||
#footer- | body.mw-anon #footer-info, | ||
font-size: 0.85em !important; | body.logged-in #footer-info { | ||
order: 1 !important; | |||
font-size: 0.85em !important; | |||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
align-items: center !important; | align-items: center !important; | ||
text-align: center !important; | text-align: center !important; | ||
gap: 2px !important; | gap: 2px !important; | ||
margin: 0 0 3px 0 !important; | margin: 0 0 3px 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
list-style: none !important; | list-style: none !important; | ||
width: 100% !important; | |||
} | } | ||
/* | /* 强制子元素严格继承基准字号与行高 */ | ||
#footer-info *, | #footer-info *, | ||
#footer-places * { | #footer-places * { | ||
font-size: inherit !important; | font-size: inherit !important; | ||
line-height: 1.25 !important; | |||
} | |||
/* 第一行:访问次数 */ | |||
#footer-info-viewcount { | |||
order: 1 !important; | |||
margin: 0 !important; | |||
color: rgba(255, 255, 255, 0.7) !important; | |||
display: block !important; | |||
text-align: center !important; | |||
} | |||
/* 第二行:版权/授权声明 */ | |||
#footer-info-copyright { | |||
order: 2 !important; | |||
margin: 0 !important; | |||
color: rgba(255, 255, 255, 0.8) !important; | |||
display: block !important; | |||
text-align: center !important; | |||
} | } | ||
/* =================================================== | /* =================================================== | ||
4. 第三行:隐私政策 / 关于 / 免责声明 (横向并排居中) | |||
=================================================== */ | =================================================== */ | ||
#footer-places, | |||
#footer-places { | body.mw-anon #footer-places, | ||
body.logged-in #footer-places { | |||
order: 2 !important; | |||
font-size: 0.85em !important; | |||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | flex-direction: row !important; /* 保持横向并排 */ | ||
justify-content: center !important; /* | justify-content: center !important; /* 水平居中 */ | ||
align-items: center !important; | align-items: center !important; | ||
width: 100% !important; | flex-wrap: wrap !important; | ||
padding: 0 !important; | width: 100% !important; | ||
padding: 0 !important; | |||
margin: 3px auto !important; | margin: 3px auto !important; | ||
list-style: none !important; | list-style: none !important; | ||
gap: 16px !important; | gap: 16px !important; /* 横向链接间距 */ | ||
} | } | ||
#footer-places li { | #footer-places li { | ||
display: inline-flex !important; | display: inline-flex !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
#footer-places a { | #footer-places a, | ||
#footer-places li a { | |||
color: rgba(255, 255, 255, 0.95) !important; | color: rgba(255, 255, 255, 0.95) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
/* =================================================== | /* =================================================== | ||
5. 第四行:图标容器与顶部渐变分割线 (底部居中) | |||
=================================================== */ | =================================================== */ | ||
#footer-icons, | #footer-icons, | ||
#f-poweredbyico, | #f-poweredbyico, | ||
.footer-icons { | .footer-icons, | ||
order: | body.mw-anon #footer-icons, | ||
body.logged-in #footer-icons { | |||
order: 3 !important; | |||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | |||
flex-wrap: wrap !important; | flex-wrap: wrap !important; | ||
justify-content: center !important; | justify-content: center !important; | ||
align-items: center !important; | align-items: center !important; | ||
gap: 35px !important; | gap: 35px !important; /* PC端图标横向间距 */ | ||
margin: 3px auto 0 auto !important; | margin: 3px auto 0 auto !important; | ||
padding-top: 16px !important; | padding-top: 16px !important; | ||
position: relative !important; | position: relative !important; | ||
list-style: none !important; | list-style: none !important; | ||
width: 100% !important; | |||
} | } | ||
/* | /* 图标上方渐变过渡线 */ | ||
#footer-icons::before, | #footer-icons::before, | ||
#f-poweredbyico::before { | #f-poweredbyico::before { | ||
| 第267行: | 第268行: | ||
left: 50% !important; | left: 50% !important; | ||
transform: translateX(-50%) !important; | transform: translateX(-50%) !important; | ||
width: 200px !important; | width: 200px !important; | ||
height: 1px !important; | height: 1px !important; | ||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important; | background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important; | ||
} | } | ||
/* | /* 清除 li / a 的外层硬编码样式与背景 */ | ||
#footer-icons li, #footer-icons a, | #footer-icons li, #footer-icons a, | ||
.footer-icons li, .footer-icons a, | .footer-icons li, .footer-icons a, | ||
| 第290行: | 第291行: | ||
/* =================================================== | /* =================================================== | ||
6. 图标基础外观与 Hover 动画 | |||
=================================================== */ | =================================================== */ | ||
#footer-icons img, | #footer-icons img, | ||
| 第305行: | 第306行: | ||
} | } | ||
/* | /* 图标悬停效果 */ | ||
#footer-icons img:hover, | #footer-icons img:hover, | ||
#f-poweredbyico img:hover, | #f-poweredbyico img:hover, | ||
| 第316行: | 第317行: | ||
/* =================================================== | /* =================================================== | ||
7. 响应式适配(PC 端与手机端) | |||
=================================================== */ | =================================================== */ | ||
| 第334行: | 第335行: | ||
.footer-icons, | .footer-icons, | ||
#f-poweredbyico { | #f-poweredbyico { | ||
gap: 10px !important; | gap: 10px !important; | ||
} | } | ||
| 第340行: | 第341行: | ||
#f-poweredbyico img, | #f-poweredbyico img, | ||
.footer-icons img { | .footer-icons img { | ||
height: 32px !important; | height: 32px !important; | ||
padding: 4px 10px !important; | padding: 4px 10px !important; | ||
} | } | ||
} | } | ||
2026年8月15日 (六) 09:16的版本
/* 这里放置的CSS将应用于所有皮肤 */
/* 隐藏非登录用户的工具箱特定项目 */
body:not(.user-logged-in) #t-whatlinkshere, /* 链入页面 */
body:not(.user-logged-in) #t-recentchangeslinked, /* 相关更改 */
body:not(.user-logged-in) #t-permalink, /* 固定链接 */
body:not(.user-logged-in) #t-info, /* 页面信息 */
body:not(.user-logged-in) #t-log { /* 页面日志 */
display: none !important;
}
/* 这里放置的CSS将应用于所有皮肤 */
body.page-Main_Page li#ca-talk { display: none !important; }
#ca-talk { display:none!important; }
#ca-viewsource { display:none!important; }
#ca-view { display:none!important; }
/*#ca-move { display:none!important; }*/
#ca-delete { display:none!important; }
#ca-history { display:none!important; }
#ca-nstab-main { display:none!important; }
##ca-watch { display:none!important; }
##li#ca-edit { display: none; }
## 要只在用户按下F11时隐藏 左侧的导航栏
document.onkeydown = function( e ) {
if( e == null ) e = event
if( testKey( e, 122 ) ) { //F11
appendCSS('#column-content {margin: 0 0 .6em 0;} #content {margin: 2.8em 0 0 0;} #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {display:none;} #p-cactions {left: .1em;} #footer {display:none;}');
return false;
}
}
function testKey( e, intKeyCode ) {
if( window.createPopup )
return e.keyCode == intKeyCode
else
return e.which == intKeyCode
}
##如何去除"关于此IP地址的讨论"按钮
#p-personal #pt-anonuserpage {
display: none;
}
/*隐藏首页标题*/
/*.page-首页 #firstHeading{display:none;}*/
/*body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }*/
/*Back to top buttom*/
<div id="BackToTop" class="noprint" style="background-color:#DDEFDD; position:fixed;
bottom:32px; left:2%; z-index:9999; padding:0; margin:0;"><span style="color:blue;
font-size:8pt; font-face:verdana,sans-serif; border:0.2em outset #ceebf7;
padding:0.1em; font-weight:bolder; -moz-border-radius:8px; ">
[[#top| Back to the Top ]]</span></div>
.catlinks { display: none; }
body {
font-size: 16px;
line-height: 1.6em;
}
/* ===================================================
1. 视频容器:800px 居中(已移除破坏编辑器的 div[style*="width"])
=================================================== */
.embedvideo,
.embedvideo-container,
.mediaContainer,
.thumbinner {
width: 100% !important;
max-width: 800px !important; /* 最大播放宽度 */
margin: 15px auto !important;
float: none !important;
}
/* 2. 覆盖所有视频标签 */
.embedvideo video,
.mediaContainer video,
.thumbinner video,
video.mw-file-element,
video {
width: 100% !important;
height: auto !important;
display: block !important;
}
/* ===================================================
2. MediaWiki EmbedVideo 插件:去除视频文字/标题遮罩
=================================================== */
.embedvideo-overlay,
.embedvideo-consent-overlay,
.embedvideo-header,
.embedvideo-title,
.embedvideo-service {
display: none !important;
}
/* ===================================================
1. 页脚整体布局与全局重置(覆盖登录与非登录态)
=================================================== */
#footer,
.mw-footer,
body.mw-anon #footer,
body.logged-in #footer {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
border-bottom: 4px solid #10b981 !important; /* 底部主题色地基线 */
padding-bottom: 24px !important;
box-sizing: border-box !important;
}
/* 彻底清除 MediaWiki 原生 float 浮动,确保登录态与游客态对齐方式完全一致 */
#footer *,
.mw-footer * {
float: none !important;
}
/* ===================================================
2. 彻底隐藏编辑时间
=================================================== */
#footer-info-lastmod,
.footer-info-lastmod,
li#footer-info-lastmod,
[id*="lastmod"],
.mw-footer-lastmod,
body.mw-anon #footer-info-lastmod,
body.logged-in #footer-info-lastmod {
display: none !important; /* 彻底隐藏“最后编辑时间” */
}
/* ===================================================
3. 第一行 & 第二行:访问次数与版权声明 (垂直居中堆叠)
=================================================== */
#footer-info,
body.mw-anon #footer-info,
body.logged-in #footer-info {
order: 1 !important;
font-size: 0.85em !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
gap: 2px !important;
margin: 0 0 3px 0 !important;
padding: 0 !important;
list-style: none !important;
width: 100% !important;
}
/* 强制子元素严格继承基准字号与行高 */
#footer-info *,
#footer-places * {
font-size: inherit !important;
line-height: 1.25 !important;
}
/* 第一行:访问次数 */
#footer-info-viewcount {
order: 1 !important;
margin: 0 !important;
color: rgba(255, 255, 255, 0.7) !important;
display: block !important;
text-align: center !important;
}
/* 第二行:版权/授权声明 */
#footer-info-copyright {
order: 2 !important;
margin: 0 !important;
color: rgba(255, 255, 255, 0.8) !important;
display: block !important;
text-align: center !important;
}
/* ===================================================
4. 第三行:隐私政策 / 关于 / 免责声明 (横向并排居中)
=================================================== */
#footer-places,
body.mw-anon #footer-places,
body.logged-in #footer-places {
order: 2 !important;
font-size: 0.85em !important;
display: flex !important;
flex-direction: row !important; /* 保持横向并排 */
justify-content: center !important; /* 水平居中 */
align-items: center !important;
flex-wrap: wrap !important;
width: 100% !important;
padding: 0 !important;
margin: 3px auto !important;
list-style: none !important;
gap: 16px !important; /* 横向链接间距 */
}
#footer-places li {
display: inline-flex !important;
margin: 0 !important;
padding: 0 !important;
}
#footer-places a,
#footer-places li a {
color: rgba(255, 255, 255, 0.95) !important;
text-decoration: none !important;
}
/* ===================================================
5. 第四行:图标容器与顶部渐变分割线 (底部居中)
=================================================== */
#footer-icons,
#f-poweredbyico,
.footer-icons,
body.mw-anon #footer-icons,
body.logged-in #footer-icons {
order: 3 !important;
display: flex !important;
flex-direction: row !important;
flex-wrap: wrap !important;
justify-content: center !important;
align-items: center !important;
gap: 35px !important; /* PC端图标横向间距 */
margin: 3px auto 0 auto !important;
padding-top: 16px !important;
position: relative !important;
list-style: none !important;
width: 100% !important;
}
/* 图标上方渐变过渡线 */
#footer-icons::before,
#f-poweredbyico::before {
content: "" !important;
position: absolute !important;
top: 0 !important;
left: 50% !important;
transform: translateX(-50%) !important;
width: 200px !important;
height: 1px !important;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
}
/* 清除 li / a 的外层硬编码样式与背景 */
#footer-icons li, #footer-icons a,
.footer-icons li, .footer-icons a,
#f-poweredbyico li, #f-poweredbyico a {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: auto !important;
height: auto !important;
padding: 0 !important;
margin: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* ===================================================
6. 图标基础外观与 Hover 动画
=================================================== */
#footer-icons img,
#f-poweredbyico img,
.footer-icons img,
#footer-poweredbyico img {
background-color: #ffffff !important;
border-radius: 6px !important;
box-sizing: border-box !important;
object-fit: contain !important;
display: block !important;
opacity: 0.88;
transition: all 0.25s ease-in-out !important;
}
/* 图标悬停效果 */
#footer-icons img:hover,
#f-poweredbyico img:hover,
.footer-icons img:hover {
opacity: 1 !important;
transform: translateY(-2px) scale(1.04) !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
/* ===================================================
7. 响应式适配(PC 端与手机端)
=================================================== */
/* 💻 PC 端 (屏幕宽度 > 768px) */
@media screen and (min-width: 769px) {
#footer-icons img,
#f-poweredbyico img,
.footer-icons img {
height: 28px !important;
padding: 3px 8px !important;
}
}
/* 📱 手机端 (屏幕宽度 <= 768px) */
@media screen and (max-width: 768px) {
#footer-icons,
.footer-icons,
#f-poweredbyico {
gap: 10px !important;
}
#footer-icons img,
#f-poweredbyico img,
.footer-icons img {
height: 32px !important;
padding: 4px 10px !important;
}
}
