MediaWiki:Common.css:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第70行: | 第70行: | ||
#p-coll-print_export, | #p-coll-print_export, | ||
#p-navigation, | #p-navigation, | ||
#p-variants, | |||
#p-tb { | #p-tb { | ||
display: none !important; | display: none !important; | ||
2026年11月25日 (三) 15:01的版本
/*****************************************
* Skin -> Example
* 修复使用 example 皮肤时,诸如"首页"、"编辑源代码"、"删除"等常规功能不能点击
* p-user-page(user-page): <用户名称>
* p-notifications(通知): <重要通知(0)>|<常规通知(1)>
* p-user-interface-preferences(user-interface-preferences):
* p-personal(个人工具): 参数设置|退出
* p-associated-pages(associated-pages): 系统消息|页面|讨论
* p-variants(语言变体):
* p-views(查看): 编辑|编辑源代码
* p-cactions(更多): 删除|移动|保护|监视|刷新
* p-navigation(导航): 首页|最近更改|随机页面
* p-tb(工具): 链入页面|相关更改|上传文件|固定链接|页面信息|引用此页|浏览属性
* p-coll-print_export(打印/导出): 创建图书|下载PDF|可打印版
*****************************************/
/* 个人工具等栏目隐藏 checkbox 占位 */
#p-user-page > input[type="checkbox"],
#p-notifications > input[type="checkbox"],
#p-user-interface-preferences > input[type="checkbox"],
#p-personal > input[type="checkbox"],
#p-associated-pages > input[type="checkbox"],
#p-variants > input[type="checkbox"],
#p-views > input[type="checkbox"],
#p-cactions > input[type="checkbox"],
#p-navigation > input[type="checkbox"],
#p-tb > input[type="checkbox"],
#p-coll-print_export > input[type="checkbox"] {
/*visibility: hidden !important;*/
display: none !important;
}
/* 个人工具等栏目隐藏标题 */
#p-user-page h3,
#p-notifications h3,
#p-user-interface-preferences h3,
#p-personal h3,
#p-associated-pages h3,
#p-variants h3,
#p-views h3,
#p-cactions h3,
#p-navigation h3,
#p-tb h3,
#p-coll-print_export h3 {
display: none !important;
}
/*****************************************
* 隐藏一些功能按键
*****************************************/
/* 隐藏文件页的原始文件下载链接 */
.fullMedia .internal {
display: none !important;
}
/* 隐藏所有页面顶部的“讨论”标签页 */
#ca-nstab-main,
#ca-talk,
#ca-unwatch,
#ca-watch,
#ca-nstab-mediawiki {
display: none !important;
}
/* 可选:隐藏右上角个人工具栏中的“讨论”链接 */
#pt-mytalk {
display: none !important;
}
/* g */
#p-coll-print_export,
#p-navigation,
#p-variants,
#p-tb {
display: none !important;
}
/*****************************************
* 页面内样式修改
*****************************************/
body {
background-color: transparent;
}
#mw-page-base {
background-color: transparent;
background-image: none;
}
/* 页面内 [编辑 | 编辑源代码] 样式 */
.mw-editsection {
font-size: 14px;
padding: 0 10px;
}
/* 头部返回按钮面包屑 */
#contentSub {
padding: 3px 10px;
margin-bottom: 10px;
font-size: 12px;
}
/* 分类框 */
#catlinks {
background: lightyellow;
padding: 5px 10px;
font-size: 12px;
}
/* 头部 H1 大标题 */
#firstHeading {
border: none;
}
/* 加粗字体 */
.mw-body-content b {
color: #8b0000;
}
/* code 标签 */
.mw-body-content code:not([class]) {
background: black;
color: white;
}
/* 标题样式 */
.mw-body > h1 {
border-bottom: 2px double #a2a9b1;
}
/* 编辑样式 */
.mw-body-content pre,
.mw-body-content .mw-code {
padding: 10px;
}
.mw-body-content blockquote {
border-left: none;
}
.mw-body-content .mw-parser-output > h2 {
border-bottom: 1px dashed #a2a9b1;
}
.mw-body .mw-highlight .nv {
color: #0e9bbf;
}
table.wikitable .mw-highlight {
margin: 0;
}
table.wikitable .td-pre-noborder pre {
border: none;
}
/*****************************************
* Skin -> Example
* [导航菜单]修改基础样式
* p-logo: <wiki name>
* p-search:
* user-tools:
* page-tools:
* site-navigation:
*****************************************/
/* 修改功能按钮样式 */
#p-user-page li > a,
#p-notifications li > a,
#p-user-interface-preferences li > a,
#p-personal li > a,
#p-associated-pages li > a,
#p-variants li > a,
#p-views li > a,
#p-cactions li > a,
#p-navigation li > a,
#p-tb li > a,
#p-coll-print_export li > a {
font-size: 14px;
}
#p-user-page li,
#p-notifications li,
#p-user-interface-preferences li,
#p-personal li,
#p-associated-pages li,
#p-variants li,
#p-views li,
#p-cactions li,
#p-navigation li,
#p-tb li,
#p-coll-print_export li {
padding-right: 0 !important;
}
#p-personal,
#page-tools {
margin: 0 !important;
}
#footer #footer-icons {
display: flex;
float: none;
justify-content: end;
margin: 5px 0 10px 0;
}
#footer #footer-icons li {
padding-right: 0;
padding-left: 1em;
}
#footer #footer-icons li > a {
border: none;
margin: 0;
padding: 0;
}
#footer #footer-info {
margin-top: 0;
margin-bottom: 5px;
}
#footer #footer-places {
margin-top: 0;
}
#footer #footer-info li {
display: block;
font-size: 12px;
}
#footer-places li a {
font-size: 12px;
}
#siteSub {
display: none;
}
#p-logo {
float: none;
position: absolute;
right: 0;
top: 20px;
}
#p-logo img {
width: 60px;
height: 60px;
}
#p-logo h1 {
display: none;
}
#p-search {
display: flex;
gap: 10px;
}
#mw-navigation #p-search h3 {
position: relative !important;
width: 30px;
height: 26px;
font-size: 14px;
display: flex;
align-items: center;
}
#p-search input[type="search"] {
flex: 1;
}
/*****************************************
* 动画效果
*****************************************/
/* template: module_name_version style */
@keyframes glowing-button-85 {
0% {
background-position: 0 0;
}
50% {
background-position: 400% 0;
}
100% {
background-position: 0 0;
}
}
No categories