有觉性 以安住且中立的心 照见身心的实相

MediaWiki:Common.css:修订间差异

来自Dhamma.cn
法藏​(留言 | 贡献)
小无编辑摘要
法藏​(留言 | 贡献)
小无编辑摘要
第81行: 第81行:
     line-height: 1.6em;
     line-height: 1.6em;
}
}




第87行: 第88行:


/* ===================================================
/* ===================================================
   1. 视频容器:800px 居中(排除了音频)
   1. 视频容器:800px 居中 + 隐藏文字遮罩
   =================================================== */
   =================================================== */
/* 仅针对视频容器限制 800px 宽度 */
.embedvideo,
.embedvideo:not(:has(audio)),
.embedvideo-container,
.embedvideo-container:not(:has(audio)),
.mediaContainer {
.mediaContainer:not(:has(audio)) {
     width: 100% !important;
     width: 100% !important;
     max-width: 800px !important;
     max-width: 800px !important;
第107行: 第107行:
}
}


 
/* 隐藏视频窗口上的文字遮罩/标题 */
/* ===================================================
  2. 视频遮罩:彻底隐藏
  =================================================== */
.embedvideo-overlay,
.embedvideo-overlay,
.embedvideo-consent-overlay,
.embedvideo-consent-overlay,
.embedvideo-header,
.embedvideo-header,
.embedvideo-title,
.embedvideo-title,
.embedvideo-service {
.embedvideo-service,
.embedvideo-badge {
     display: none !important;
     display: none !important;
}
}
第121行: 第119行:


/* ===================================================
/* ===================================================
   3. 音频处理:彻底修复 16:9 裁切 + 640px 居中
   2. 音频容器:640px 居中 + 彻底防裁切
   =================================================== */
   =================================================== */
/* 强行解除音频外盒的 height:0 和 16:9 比例限制 */
/* 强行取消音频外框的 16:9 比例与高度限制 */
.embedvideo-type-audio,
.embedvideo-type-audio,
.embedvideo-type-audio .embedvideo-wrapper,
.embedvideo-type-audio .embedvideo-wrapper,
.embedvideo:has(audio),
.embedvideo-audio,
.embedvideo:has(audio) .embedvideo-wrapper,
.embedvideo-audio .embedvideo-wrapper,
.embedvideo-container:has(audio),
.mw-tmh-audio,
.mediaContainer:has(audio) {
.mediaContainer.mw-tmh-audio,
.is-audio-container,
.is-audio-container .embedvideo-wrapper {
     padding-bottom: 0 !important;
     padding-bottom: 0 !important;
     height: auto !important;
     height: auto !important;
第139行: 第139行:
}
}


/* 强制渲染音频控件本身 */
/* 强制显示原生 <audio> 标签 */
audio,
audio,
.mw-parser-output audio,
.mw-parser-output audio,
.embedvideo audio {
.embedvideo audio {
     display: block !important;
     display: block !important;
     position: static !important;
     position: relative !important;
     width: 100% !important;
     width: 100% !important;
     max-width: 640px !important;
     max-width: 640px !important;
第151行: 第151行:
     visibility: visible !important;
     visibility: visible !important;
     opacity: 1 !important;
     opacity: 1 !important;
    z-index: 10 !important;
}
/* 兜底规则:如果 audio 被困在旧 wrapper 中,强制居中拉出 */
.embedvideo-wrapper > audio {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
}
}

2026年8月14日 (五) 05:30的版本

/* 这里放置的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 {
    width: 100% !important;
    max-width: 800px !important;
    margin: 15px auto !important;
    float: none !important;
}

.embedvideo video,
.mediaContainer video,
video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 隐藏视频窗口上的文字遮罩/标题 */
.embedvideo-overlay,
.embedvideo-consent-overlay,
.embedvideo-header,
.embedvideo-title,
.embedvideo-service,
.embedvideo-badge {
    display: none !important;
}


/* ===================================================
   2. 音频容器:640px 居中 + 彻底防裁切
   =================================================== */
/* 强行取消音频外框的 16:9 比例与高度限制 */
.embedvideo-type-audio,
.embedvideo-type-audio .embedvideo-wrapper,
.embedvideo-audio,
.embedvideo-audio .embedvideo-wrapper,
.mw-tmh-audio,
.mediaContainer.mw-tmh-audio,
.is-audio-container,
.is-audio-container .embedvideo-wrapper {
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 44px !important;
    max-width: 640px !important;
    width: 100% !important;
    margin: 15px auto !important;
    overflow: visible !important;
}

/* 强制显示原生 <audio> 标签 */
audio,
.mw-parser-output audio,
.embedvideo audio {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 640px !important;
    height: 44px !important;
    margin: 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

/* 兜底规则:如果 audio 被困在旧 wrapper 中,强制居中拉出 */
.embedvideo-wrapper > audio {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
}