LLWiki正在建设中,欢迎加入我们!
“MediaWiki:Gadget-site-styles.css”的版本间差异
跳转到导航
跳转到搜索
小 (// 使用Wikiplus小工具快速编辑) 标签:移动版网页编辑 移动版编辑 |
|||
(未显示同一用户的45个中间版本) | |||
第1行: | 第1行: | ||
/*<nowiki>*/ |
|||
/* 这里放置的移动版网站的CSS样式将比mobile.css中的样式加载更快 */ |
|||
/* 这里是桌面版和手机版共用的样式,另外用于模板的样式参见[[mediawiki:gadget-templates-styles.css]] */ |
|||
/* |
/* 1. 默认元素 */ |
||
.mw-parser-output > p:first-child:empty, .mw-parser-output > p:last-child:empty { |
|||
#mw-content-text { |
|||
display: none; |
|||
font-family:Arial, Helvetica, sans-serif; |
|||
} |
} |
||
pre, textarea, .diff { |
|||
-moz-tab-size: 4; |
|||
.mw-rcfilters-ui-rclToOrFromWidget.oo-ui-dropdownWidget.oo-ui-widget-enabled span.oo-ui-dropdownWidget-handle { |
|||
tab-size: 4; |
|||
border: 1px solid #a2a9b1; |
|||
border-radius: 2px; |
|||
background-color: #fff; |
|||
} |
} |
||
rt { |
|||
.skin-minerva .mw-changeslist .comment { |
|||
font-size: 0.8em; |
|||
line-height: inherit; |
|||
} |
} |
||
/* |
/* 英文字体优先 */ |
||
#mw-content-text, #catlinks { |
|||
font-family: Helvetica, Arial, sans-serif; |
|||
width:100%; |
|||
} |
|||
font-size:small; |
|||
/* 插入音频 */ |
|||
audio { |
|||
width: 270px; |
|||
height: 24px; |
|||
} |
|||
.gallery audio { |
|||
width: auto; /* Safari */ |
|||
min-width: 100%; /* Chrome和Edge */ |
|||
max-width: 100%; /* Firefox */ |
|||
} |
} |
||
#mw-category-media audio, .page-Special_新建文件 audio { |
|||
/* error message */ |
|||
transform: translateY(-50%); |
|||
.error { |
|||
color:#d33; |
|||
font-size:larger; |
|||
} |
} |
||
#mw-category-media .thumb, .page-Special_新建文件 .thumb { |
|||
/* 外链过长 */ |
|||
height: 150px; |
|||
.skin-minerva a.external { |
|||
word-break:break-all; |
|||
} |
} |
||
/* |
/* 特殊頁面的重新導向 */ |
||
.mw-changeslist-title.mw-redirect, |
.mw-changeslist-title.mw-redirect, |
||
.mw-contributions-title.mw-redirect, |
.mw-contributions-title.mw-redirect, |
||
.mw-newpages-pagename.mw-redirect { |
.mw-newpages-pagename.mw-redirect { |
||
font-style:italic; |
font-style: italic; |
||
} |
} |
||
/* 2. 自定义元素 */ |
|||
/* 编辑请求 */ |
/* 编辑请求 */ |
||
.editRequest > a { |
.editRequest > a { |
||
vertical-align:text-bottom; |
vertical-align: text-bottom; |
||
} |
} |
||
/* 含大量文字的表格 */ |
|||
/* 移动版logo */ |
|||
. |
.content-table { |
||
width: 100%; |
|||
} |
|||
.skin-minerva .header .branding-box a { |
|||
color:transparent; |
|||
background-image: url("/mediawiki/resources/assets/logo.png"); |
|||
height: 100%; |
|||
background-size: auto 100%; |
|||
background-repeat: no-repeat; |
|||
} |
|||
.skin-minerva .header .branding-box a sup { |
|||
color: transparent; |
|||
} |
|||
/* 移动版导航 */ |
|||
#mw-mf-page-left .fa, |
|||
#mw-mf-page-left .fas, |
|||
#mw-mf-page-left .far, |
|||
#mw-mf-page-left .fab { |
|||
font-size:1.25em; |
|||
margin-right:0.5em; |
|||
vertical-align:middle; |
|||
text-align:center; |
|||
width:20px; |
|||
} |
|||
/* 移动版页顶图标 */ |
|||
#page-actions .mw-ui-icon-with-label-desktop { |
|||
color: transparent; |
|||
width: 1.25em; |
|||
} |
|||
#page-actions a { |
|||
color:#555; |
|||
} |
|||
#page-actions .fa { |
|||
width: 20px; |
|||
padding: 10px; |
|||
} |
|||
#page-actions > li > a > .fa::before { |
|||
font-size: 125%; |
|||
} |
|||
.mw-editsection .mw-ui-icon-element { |
|||
color: transparent; |
|||
} |
|||
/* 移动版移动页面 */ |
|||
.skin-minerva .movepage-wrapper { |
|||
width:auto; |
|||
} |
|||
/* 桌面版导航(自定义和备用) */ |
|||
#mw-panel .fa, |
|||
#mw-panel .fas, |
|||
#mw-panel .far, |
|||
#mw-panel .fab { |
|||
width: 1.5em; |
|||
text-align: center; |
|||
} |
|||
/* charablock */ |
|||
.memberblock { |
|||
margin-right: 0.4em; |
|||
padding: 0 0.2em; |
|||
display: inline-block !important; |
|||
} |
|||
.charablock { |
|||
display:inline-block; |
|||
width:0.5em; |
|||
height: 1em; |
|||
vertical-align: middle; |
|||
margin-right: 0.5em; |
|||
} |
|||
/* charinsert扩展 */ |
|||
span.mw-charinsert-item { |
|||
cursor: pointer; |
|||
color: #0645ad; |
|||
} |
|||
span.mw-charinsert-item:hover { |
|||
text-decoration: underline; |
|||
} |
|||
/* cite扩展 */ |
|||
.skin-minerva .mw-references-wrap + ol { |
|||
margin-top: 10px; |
|||
} |
|||
/* 提前加載tabs擴展部分css */ |
|||
.tabs-input, body:not(oldbrowser) .tabs-content { |
|||
display: none; |
|||
} |
|||
.tabs-label { |
|||
padding: 1px 6px; |
|||
background-color: #DDD; |
|||
border: 1px solid #AAA; |
|||
} |
|||
.tabs-tabbox > .tabs-label { |
|||
display: inline-block; |
|||
} |
|||
.tabs-plain > .tabs-label { |
|||
border-radius: 8px; |
|||
margin: 2px; |
|||
} |
|||
.tabs-input-0:checked + .tabs-input-1 + .tabs-label { |
|||
background-color: #FFF; |
|||
} |
|||
.tabs-plain > .tabs-container { |
|||
border: none; |
|||
padding: 0; |
|||
margin-top: 1px; |
|||
} |
|||
/* 用于模板的css类 */ |
|||
#mw-mobile-noteTA > img { |
|||
width:35px; |
|||
height:auto; |
|||
} |
|||
/* 信息框模板 */ |
|||
table.infoboxtemplate { |
|||
float:right; |
|||
width:280px; |
|||
padding:1px; |
|||
font-size:small; |
|||
text-align:center; |
|||
box-sizing:border-box; |
|||
border-radius:5px; |
|||
background-color:#F3F5F7; |
|||
border:1px solid #D4DBE2; |
|||
margin-left:20px; |
|||
} |
|||
.skin-minerva .infoboxtemplate { |
|||
display:table; |
|||
border-collapse: separate; |
|||
} |
|||
.infoboxtemplate > tbody > tr:first-child { |
|||
font-size:15px; |
|||
} |
|||
.infoboxtemplate th:only-child { |
|||
padding:3px; |
|||
color:white; |
|||
border-radius:5px; |
|||
} |
|||
.infoboxtemplate table tr:first-child a { |
|||
font-weight:normal; |
|||
} |
|||
.infoboxtemplate td, .infoboxtemplate th { |
|||
min-width:6em; |
|||
} |
|||
.skin-minerva .infoboxtemplate table { |
|||
display:table; |
|||
margin:0; |
|||
} |
|||
.infoboxtemplate > tbody > tr:nth-child(2) img, |
|||
.infoboxtemplate > tbody > tr:nth-child(2) .lazy-image-placeholder { |
|||
width:270px; |
|||
height:auto; |
|||
} |
|||
.infoboxtemplate .tabs-tabbox { |
|||
margin:0; |
|||
} |
|||
.infoboxtemplate .tabs-tabbox.tabs-plain .tabs-label { |
|||
margin-left:2px; |
|||
} |
|||
/* 時間 */ |
|||
.countdown-num { |
|||
display:inline-block; |
|||
width:2.1ch; |
|||
text-align:right; |
|||
text-decoration:inherit; |
|||
} |
|||
/* 提示信息,如消歧义等 */ |
|||
.notice { |
|||
text-align: justify; |
|||
margin: 5px 1em; |
|||
padding: 0.2em; |
|||
font-size:small; |
|||
} |
|||
@media only screen and (min-width:720px) { |
|||
.notice-top { |
|||
width:calc(100% - 300px - 2em); |
|||
display:inline-block; |
|||
margin-right:0; |
|||
} |
|||
} |
|||
/* 用戶框 */ |
|||
.userbox { |
|||
float:left; |
|||
border-collapse:collapse; |
|||
border-spacing:0; |
|||
} |
|||
.skin-minerva .userbox { |
|||
margin:0; |
|||
} |
|||
.userbox tr { |
|||
height:72px; |
|||
} |
|||
.userbox th:nth-of-type(2) { |
|||
width:148px; |
|||
min-width:148px; |
|||
} |
|||
/* doc */ |
|||
.documentation .edit-page { |
|||
display:none; |
|||
} |
|||
.documentation code, .documentation .template-code, |
|||
.documentation pre, .documentation .template-pre { |
|||
background-color:#f8f9fa; |
|||
} |
|||
/* 提示信息 */ |
|||
table.infobox { |
|||
clear:both; |
|||
border:1px solid #D4DBE2; |
|||
border-radius:5px; |
|||
border-left:15px solid; |
|||
box-sizing:border-box; |
|||
margin:5px auto; |
|||
text-align:center; |
|||
} |
|||
.skin-minerva .infobox { |
|||
display:table; |
|||
border-collapse:separate; |
|||
} |
|||
.infobox td:last-child { |
|||
padding-left:5px; |
|||
text-align:left; |
|||
} |
|||
.song-table, .comic-table { |
|||
text-align:center; |
|||
} |
|||
.song-table img, .song-table .lazy-image-placeholder, |
|||
.comic-table img, .comic-table .lazy-image-placeholder { |
|||
min-width:50px; |
|||
} |
|||
.song-table .memberlink { |
|||
display:inline-block; |
|||
} |
|||
.specialrow { |
|||
color:#989898; |
|||
} |
|||
.comic-table tr:not(.specialrow) td:nth-last-child(3) { |
|||
word-break:break-all; |
|||
} |
|||
/* tracklist和stories */ |
|||
.tracklist { |
|||
text-align:left; |
|||
margin:0; |
|||
padding:4px; |
|||
} |
|||
.tracklist tr:nth-child(even) { |
|||
background-color:#eee; |
|||
} |
|||
.tracklist tr:nth-child(odd) { |
|||
background-color:#fff; |
|||
} |
|||
.skin-minerva .tracklist tr:nth-child(odd) { |
|||
background-color:#f8f8f8; |
|||
} |
|||
.tracklist th, .tracklist td, |
|||
/* to overwrite "wikitable" on mobile */ |
|||
.tracklist td:first-child { |
|||
padding:0.2em 0.4em; |
|||
} |
|||
.tracklist th { |
|||
text-align:center; |
|||
} |
|||
.tracklist tr:nth-child(2) > th { |
|||
white-space:nowrap; |
|||
} |
|||
.tracklist td:first-child, .tracklist-length td:last-child { |
|||
text-align:right; |
|||
} |
|||
.story td:first-child { |
|||
white-space:nowrap; |
|||
width:0; |
|||
} |
|||
.wikitable.tracklist tr:hover { |
|||
background-color: #b3d4fc; |
|||
} |
|||
.story-icon img, .story-icon .lazy-image-placeholder { |
|||
width:20px !important; |
|||
height:auto !important; |
|||
} |
|||
/* 广播节目表 */ |
|||
.radio-list { |
|||
font-size:small; |
|||
text-align:center; |
|||
} |
|||
.radio-list td:nth-child(-n+2) { |
|||
text-align:right; |
|||
} |
|||
.radio-with-comment td:last-child { |
|||
text-align:left; |
|||
} |
|||
/* URL連結 */ |
|||
.video-link { |
|||
text-align:center; |
|||
} |
|||
.video-link, code, pre, .template-code, .template-pre { |
|||
font-family: 'Menlo','Consolas','Liberation Mono','Courier New',sans-serif; |
|||
} |
|||
/* 表格中的NaN */ |
|||
.wikitable .table-none { |
|||
border: none; |
|||
background-color: #e5e7e9; |
|||
} |
|||
.skin-minerva .wikitable tr:last-child > .table-none { |
|||
border-bottom: 1px solid rgba(84,89,93,0.3); |
|||
} |
|||
.skin-minerva .wikitable .table-none:last-child { |
|||
border-right: 1px solid rgba(84,89,93,0.3); |
|||
} |
|||
/* 演唱會歌單 */ |
|||
.concert-list { |
|||
border-collapse: collapse; |
|||
border: 2px solid #eaedf0; |
|||
background-color: #f2f4f6; |
|||
color: #7a7c7e; |
|||
text-align: center; |
|||
overflow: auto; |
|||
} |
|||
.concert-list tr:nth-child(2) { |
|||
color: #fff; |
|||
} |
|||
.concert-list tr:nth-child(even) { |
|||
background-color: #fbfdff; |
|||
} |
|||
.skin-minerva .concert-list { |
|||
display: table; |
|||
} |
|||
@media only screen and (min-width:720px) { |
|||
.concert-list { |
|||
min-width:500px; |
|||
} |
|||
} |
|||
.skin-minerva .concert-list small { |
|||
font-size: small; |
font-size: small; |
||
} |
|||
.skin-minerva .concert-list .cvlink { |
|||
display: inline-block; |
|||
white-space: nowrap; |
|||
} |
|||
/* 標籤篩選 */ |
|||
.filter.mw-collapsed { |
|||
display: initial !important; |
|||
background-color: #ccc !important; |
|||
} |
|||
/* 卡面 */ |
|||
table.card-display { |
|||
border-collapse: collapse; |
|||
margin: 2px; |
|||
border-radius: 8px; |
|||
display:table; |
|||
width: auto !important; |
|||
} |
|||
.card-display > tbody > tr:first-child > th:first-child { |
|||
border-radius: 8px 0 0 8px; |
|||
color: white; |
|||
padding: 0 1em; |
|||
} |
|||
.card-display > tbody > tr:first-child > th:nth-child(2) { |
|||
text-align:right; |
|||
padding-left: 0.5em; |
|||
} |
|||
.card-display > tbody > tr:first-child > th:last-child { |
|||
text-align:left; |
|||
padding-right: 0.5em; |
|||
} |
|||
.card-display > tbody > tr:nth-child(3) { |
|||
color: white; |
|||
} |
|||
.card-display.mw-collapsed > tbody > tr:not(:first-child) { |
|||
display: none; |
|||
} |
|||
@media only screen and (max-width:720px) { |
|||
.card-display:not(.mw-collapsed) > tbody > tr:first-child > th:first-child { |
|||
padding:0.2em; |
|||
width:1.8em; |
|||
} |
|||
} |
|||
.card-display table { |
|||
margin: 0; |
|||
border-collapse: collapse; |
|||
font-size: small; |
|||
width: 100%; |
|||
height: 100%; |
|||
display:table; |
|||
} |
|||
.card-display table td { |
|||
padding:0 5px; |
|||
} |
|||
/* 歌词 */ |
|||
.lyrics-info { |
|||
display:flow-root; |
|||
border:1px solid; |
|||
margin:2px auto 1em auto; |
|||
padding:2px 10px; |
|||
text-align:center; |
|||
font-size:small; |
|||
font-weight:bold; |
|||
max-width:1080px; |
|||
} |
} |
||
/* pt表 */ |
/* pt表 */ |
||
第469行: | 第85行: | ||
height: 32px !important; |
height: 32px !important; |
||
} |
} |
||
/* 模板代码,这与CodeMirror小工具无关 */ |
|||
/* AS歌曲 */ |
|||
code.wiki-highlight { |
|||
table.as-song { |
|||
display: |
display: block; |
||
border-collapse:collapse; |
|||
font-size:small; |
|||
text-align:center; |
|||
margin:2px; |
|||
float:left; |
|||
} |
|||
.as-song tr:not(:first-child) { |
|||
white-space:nowrap; |
|||
} |
|||
.as-song tr { |
|||
height:32px; |
|||
} |
|||
.as-song tr:first-child, .as-song tr:last-child { |
|||
height:auto; |
|||
} |
|||
.as-song img { |
|||
min-width:1.2em; |
|||
} |
|||
.as-song tr:nth-child(2) img, |
|||
.as-song tr:nth-child(2) .lazy-image-placeholder { |
|||
width:160px !important; |
|||
height:auto !important; |
|||
} |
|||
/* code和pre */ |
|||
.skin-minerva .template-code { |
|||
padding: 0.2em 0.5em; |
|||
border: solid 1px #c8ccd1; |
|||
white-space: pre-wrap; |
white-space: pre-wrap; |
||
} |
} |
||
/* 大图 */ |
|||
.skin-minerva .template-pre { |
|||
.big-img { |
|||
padding: 1em; |
|||
max-width: 100%; |
|||
border: solid 1px #c8ccd1; |
|||
height: auto; |
|||
white-space: pre-wrap; |
|||
word-wrap: break-word; |
|||
} |
} |
||
.skin-minerva .template-pre p { |
|||
/* 3. 模块、扩展和小工具 */ |
|||
margin: -1.6em 0; |
|||
/* 時間 */ |
|||
.countdown-num { |
|||
display: inline-block; |
|||
width: 2.1ch; |
|||
text-align: right; |
|||
text-decoration: inherit; |
|||
} |
} |
||
/* |
/* popup的默认样式 */ |
||
.mw-tipsy .oo-ui-popupWidget-body-padded { |
|||
.template-image { |
|||
margin: 1px 3px; |
|||
display:inline-block; |
|||
font-size: small; |
|||
vertical-align:middle; |
|||
text-align: center; |
|||
overflow:hidden; |
|||
} |
} |
||
/* 下拉菜单的默认样式 */ |
|||
.template-image a > img, .template-image a > .lazy-image-placeholder { |
|||
.site-menu { |
|||
max-width:unset !important; |
|||
width: auto; |
|||
} |
} |
||
.site-menu > .oo-ui-menuOptionWidget { |
|||
/* 遊戲消息 */ |
|||
padding: 5px 10px; |
|||
table.sif-notice, table.as-notice { |
|||
display:inline-table; |
|||
vertical-align:top; |
|||
margin:5px; |
|||
border-collapse:separate; |
|||
border-spacing:0; |
|||
border-radius:8px; |
|||
overflow:hidden; |
|||
} |
} |
||
.site-menu .fa { |
|||
table.sif-notice { |
|||
width: 25px; |
|||
border:1px solid #9FDFC7; |
|||
color:#164130; |
|||
} |
} |
||
/* 禁止使用InPageEdit快速重定向 */ |
|||
table.as-notice { |
|||
.in-page-edit.quick-redirect .okBtn, .in-page-edit.quick-rename #ssi-rightButtons { |
|||
border:1px solid #FFA3BC; |
|||
display: none; |
|||
color:#470013; |
|||
} |
|||
@media only screen and (max-width:720px) { |
|||
table.sif-notice, table.as-notice { |
|||
min-width:100%; |
|||
} |
|||
} |
|||
.sif-notice tr:nth-child(1), .as-notice tr:nth-child(1) { |
|||
color:white; |
|||
padding:3px; |
|||
font-size:large; |
|||
} |
|||
.sif-notice tr:nth-child(odd) { |
|||
background-color:#E0F5ED |
|||
} |
|||
.as-notice tr:nth-child(odd) { |
|||
background-color:#FFE5EC |
|||
} |
|||
.sif-notice td, .as-notice td { |
|||
padding:1px 0.5em; |
|||
} |
|||
table.sif-notice ul, table.as-notice ul { |
|||
padding-left:0; |
|||
margin-left:1.1em; |
|||
} |
|||
.game-item img, .game-item .lazy-image-placeholder { |
|||
width:1.2em !important; |
|||
height:auto !important; |
|||
vertical-align:text-bottom; |
|||
} |
} |
||
/*</nowiki>*/ |
2022年1月30日 (日) 01:08的最新版本
/*<nowiki>*/ /* 这里是桌面版和手机版共用的样式,另外用于模板的样式参见[[mediawiki:gadget-templates-styles.css]] */ /* 1. 默认元素 */ .mw-parser-output > p:first-child:empty, .mw-parser-output > p:last-child:empty { display: none; } pre, textarea, .diff { -moz-tab-size: 4; tab-size: 4; } rt { font-size: 0.8em; } /* 英文字体优先 */ #mw-content-text, #catlinks { font-family: Helvetica, Arial, sans-serif; } /* 插入音频 */ audio { width: 270px; height: 24px; } .gallery audio { width: auto; /* Safari */ min-width: 100%; /* Chrome和Edge */ max-width: 100%; /* Firefox */ } #mw-category-media audio, .page-Special_新建文件 audio { transform: translateY(-50%); } #mw-category-media .thumb, .page-Special_新建文件 .thumb { height: 150px; } /* 特殊頁面的重新導向 */ .mw-changeslist-title.mw-redirect, .mw-contributions-title.mw-redirect, .mw-newpages-pagename.mw-redirect { font-style: italic; } /* 2. 自定义元素 */ /* 编辑请求 */ .editRequest > a { vertical-align: text-bottom; } /* 含大量文字的表格 */ .content-table { width: 100%; font-size: small; } /* pt表 */ .point-table { text-align:center; } .point-table tr:nth-child(odd) td:nth-child(odd), .point-table tr:nth-child(even) td:nth-child(even) { background-color:#fbfdff; } .point-table tr:nth-child(odd) td:nth-child(even), .point-table tr:nth-child(even) td:nth-child(odd) { background-color:#f2f4f6; } .point-table tr:first-child td:only-child { background-color:#77D2AF; color:white; } .point-table.wikitable tr th { background-color:#E8F8F2; } /* 活动列表 */ .event-list { text-align: center; font-size: small; } .skin-minerva .event-list th:nth-last-child(-n+2) { width: auto !important; } .skin-minerva .event-list td:nth-last-child(-n+2) { text-align: left; } .skin-minerva .event-list td:nth-last-child(-n+2) img, .skin-minerva .event-list td:nth-last-child(-n+2) .lazy-image-placeholder { width: 32px !important; height: 32px !important; } /* 模板代码,这与CodeMirror小工具无关 */ code.wiki-highlight { display: block; white-space: pre-wrap; } /* 大图 */ .big-img { max-width: 100%; height: auto; } /* 3. 模块、扩展和小工具 */ /* 時間 */ .countdown-num { display: inline-block; width: 2.1ch; text-align: right; text-decoration: inherit; } /* popup的默认样式 */ .mw-tipsy .oo-ui-popupWidget-body-padded { margin: 1px 3px; font-size: small; text-align: center; } /* 下拉菜单的默认样式 */ .site-menu { width: auto; } .site-menu > .oo-ui-menuOptionWidget { padding: 5px 10px; } .site-menu .fa { width: 25px; } /* 禁止使用InPageEdit快速重定向 */ .in-page-edit.quick-redirect .okBtn, .in-page-edit.quick-rename #ssi-rightButtons { display: none; } /*</nowiki>*/