LLWiki正在建设中,欢迎加入我们

MediaWiki:Gadget-site-styles.css

来自LLWiki
Bhsd讨论 | 贡献2021年2月4日 (四) 02:52的版本
跳转到导航 跳转到搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/* 这里放置的移动版网站的CSS样式将比mobile.css中的样式加载更快 */

/* 全局css */
#mw-content-text {
	font-family:Arial, Helvetica, sans-serif;
}

.mw-rcfilters-ui-rclToOrFromWidget.oo-ui-dropdownWidget.oo-ui-widget-enabled span.oo-ui-dropdownWidget-handle {
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	background-color: #fff;
}
.skin-minerva .mw-changeslist .comment {
	padding: 0;
	line-height: inherit;
}
audio {
	width: 270px;
	height: 24px;
}
/* 表格外容器 */
@media only screen and (max-width:720px) {
	.skin-minerva .table-wrapper {
		overflow-x: auto;
	}
}
/* 含大量文字的表格 */
.content-table {
	width:100%;
	font-size:small;
}
/* error message */
.error {
	color:#d33;
	font-size:larger;
}
/* 外链过长 */
.skin-minerva a.external {
	word-break:break-all;
}
/* 近期變更和使用者貢獻頁面的重新導向 */
.mw-changeslist-title.mw-redirect,
.mw-contributions-title.mw-redirect,
.mw-newpages-pagename.mw-redirect {
	font-style:italic;
}
/* 编辑请求 */
.editRequest > a {
	vertical-align:text-bottom;
}
/* 模板代码 */
code.wiki-highlight {
	display: block;
	white-space: pre-wrap;
}
/* 移动版logo */
.branding-box {
	height: 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;
}

/* popup的默认样式 */
.mw-tipsy .oo-ui-popupWidget-body-padded {
	margin: 1px 3px;
	font-size: small;
	text-align: center;
}

/* 用于模板的css类 */
.cdpic {
	display: inline-block;
	position: relative;
	min-width: 50px;
	min-height: 50px;
}
.cdpic > .new::before {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url("/mediawiki/img_auth.php/9/94/Nowprinting.png");
	background-size: contain;
}
#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;
}
.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;
}
.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表 */
.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;
}
/* AS歌曲 */
table.as-song {
	display:table;
	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;
}
.skin-minerva .template-pre {
	padding: 1em;
	border: solid 1px #c8ccd1;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.skin-minerva .template-pre p {
	margin: -1.6em 0;
}
/* image模板 */
.template-image {
	display:inline-block;
	vertical-align:middle;
	overflow:hidden;
}
.template-image a > img, .template-image a > .lazy-image-placeholder {
	max-width:unset !important;
}
/* 遊戲消息 */
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;
}
table.sif-notice {
	border:1px solid #9FDFC7;
	color:#164130;
}
table.as-notice {
	border:1px solid #FFA3BC;
	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;
}