LLWiki正在建设中,欢迎加入我们!
“MediaWiki:Common.css”的版本间差异
跳转到导航
跳转到搜索
小 (// Edit via Wikiplus) |
标签:移动版网页编辑 移动版编辑 |
||
(未显示3个用户的38个中间版本) | |||
第1行: | 第1行: | ||
/*<nowiki>*/ |
|||
/* 这里放置的CSS将应用于所有皮肤 */ |
|||
/* 桌面版专用CSS */ |
|||
/* 全局css */ |
/* 全局css */ |
||
.mobileonly { |
|||
display:none; |
|||
} |
|||
/* 自定义桌面版导航 */ |
|||
#mw-panel .fa, #mw-panel .fas, #mw-panel .far, #mw-panel .fab { |
|||
width: 1.5em; |
|||
text-align: center; |
|||
} |
|||
/* 引自[[zhwiki:mediawiki:gadget-hideConversionTab.css]] */ |
|||
#ca-varlang-0, #ca-varlang-1, #ca-varlang-2 { |
|||
display: none; |
|||
} |
|||
/* 公告 */ |
|||
#localNotice > p:first-child { |
|||
margin-top: 0; |
|||
} |
|||
/* logo */ |
/* logo */ |
||
#mw-panel #p-logo + div.portal, #p-logo { |
#mw-panel #p-logo + div.portal, #p-logo { |
||
第8行: | 第25行: | ||
#p-logo { |
#p-logo { |
||
margin-left:-0.5em; |
margin-left:-0.5em; |
||
} |
|||
/* notification */ |
|||
.mw-notification.mw-notification-type-success { |
|||
background-color: #f8fff8; |
|||
border-color: #39eb45; |
|||
} |
} |
||
第40行: | 第62行: | ||
#mw-panel > :not(:first-child) { |
#mw-panel > :not(:first-child) { |
||
background-color:rgba(255,255,255,.7); |
background-color:rgba(255,255,255,.7); |
||
} |
|||
/* references分栏 */ |
|||
.mw-references-columns { |
|||
margin-top: 0.3em; |
|||
} |
|||
.mw-references-columns > ol.references { |
|||
margin-top: 0; |
|||
} |
} |
||
/* 解决代码的overflow */ |
/* 解决代码的overflow */ |
||
第45行: | 第74行: | ||
word-wrap:break-word; |
word-wrap:break-word; |
||
} |
} |
||
/* |
/* CodeEditor扩展 */ |
||
.skin-vector .ace_editor { |
|||
.mainpage-flex { |
|||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; |
|||
display:inline-block; |
|||
width:32%; |
|||
} |
} |
||
.codeEditor-ui-toolbar ~ .mw-editTools { |
|||
.mainpage-project { |
|||
display: |
display:none; |
||
} |
|||
width:49%; |
|||
/* 自定义下拉菜单 */ |
|||
margin-bottom:40px; |
|||
.site-menu { |
|||
font-size: 14px; |
|||
} |
|||
/* 含大量文字的表格 */ |
|||
.nowrap-1 th:first-child, .nowrap-1 td:first-child, |
|||
.nowrap-2 th:nth-child(2), .nowrap-2 td:nth-child(2), |
|||
.nowrap-3 th:nth-child(3), .nowrap-3 td:nth-child(3), |
|||
.nowrap-4 th:nth-child(4), .nowrap-4 td:nth-child(4) { |
|||
white-space:nowrap; |
|||
} |
|||
/* 固定表頭 */ |
|||
.wikitable.tsticky:not(.sortable) tr:first-child > th, |
|||
.wikitable.tsticky.sortable > thead th { |
|||
position: sticky; |
|||
top: 0; |
|||
z-index: 1; |
|||
} |
|||
.wikitable.tsticky:not(.sortable) tr:first-child > th::after, |
|||
.wikitable.tsticky.sortable > thead th::after { |
|||
content: ''; |
|||
position: absolute; |
|||
left: -1px; |
|||
right: -1px; |
|||
top: -1px; |
|||
bottom: -1px; |
|||
border: 1px solid #a2a9b1; |
|||
} |
|||
/* cite扩展 */ |
|||
.mw-references-wrap + ol { |
|||
margin-top:0; |
|||
} |
|||
/* CharInsert */ |
|||
.mw-editTools { |
|||
font-size:small; |
|||
} |
|||
.mw-editTools dl { |
|||
margin-bottom:0; |
|||
} |
} |
||
/* 用于模板的css类 */ |
/* 用于模板的css类 */ |
||
/* infoboxtemplate相关 */ |
|||
.float-near-infobox { |
|||
float:right; |
|||
} |
|||
/* 提示信息 */ |
/* 提示信息 */ |
||
.infobox { |
.infobox { |
||
margin:0 auto; |
margin:0 auto; |
||
} |
} |
||
/* 演唱會歌單 */ |
|||
/* 活动列表 */ |
|||
.concert-list { |
|||
.event-list td:nth-last-child(-n+2) br:first-of-type { |
|||
width:75%; |
|||
display: none; |
|||
border-collapse:collapse; |
|||
} |
|||
border:1px solid #eaedf0; |
|||
/* code和pre */ |
|||
background-color:#fbfdff; |
|||
.template-code { |
|||
color:#7a7c7e; |
|||
color: #000; |
|||
text-align:center; |
|||
background-color: #f8f9fa; |
|||
border: 1px solid #eaecf0; |
|||
border-radius: 2px; |
|||
padding: 1px 4px; |
|||
} |
|||
.template-pre { |
|||
word-wrap: break-word; |
|||
line-height: 1.3; |
|||
color: #000; |
|||
background-color: #f8f9fa; |
|||
border: 1px solid #eaecf0; |
|||
padding: 1em; |
|||
white-space: pre-wrap; |
|||
} |
} |
||
. |
.template-pre p { |
||
margin: -1.3em 0; |
|||
color:white; |
|||
} |
} |
||
/* image修复Popups预览定位 */ |
|||
.concert-list tr:nth-child(even) { |
|||
.template-image { |
|||
background-color:#f0f2f4; |
|||
position: relative; |
|||
} |
} |
||
.template-image a > div { |
|||
.concert-list td { |
|||
position: absolute; |
|||
padding:3px; |
|||
top: 0; |
|||
bottom: 0; |
|||
left: 0; |
|||
right: 0; |
|||
} |
} |
||
/*</nowiki>*/ |
2021年11月27日 (六) 04:10的最新版本
/*<nowiki>*/ /* 桌面版专用CSS */ /* 全局css */ .mobileonly { display:none; } /* 自定义桌面版导航 */ #mw-panel .fa, #mw-panel .fas, #mw-panel .far, #mw-panel .fab { width: 1.5em; text-align: center; } /* 引自[[zhwiki:mediawiki:gadget-hideConversionTab.css]] */ #ca-varlang-0, #ca-varlang-1, #ca-varlang-2 { display: none; } /* 公告 */ #localNotice > p:first-child { margin-top: 0; } /* logo */ #mw-panel #p-logo + div.portal, #p-logo { margin-top: -20px; } #p-logo { margin-left:-0.5em; } /* notification */ .mw-notification.mw-notification-type-success { background-color: #f8fff8; border-color: #39eb45; } .mw-body-content h2, .toclevel-1 > a > .toctext { font-weight:bold; } #mw-panel { position:fixed; height:100vh; overflow-y:auto; padding-right:0.5em; } /* 改变背景颜色 */ #content { background-color:rgba(247,251,255,0.8); } /* 以下修改用于适应背景图片 */ #mw-page-base { background-color:transparent; background-image:none; } #simpleSearch #searchInput { background-color:white; } #p-personal, #p-variants, #p-cactions { background-image:linear-gradient(to top,#77c1f6 0,#e8f2f8 1px,#ffffff 100%); } #p-personal ul { padding: 0 0.5em; } body, #footer, #mw-panel > :not(:first-child) { background-color:rgba(255,255,255,.7); } /* references分栏 */ .mw-references-columns { margin-top: 0.3em; } .mw-references-columns > ol.references { margin-top: 0; } /* 解决代码的overflow */ pre { word-wrap:break-word; } /* CodeEditor扩展 */ .skin-vector .ace_editor { font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; } .codeEditor-ui-toolbar ~ .mw-editTools { display:none; } /* 自定义下拉菜单 */ .site-menu { font-size: 14px; } /* 含大量文字的表格 */ .nowrap-1 th:first-child, .nowrap-1 td:first-child, .nowrap-2 th:nth-child(2), .nowrap-2 td:nth-child(2), .nowrap-3 th:nth-child(3), .nowrap-3 td:nth-child(3), .nowrap-4 th:nth-child(4), .nowrap-4 td:nth-child(4) { white-space:nowrap; } /* 固定表頭 */ .wikitable.tsticky:not(.sortable) tr:first-child > th, .wikitable.tsticky.sortable > thead th { position: sticky; top: 0; z-index: 1; } .wikitable.tsticky:not(.sortable) tr:first-child > th::after, .wikitable.tsticky.sortable > thead th::after { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; bottom: -1px; border: 1px solid #a2a9b1; } /* cite扩展 */ .mw-references-wrap + ol { margin-top:0; } /* CharInsert */ .mw-editTools { font-size:small; } .mw-editTools dl { margin-bottom:0; } /* 用于模板的css类 */ /* infoboxtemplate相关 */ .float-near-infobox { float:right; } /* 提示信息 */ .infobox { margin:0 auto; } /* 活动列表 */ .event-list td:nth-last-child(-n+2) br:first-of-type { display: none; } /* code和pre */ .template-code { color: #000; background-color: #f8f9fa; border: 1px solid #eaecf0; border-radius: 2px; padding: 1px 4px; } .template-pre { word-wrap: break-word; line-height: 1.3; color: #000; background-color: #f8f9fa; border: 1px solid #eaecf0; padding: 1em; white-space: pre-wrap; } .template-pre p { margin: -1.3em 0; } /* image修复Popups预览定位 */ .template-image { position: relative; } .template-image a > div { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } /*</nowiki>*/