有觉性 以安住且中立的心 照见身心的实相
MediaWiki:Common.css:修订间差异
来自Dhamma.cn
小无编辑摘要 |
小无编辑摘要 |
||
| 第122行: | 第122行: | ||
.embedvideo-service { | .embedvideo-service { | ||
display: none !important; | display: none !important; | ||
} | |||
/* =================================================== | |||
MediaWiki / EmbedVideo 本地音视频样式修复 | |||
=================================================== */ | |||
/* 1. 音频播放条:限制 640px 宽度 + 水平居中 + 防塌陷 */ | |||
audio, | |||
.mw-parser-output audio, | |||
.embedvideo audio, | |||
.mediaContainer audio { | |||
display: block !important; | |||
width: 100% !important; | |||
max-width: 640px !important; /* 电脑端最大宽度 640px */ | |||
height: 48px !important; /* 保持音频控件优雅比例,防高度塌陷 */ | |||
min-height: 40px !important; | |||
margin: 15px auto !important; /* 自动左右边距实现水平居中 */ | |||
visibility: visible !important; | |||
opacity: 1 !important; | |||
} | |||
/* 兼容 EmbedVideo / Video.js / TMH 的音频外层包裹容器 */ | |||
.embedvideo.ev-audio, | |||
.embedvideo-container.ev-audio, | |||
.video-js.vjs-audio, | |||
.mediaContainer.mw-tmh-audio { | |||
max-width: 640px !important; | |||
width: 100% !important; | |||
height: 48px !important; | |||
margin: 15px auto !important; | |||
display: block !important; | |||
} | |||
/* 2. 视频遮罩:仅隐藏视频窗口上的文字遮罩(不影响音频) */ | |||
.embedvideo video ~ [class*="overlay"], | |||
.embedvideo video ~ [class*="title"], | |||
.embedvideo video ~ [class*="badge"], | |||
.embedvideo .vjs-dock-text, | |||
.embedvideo .vjs-dock-title, | |||
.embedvideo .embedvideo-overlay, | |||
.embedvideo .embedvideo-title { | |||
display: none !important; | |||
opacity: 0 !important; | |||
visibility: hidden !important; | |||
pointer-events: none !important; | |||
} | } | ||
2026年8月14日 (五) 05:24的版本
/* 这里放置的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覆盖所有可能的视频外层包装盒 */
.embedvideo,
.embedvideo-container,
.mediaContainer,
.thumbinner,
div[class*="embedvideo"],
div[style*="width"] {
width: 100% !important;
max-width: 800px !important; /* 你希望的最大播放宽度 */
margin: 15px auto !important;
float: none !important;
}
/* 2. 覆盖所有可能的 video 标签 */
.embedvideo video,
.mediaContainer video,
.thumbinner video,
video.mw-file-element,
video {
width: 100% !important;
height: auto !important;
display: block !important;
}
/* ===================================================
MediaWiki EmbedVideo 插件专属:去除视频文字/标题遮罩
=================================================== */
/* 强制隐藏 EmbedVideo 视频窗口内部的标题与提示遮罩 */
.embedvideo-overlay,
.embedvideo-consent-overlay,
.embedvideo-header,
.embedvideo-title,
.embedvideo-service {
display: none !important;
}
/* ===================================================
MediaWiki / EmbedVideo 本地音视频样式修复
=================================================== */
/* 1. 音频播放条:限制 640px 宽度 + 水平居中 + 防塌陷 */
audio,
.mw-parser-output audio,
.embedvideo audio,
.mediaContainer audio {
display: block !important;
width: 100% !important;
max-width: 640px !important; /* 电脑端最大宽度 640px */
height: 48px !important; /* 保持音频控件优雅比例,防高度塌陷 */
min-height: 40px !important;
margin: 15px auto !important; /* 自动左右边距实现水平居中 */
visibility: visible !important;
opacity: 1 !important;
}
/* 兼容 EmbedVideo / Video.js / TMH 的音频外层包裹容器 */
.embedvideo.ev-audio,
.embedvideo-container.ev-audio,
.video-js.vjs-audio,
.mediaContainer.mw-tmh-audio {
max-width: 640px !important;
width: 100% !important;
height: 48px !important;
margin: 15px auto !important;
display: block !important;
}
/* 2. 视频遮罩:仅隐藏视频窗口上的文字遮罩(不影响音频) */
.embedvideo video ~ [class*="overlay"],
.embedvideo video ~ [class*="title"],
.embedvideo video ~ [class*="badge"],
.embedvideo .vjs-dock-text,
.embedvideo .vjs-dock-title,
.embedvideo .embedvideo-overlay,
.embedvideo .embedvideo-title {
display: none !important;
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
}
