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

MediaWiki:Common.css

来自Dhamma.cn
法藏讨论 | 贡献2026年1月18日 (日) 20:14的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* 这里放置的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;
}






/*APP化改造尝试*/

.skin-timeless {
    --app-radius: 14px;
    --app-bg: #f5f5f7;
    --app-card: #ffffff;
    --app-divider: #e5e5ea;
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Noto Sans",
                 "Helvetica Neue", Arial, sans-serif;
    background: var(--app-bg);
}



.skin-timeless #mw-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--app-divider);
}


.skin-timeless #searchInput {
    border-radius: 999px;
    border: none;
    background: #f1f1f3;
    padding: 0.45em 1em;
    font-size: 0.95em;
}


.skin-timeless #content {
    background: var(--app-card);
    border-radius: var(--app-radius);
    padding: 1.2em;
    margin: 1em auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}



.skin-timeless #mw-panel {
    background: var(--app-card);
    border-radius: var(--app-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}


.skin-timeless a {
    padding: 0.2em 0;
}


.skin-timeless ul li {
    margin-bottom: 0.6em;
}


.video-player,
.skin-timeless video {
    border-radius: var(--app-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}


@media screen and (max-width: 768px) {

    .skin-timeless #mw-header {
        position: fixed;
        top: 0;
        width: 100%;
    }

    .skin-timeless #content {
        margin-top: 4.5em;
        border-radius: 0;
        box-shadow: none;
    }

}