MediaWiki:Common.css:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的74个中间版本)
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/*****************************************
html body {
* Skin -> Example
font-family: Times New Roman,Trebuchet MS,Sans Serif,Arial;
* 修复使用 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;
}
}
body, #mw-page-base, .vectorTabs li, .vectorTabs, .vectorTabs span, #mw-head .vectorMenu h3, #mw-panel .portal .body {
/* 个人工具等栏目隐藏标题 */
background: transparent !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;
}
}
#ca-talk, #ca-nstab-mediawiki, #ca-nstab-main, #p-coll-print_export {
 
display: none;
/*****************************************
* 隐藏一些功能按键
*****************************************/
 
/* 隐藏文件页的原始文件下载链接 */
/*.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-associated-pages,*/
/*#p-tb {*/
/*    display: none !important;*/
/*}*/
/*****************************************
* 页面内样式修改
*****************************************/
body {
    background-color: transparent;
}
}
.mw-body {
 
border: 1px solid transparent !important;
#mw-page-base {
    background-color: transparent;
    background-image: none;
}
}
#content h1 {
/* 页面内 [编辑 | 编辑源代码] 样式 */
border-bottom: 2px double #a2a9b1 !important;
.mw-editsection {
    font-size: 14px;
    padding: 0 10px;
}
}
#content h2 {
/* 头部返回按钮面包屑 */
border-bottom: 1px dashed #a2a9b1 !important;
#contentSub {
    padding: 3px 10px;
    margin-bottom: 10px;
    font-size: 12px;
}
}
h3, h4, h5, h6, .portal h3, #p-cactions-label, #content .mw-body-content .toc h2 {
/* 分类框 */
border-bottom: 1px solid transparent !important;
#catlinks {
    background: lightyellow;
    padding: 5px 10px;
    font-size: 12px;
}
}
/* 这里放置的CSS将应用于所有皮肤 */
/* 头部 H1 大标题 */
div.wiki-template-box.wiki-template-box-tip {
#firstHeading {
    background-color: #dfd;
     border: none;
     border-color: #bdb;
}
}
div.wiki-template-box {
/* 加粗字体 */
     padding: 5px;
.mw-body-content b {
    border: thin solid black;
     color: #8b0000;
    margin: 0.5em 0;
    overflow: hidden;
}
}
#content pre, #content code, #content tt {
 
     background-color: #ebf1f5;
/* code 标签 */
     font-family: monospace;
.mw-body-content code:not([class]) {
     background: black;
     color: white;
}
}
#content pre {
/* 标题样式 */
     border: 1px solid #bbccdd;
.mw-body > h1 {
    overflow: auto;
     border-bottom: 2px double #a2a9b1;
    word-break: break-all;
    white-space: pre-wrap !important;
}
}
#content table, #content h1, #content h2, #content h3, #content h4, #content h5, #content pre, #content code, #content tt {
 
     color: #222222;
/* 编辑样式 */
.mw-body-content pre,
.mw-body-content .mw-code {
     padding: 10px;
}
}
#mw-content-text>.mw-parser-output>.mw-highlight>pre {
 
margin: 0.5em 0;
.mw-body-content blockquote {
    border-left: none;
}
}
/* 模板文档皮肤 */
 
.template-documentation {
.mw-body-content .mw-parser-output > h2 {
background: aliceblue;
    border-bottom: 1px dashed #a2a9b1;
padding: 1em;
border: 1px solid #aaa;
}
}
.template-documentation-header {
.mw-body .mw-highlight .nv {
padding-bottom:3px;
    color: #0e9bbf;
border-bottom: 1px solid #aaa;
margin-bottom:1ex;
}
}
.template-documentation-header span {
table.wikitable .mw-highlight {
     font-weight: bold;
     margin: 0;
    font-size: 125%;
}
}
.template-documentation-header span.plainlinks {
 
     font-size:small;
table.wikitable .td-pre-noborder pre {
     border: none;
}
}
#template_doc_page_transcluded {
 
font-size:84%;
/*****************************************
}
* Skin -> Example
.pageBoxGreen {
* [导航菜单]修改基础样式
background: #E9FBE9;
* p-logo: <wiki name>
padding: .5em;
* p-search:
margin: .5em 0;
* user-tools:
page-break-inside: avoid;
* page-tools:
border-left: .5em solid #52E052;
* 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;
}
}
.wikiLeftRightBoxMain {
#p-user-page li,
height: auto;
#p-notifications li,
    display: flex;
#p-user-interface-preferences li,
     margin: auto;
#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;
}
}
.wikiLeftRightBoxMainLeft>pre, .wikiLeftRightBoxMainLeft>.mw-highlight {
#p-personal,
margin: 1em 0.5em 1em 0 !important;
#page-tools {
}
.wikiLeftRightBoxMainRight>pre, .wikiLeftRightBoxMainRight>#Consoleoutstyle, .wikiLeftRightBoxMainRight>.mw-highlight, .wikiLeftRightBoxMainRight>code {
margin: 1em 0 1em 0.5em !important;
}
.wikiLeftRightBoxMainRight>#Consoleoutstyle>pre {
margin: 0;
}
.wikiLeftRightBoxMainLeft>.mw-highlight pre, .wikiLeftRightBoxMainRight>.mw-highlight pre {
margin: 0 !important;
}
.wikiLeftRightBoxMainRight>code {
display: inline-block;
}
.wikiLeftRightBoxMain .mw-highlight pre{
background: #fff !important;
}
.wikiLeftRightBoxMain .left, .wikiLeftRightBoxMain .right {
flex: 0;
}
.wikiLeftRightBoxMain>div {
    /* margin: .5em; */
    flex: 1;
}
div.wiki-shc-background pre{
background: #222222 !important;
    color: #f6f6f6 !important;
     margin: 0 !important;
     margin: 0 !important;
    border: 1px solid #fff !important;
    border-left: none !important;
}
}
div.wiki-hc-background{
#footer #footer-icons {
margin-bottom: 15px;
    display: flex;
}
     float: none;
div.wiki-hc-background>div {
    justify-content: end;
border-top: 1px dashed #bbccdd !important;
    margin: 5px 0 10px 0;
padding: 0 !important;
}
div.wiki-hc-background>div pre {
margin: 0 !important;
     border-top: none !important;
}
div.wiki-hcdiff-main div.right pre {
border-left: none !important;
}
div.wiki-codepen div.wikiLeftRightBoxMain {
width: 100%;
}
div.wiki-codepen div.wikiLeftRightBoxMain .tabs-tabbox{
margin: 0;
}
div.wiki-codepen div.wikiLeftRightBoxMain .tabs-tabbox .tabs-container {
margin: 0;
    padding: 0;
    height: 300px;
    border-radius: 0;
}
}
div.wiki-codetab .tabs-tabbox .tabs-container pre, div.wiki-codepen div.wikiLeftRightBoxMain .tabs-tabbox .tabs-container pre{
#footer #footer-icons li {
box-sizing: border-box;
    padding-right: 0;
    padding-left: 1em;
}
}
div.wiki-codetab .tabs-tabbox .tabs-container {
#footer #footer-icons li > a {
    border: none;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
     height: 300px;
     background: transparent;
    border-radius: 0;
}
}
div.wiki-codepen .tabs-content {
#footer #footer-info {
     width: 100%;
     margin-top: 0;
     height: 100%;
     margin-bottom: 5px;
}
}
div.wiki-codepen .tabs-content .mw-highlight {
#footer #footer-places {
     display: table;
     margin-top: 0;
    height: 100%;
    width: 100%;
}
}
div.wiki-codepen .tabs-content .mw-highlight pre{
#footer #footer-info li {
     border: none !important;
     display: block;
     height: 100%;
     font-size: 12px;
}
}
div.wiki-codepen .tabs-content, div.wiki-codepen .tabs-content .mw-highlight, div.wiki-codepen .tabs-content .mw-highlight pre {
#footer-places li a {
     margin: 0;
     font-size: 12px;
}
}
div.wiki-codepen .wiki-codepen-iframe{
#siteSub {
     margin: 0;
     display: none;
}
}
div.wiki-codepen .wiki-codepen-iframe iframe{
#p-logo {
     width: 100%;
     float: none;
    height: 300px;
    margin-top: 25px;
    border: 1px solid #AAA;
    padding: 0;
    overflow: auto;
    display: block;
}
table.wikitable div.mw-highlight pre, table.wikitable div.shc-content pre{
margin: 0;
}
div.wiki-test-content{
display: block;
     position: absolute;
     position: absolute;
    top: 10px;
     right: 0;
     right: 10px;
     top: 20px;
     background: red;
    border: 1px solid black;
    width: 50px;
    height: 50px;
    color: white;
    text-align: center;
    border-radius: 10px;
}
}
.wikiLeftRightBoxMain .wiki-hc-background>div, .wikiLeftRightBoxMain .wiki-hc-background>div>div.mw-highlight {
#p-logo img {
margin: 0 !important;
    width: 60px;
    height: 60px;
}
}
 
#p-logo h1 {
div#Consoleoutstyle * {
    display: none;
background-color: #000;
color: #fff;  
}
}
blockquote>div.mw-highlight>pre, blockquote>pre {
#p-search {
background: #d0ee87 !important;
    display: flex;
    gap: 10px;
}
}
blockquote>div.mw-highlight>pre span.nt{
#mw-navigation #p-search h3 {
color: #247ff0 !important;
    position: relative !important;
    width: 30px;
    height: 26px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
}
blockquote>div.mw-highlight>pre span.p{
#p-search input[type="search"] {
color: red !important;
    flex: 1;
}
}
div.shc_out-content {
 
margin-bottom: 15px;
/*****************************************
}
  * 动画效果
div.shc_out-content div.wiki-shc-out-background>div.mw-highlight>pre, div.shc_out-content div.wiki-shc-out-background>pre {
  *****************************************/
    border: 1px solid transparent !important;
 
    color: black !important;
/* template: module_name_version style */
    margin: 0 1px !important;
@keyframes glowing-button-85 {
    border-top: none !important;
    0% {
    background: #f3f1f1 !important;
        background-position: 0 0;
}
    }
div.shc_out-content div.shc_out-content_header div.wiki-shc-background>div.mw-highlight>pre, div.shc_out-content div.shc_out-content_header>div>pre {
 
margin-bottom: 0 !important;
    50% {
    border-bottom: none !important;
        background-position: 400% 0;
}
    }
/**
 
  * Styling for links generated by [[MediaWiki:Edittools]]
     100% {
  * @source https://www.mediawiki.org/wiki/Extension:CharInsert#Styling
        background-position: 0 0;
* @updated 2020-03-17
     }
*/
.mw-charinsert-buttons {
border: 1px solid #aaa;
margin-top: 10px;
padding: 1px;
font-size: 1.1em;
text-align: center;
}
.mw-charinsert-buttons a {
background-color: #cde !important;
color: #000;
border: thin #069 outset;
padding: 0 1px 1px;
font-weight: bold;
font-size: .9em;
text-decoration: none;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
background-color: #bcd;
border-style: inset;
}
.client-js .mw-edittools-section {
display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
font-size: .9em;
margin-left: 1px;
padding-left: 1px;
padding-right: 1px;
}
.wiki-shc-background .mw-highlight pre .nv {
color: #efe3ab;
}
.mw-mmv-pre-image .mw-mmv-download-button, .mw-mmv-pre-image .mw-mmv-reuse-button {
display: none;
}
.mw-highlight {
background: transparent !important;
}
.mw-highlight pre {
margin: .5em;
}
.wiki-timepoint {
     background: #000000;
    color: white;
    padding: 0px 2px;
}
/* shc https://kangkk.cn/index.php/%E6%A8%A1%E6%9D%BF:Shc */
.shc-content {
display: flex !important;
}
.shc-pre {
    border: 1px solid #fff !important;
    font-weight:bold !important;
    user-select: none !important;
    word-break: normal;
    white-space: nowrap !important;
    background: #54595d !important;
    color: white !important;
    margin: 0 !important;
     border-right: none !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
}

2026年11月25日 (三) 17:19的最新版本

/*****************************************
 * 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-associated-pages,*/
/*#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;
    background: transparent;
}
#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;
    }
}