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

MediaWiki:Common.css:修订间差异

来自Dhamma.cn
法藏​(留言 | 贡献)
小无编辑摘要
法藏​(留言 | 贡献)
小无编辑摘要
第119行: 第119行:
     display: none !important;
     display: none !important;
}
}




第124行: 第127行:


/* ===================================================
/* ===================================================
   彻底修复页尾图标:剥离外层大框,紧凑贴合图标
   页尾图标响应式布局(PC 端与手机端区分)
   =================================================== */
   =================================================== */


/* 1. 清空外层容器(li / a)的背景与固定高宽,消除巨大大白框 */
/* 1. 统一容器:采用 Flex 布局并开启自动换行与 gap 间距 */
#footer-icons,
.footer-icons,
#f-poweredbyico {
    display: flex !important;
    flex-wrap: wrap !important;        /* 👈 屏幕窄时自动优雅换行 */
    justify-content: center !important; /* 水平居中 */
    align-items: center !important;    /* 垂直居中 */
    gap: 10px !important;              /* 👈 核心:自动控制横向与纵向间距,彻底解决粘连 */
    padding: 0 !important;
    margin: 12px auto !important;
    list-style: none !important;
}
 
/* 2. 剥离外层容器(li / a)的硬编码样式,只保留图片自身容器 */
#footer-icons li,
#footer-icons li,
#footer-icons a,
#footer-icons a,
第139行: 第156行:
     width: auto !important;
     width: auto !important;
     height: auto !important;
     height: auto !important;
    min-height: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
     margin: 0 4px !important;
     margin: 0 !important;             /* 间距交由父级的 gap 统一托管 */
     background: transparent !important; /* 👈 清除外层多余白底 */
     background: transparent !important;
     border: none !important;
     border: none !important;
     box-shadow: none !important;
     box-shadow: none !important;
}
}


/* 2. 让白底和圆角直接包裹在图片本身上,形成紧凑小卡片 */
/* 3. 图片基础样式:统一纯白背景与圆角 */
#footer-icons img,
#footer-icons img,
#f-poweredbyico img,
#f-poweredbyico img,
.footer-icons img,
.footer-icons img,
#footer-poweredbyico img {
#footer-poweredbyico img {
    height: 26px !important;          /* 👈 高度对齐右侧图标 */
     background-color: #ffffff !important;
    width: auto !important;            /* 宽度按比例自适应 */
     border-radius: 6px !important;
    padding: 2px 8px !important;      /* 👈 内边距:形成紧凑卡片 */
     background-color: #ffffff !important; /* 👈 白底只在 Logo 周围生效 */
     border-radius: 6px !important;     /* 👈 统一圆角 */
     box-sizing: border-box !important;
     box-sizing: border-box !important;
    vertical-align: middle !important;
     object-fit: contain !important;
     object-fit: contain !important;
    display: block !important;
}
/* ---------------------------------------------------
  💻 PC 端效果 (屏幕宽度 > 768px)
  --------------------------------------------------- */
@media screen and (min-width: 769px) {
    #footer-icons img,
    #f-poweredbyico img,
    .footer-icons img {
        height: 28px !important;      /* PC端统一优雅高度 */
        padding: 3px 8px !important;  /* PC端紧凑卡片内边距 */
    }
}
/* ---------------------------------------------------
  📱 手机端效果 (屏幕宽度 <= 768px)
  --------------------------------------------------- */
@media screen and (max-width: 768px) {
    #footer-icons,
    .footer-icons,
    #f-poweredbyico {
        gap: 10px !important;          /* 👈 手机端纵向堆叠时,保持 10px 独立间距 */
    }
    #footer-icons img,
    #f-poweredbyico img,
    .footer-icons img {
        height: 32px !important;      /* 手机端适当放大高度,更方便手指点击 */
        padding: 4px 10px !important;  /* 手机端卡片内边距 */
    }
}
}

2026年8月14日 (五) 06:11的版本

/* 这里放置的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;
}







/* ===================================================
   页尾图标响应式布局(PC 端与手机端区分)
   =================================================== */

/* 1. 统一容器:采用 Flex 布局并开启自动换行与 gap 间距 */
#footer-icons,
.footer-icons,
#f-poweredbyico {
    display: flex !important;
    flex-wrap: wrap !important;         /* 👈 屏幕窄时自动优雅换行 */
    justify-content: center !important; /* 水平居中 */
    align-items: center !important;     /* 垂直居中 */
    gap: 10px !important;               /* 👈 核心:自动控制横向与纵向间距,彻底解决粘连 */
    padding: 0 !important;
    margin: 12px auto !important;
    list-style: none !important;
}

/* 2. 剥离外层容器(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;              /* 间距交由父级的 gap 统一托管 */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. 图片基础样式:统一纯白背景与圆角 */
#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;
}


/* ---------------------------------------------------
   💻 PC 端效果 (屏幕宽度 > 768px)
   --------------------------------------------------- */
@media screen and (min-width: 769px) {
    #footer-icons img,
    #f-poweredbyico img,
    .footer-icons img {
        height: 28px !important;       /* PC端统一优雅高度 */
        padding: 3px 8px !important;   /* PC端紧凑卡片内边距 */
    }
}


/* ---------------------------------------------------
   📱 手机端效果 (屏幕宽度 <= 768px)
   --------------------------------------------------- */
@media screen and (max-width: 768px) {
    #footer-icons,
    .footer-icons,
    #f-poweredbyico {
        gap: 10px !important;          /* 👈 手机端纵向堆叠时,保持 10px 独立间距 */
    }

    #footer-icons img,
    #f-poweredbyico img,
    .footer-icons img {
        height: 32px !important;       /* 手机端适当放大高度,更方便手指点击 */
        padding: 4px 10px !important;  /* 手机端卡片内边距 */
    }
}