MediaWiki:Common.css:修订间差异
外观
第1行: | 第1行: | ||
/* WIKI背景图 */ | |||
body { | |||
background:url("https://z3.ax1x.com/2021/10/16/5JkPQf.jpg") no-repeat fixed 50% 0; | |||
background-size:cover; | |||
} | } | ||
/* 模板来自MCBBS Wiki */ | /* 模板来自MCBBS Wiki */ | ||
/* info类模板 */ | /* info类模板 */ |
2021年10月16日 (六) 09:05的版本
/* WIKI背景图 */ body { background:url("https://z3.ax1x.com/2021/10/16/5JkPQf.jpg") no-repeat fixed 50% 0; background-size:cover; } /* 模板来自MCBBS Wiki */ /* info类模板 */ .infoBox { margin: 0 auto; } .infoBoxTitle { margin: 3px auto; padding: 0; text-align: center; font-weight: 700; } .infoBoxIcon { display: table-cell; padding: 2px 0 2px .5em; vertical-align: middle; } .infoBoxText { display: table-cell; padding: .25em .5em .25em 1.3em; width: 100%; vertical-align: middle; } .infoBoxContent { border: 1px solid #ddd; border-left-width: 0; background: #fbfbfb; } .infoBoxBelow { margin: 0 auto; padding: 0; text-align: center; } /* 顶部轮播文字 */ .topsign{ position: relative; width: 100%; height: 65px; overflow: hidden; } .topsign .topsignitem{ position: absolute; left: 0; top: 0; width: 100%; height: auto; } .topsign .topsignitem p{ line-height: 50px; text-align: center; } /* 页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板) */ table.navbox { border: 1px solid #aaa; clear: both; margin: auto; padding: 1px; text-align: center; width: 100%; } table.navbox+table.navbox { margin-top: -1px; } .navbox-title, .navbox-abovebelow, table.navbox th { padding-left: 1em; padding-right: 1em; text-align: center; } .navbox-group { font-weight: 700; padding-left: 1em; padding-right: 1em; white-space: nowrap; } .navbox, .navbox-subgroup { background: none repeat scroll 0 0 #fdfdfd; } .navbox-list { border-color: #fdfdfd; } .navbox-title, table.navbox th { background: none repeat scroll 0 0 #a5e4a5; } .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { background: none repeat scroll 0 0 #c0ecc0; } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: none repeat scroll 0 0 #e6f6e6; } .navbox-even { background: none repeat scroll 0 0 #FDF6E6; } .navbox-odd { background: none repeat scroll 0 0 transparent; } .collapseButton { float: right; font-weight: 400; text-align: right; width: auto; } .navbox .collapseButton { width: 6em; } /* Fix by case : Rev 1327309 ([[Special:Permalink/1327309]]) Address alignment issue of nested tabs in Navbox */ .navbox .TabLabel { text-align: left; } /* 编辑工具栏 */ a[data-mw-charinsert-start] { display: inline-block!important; border: #0645ad 1px solid!important; padding: 1px 5px; } /* 网页特效 */ .saturation0 { /*黑白*/ -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: gray(100%); -o-filter: grayscale(100%); filter: grayscale(100%); } /* 黑幕:一块黑色区域,鼠标移入后显示内容 使用方法:将heimu类附加到你想实现黑幕的元素上 彩色黑幕:将元素的--heimu变量变为你想要的颜色 */ .heimu { transition: all .3s; background: var(--heimu); color: var(--heimu); } .heimu:not(:hover) > *, .heimu:not(:hover) a, .heimu:not(:hover) span { /*同时隐藏带自颜色的文字*/ background: var(--heimu) !important; color: var(--heimu) !important; } .heimu:hover { /*黑幕,鼠标移入后文字背景透明*/ background: transparent; }