MediaWiki:Common.css
外观
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
#toc{ display: block; position: fixed; top: 100px; right: 0px; min-width: 100px; max-width: 350px; max-height: 20px; overflow-y: scroll; border: 1px solid #aaa; border-radius: 0 0 1px 1px; -moz-border-radius: 0 0 1px 1px; background: rgba(249,249,249,0.75); padding: 12px; box-shadow: 0 1px 8px #000; -webkit-box-shadow: 0 1px 8px #000; -moz-box-shadow: 0 1px 8px #000; } #toc:hover{ display: block; position: fixed; top: 100px; right: 0px; min-width: 100px; max-width: 350px; max-height: 500px; overflow-y: scroll; border: 1px solid #aaa; border-radius: 0 0 1px 1px; -moz-border-radius: 0 0 1px 1px; background: rgba(249,249,249,0.75); padding: 12px; box-shadow: 0 1px 8px #000; -webkit-box-shadow: 0 1px 8px #000; -moz-box-shadow: 0 1px 8px #000; } body { overflow-x: hidden;} /* 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; }