Bwiki++ | 哔哩哔哩百科美化
Bwiki++ by xiaofeitm233
Details
Authorxiaofeitm233
Licensemit
Categorybilibili
Created
Updated
Size18 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Bwiki++ | B站百科美化
这是一个给Bwiki美化的CSS,但仅为符合自己需求所写
实装在坎公骑冠剑Bwiki中,可在小工具中开启
如有问题,欢迎提交Issues!
安装
请先在浏览器安装
Stylus
插件,如步奏一
- 安装方式
- Chrome&Edge 极简插件(荐), 谷歌商店(被墙)
- Firefox 火狐商店
- 其他 www.baidu.com/s?wd=stylus
Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name Bwiki++
@namespace bwiki-plus-plus
@version 1.14+20240530
@description Bwiki++
@author 飞小RAN <xiaofeiTM233@vip.qq.com> (https://hitfun.top)
@homepageURL https://github.com/xiaofeiTM233/biligame-wiki-plus-plus
@supportURL https://github.com/xiaofeiTM233/biligame-wiki-plus-plus/issues
@license MIT
auto
@advanced dropdown IMG_SZ "图片缩放方式" {
AUTO "【默认】默认" <<<EOT
EOT;
PIXELATED "邻近(对像素友好)" <<<EOT
img {
image-rendering: pixelated!important;
}
EOT;
}
@advanced dropdown EDIT_FONTS "编辑器字体" {
MONOSPACE "【默认】monospace" <<<EOT
pre.CodeMirror-line,
.wikiEditor-ui .ace_editor {
font-family: monospace,monospace!important;
font-size: 13px!important;
}
EOT;
CONSOLAS "【舒适】consolas" <<<EOT
pre.CodeMirror-line,
.wikiEditor-ui .ace_editor {
font-family: consolas!important;
font-size: 14px!important;
}
EOT;
}
@advanced dropdown IPE "IPE“快速编辑”" {
TEXT "文字" <<<EOT
EOT;
ICON "图标" <<<EOT
.in-page-edit-article-link-group:before,
.in-page-edit-article-link-group:after{
content: ''!important;
font-weight: normal!important;
}
.in-page-edit-article-link {
font-size: 0!important;
font-weight: 400!important;
text-decoration: none!important;
}
.in-page-edit-article-link:hover:before{
color: #23527c;
text-decoration: underline!important;
}
.in-page-edit-article-link:before {
color: #36b;
content: '「↺」'!important;
font-size: 15px!important;
}
EOT;
}
==/UserStyle== */
@-moz-document url-prefix("https://wiki.biligame.com"),
url-prefix("https://searchwiki.biligame.com") {
/*全局修改*/
/*顶栏修改*/
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2 .wiki-menu-li-2 {
background: transparent;
text-align: left;
text-indent: 12px;
height: 36px;
line-height: 36px;
}
.menu-wrap .wiki-menu-li-1.title_active a,
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2 .wiki-menu-li-2,
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2 .wiki-menu-li-2 .wiki-menu-ul-3 .wiki-menu-li-3,
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3 {
color: #fff;
}
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2 .wiki-menu-li-2.li_active a,
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2 .wiki-menu-li-2:hover a,
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3:hover a {
color: #fff;
text-decoration-line: none;
}
.vectorMenu li a:hover,
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2 .wiki-menu-li-2.li_active,
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3:hover {
background-color: rgb(25, 95, 128);
}
.vectorMenu .menu,
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2,
/*.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3,*/
.menu-wrap .wiki-menu-li-1.title_active,
.wiki-hoverbox .wiki-hoverbox-inner,
.wiki-hoverbox .wiki-hoverbox-inner::-webkit-scrollbar-track {
background-color: #111219d9;
}
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3 {
background-color: transparent;
}
.vectorMenu li a,
.vectorMenu li a:hover,
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3 {
color: rgb(255 255 255 / 85%);
height: 36px;
line-height: 36px;
}
.menu-wrap .wiki-menu-li-1 {
border-radius: 0;
background: #fff0;
}
.wiki-hoverbox .wiki-hoverbox-inner {
overflow-y: hidden;
overflow-x: hidden;
margin-left: 24px;
border-left: 0;
}
/*不知道为什么sbwiki后端写了两个hoverbox只修一个吧*/
body > .wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3 {
display: block;
}
/*显示页面分类*/
body .catlinks {
border-radius: 14px;
display: block!important;
border: 1px solid #0077ff;
}
/*审核提示修改*/
.usermessage,
.warningbox {
border-radius: 14px;
border: 1px solid #fc2;
}
.usermessage a {
margin-left: 0.5em;
color: #36b!important;
}
/*评论框修改*/
.comment-body textarea,
.comment-submit {
border-radius: 14px;
background: #f8f9fa;
}
.comment-toolbar {
background: none;
}
.comment-submit {
background: #00a1d6;
color: #fff;
text-shadow: none;
font-weight: normal;
font-size: 114.514%
}
.comments-title {
font-size: 114.514%
}
/*不建议使用可视化编辑器*/
.oo-ui-messageDialog-actions-horizontal > span:nth-child(1) span.oo-ui-labelElement-label {
font-weight: normal;
}
.oo-ui-messageDialog-actions-horizontal > span:nth-child(1) span.oo-ui-labelElement-label:after {
content: "(不建议)";
color: red;
font-weight: bold;
}
/*最近更改页顶首增加高度*/
.page-特殊_最近更改 .mw-rcfilters-ui-changesListWrapperWidget {
margin-top: 2em;
}
#toc {
width: auto;
}
/*最近更改*/
.mw-changeslist table.mw-changeslist-line:hover {
background-color: #66f66866
}
a.mw-userlink {
color: #2a4b8d!important;
}
a.mw-userlink:active {
color: #faa700!important;
}
a.mw-userlink:visited {
color: #795cb2!important;
}
a.mw-userlink.new {
color: #a55858!important;
}
/*红链后置提示*/
.mw-parser-output a.new:after {
content: "\f127";
font: normal normal normal 14px/1 FontAwesome;
zoom: 0.6;
padding-left: 3px;
vertical-align: 6px;
color: #f00
}
.mw-parser-output a.new:hover:after {
vertical-align: 5px
}
/*看板娘*/
.animechara,
/*关于本站*/
.about-site,
/*全站通知*/
#siteNotice,
/*隐藏首页标题*/
.page-首页 #firstHeading,
.page-首页 .firstHeading,
.page-首页 #biliContributors,
.page-首页 .biliContributors,
.page-首页 #firstHeadingTools,
.page-首页 .firstHeadingTools,
/*右下角工具栏*/
#menur,
/*b站顶底栏*/
body > div.visible-md-block.visible-lg-block:nth-child(1),
.bili-game-header-nav,
.bili-game-header-nav-bar,
.bui-sns-info.hidden-xs,
.footer-public,
/*SmartClick*/
#alert-area,
/*移除可视化编辑按钮*/
#ca-ve-edit,
.mw-editsection .mw-editsection-visualeditor,
.mw-editsection .mw-editsection-divider,
/*右上角帮助*/
.mw-indicators,
/*最近更改筛选器及缩写列表*/
.client-js .mw-rcfilters-head,
.mw-changeslist-legend,
/*预览颜色*/
#preview-color {
display: none!important
}
/*隐藏表格不可排序时的排序按钮*/
.client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable),
/*隐藏表格未排序时的排序按钮*/
.jquery-tablesorter th.headerSort {
background-image: url(none);
padding-right: 0;
padding-left: 0;
}
/*编辑器位置矫正*/
.wikiEditor-ui {
padding-top: 1.14514em;
}
/*IPE*/
.in-page-edit .ssi-topIcons .ssi-closeIcon {
padding: 0!important;
}
/*[[IPE]]*/
/*编辑器字体*/
/*[[EDIT_FONTS]]*/
}
@-moz-document url-prefix("https://wiki.biligame.com/gt/"),
url-prefix("https://searchwiki.biligame.com/gt/") {
/*特别修改~~坎公骑冠剑wiki*/
/*去除飞行小公主*/
.FLY,
.FLY.rX,
.FLY.rY,
.FLY.rZ {
display: none!important
}
/*白色透明顶栏*/
.wiki-header .wiki-nav {
border-top: 1px solid #000;
margin-left: auto;
border-radius: 15px;
margin-right: auto;
background: #ffffff69;
border: 0px solid #ffffff4a;
}
.wiki-header .wiki-nav-celling {
background: rgba(245, 245, 245, 0.9);
}
.wiki-header .wiki-nav-celling .celling-box {
border-bottom: 1px solid #0000;
}
.menu-wrap .wiki-menu-li-1 > a,
.vectorMenu h3 span {
color: rgba(0, 0, 0, .85);
}
/*面包屑模板显示页面时间*/
.bread-time,
/*编辑摘要展示更多内容*/
.mw-summary-preset-item,
/*文章来源展示*/
.word-from {
display: initial!important;
}
}
@-moz-document url-prefix("https://wiki.biligame.com/arknights/"),
url-prefix("https://searchwiki.biligame.com/arknights/") {
/*特别修改~~明日方舟wiki*/
/*明日方舟bwiki这破东西谁都救不了*/
/*顶部白底变透明*/
.wiki-header {
background: #fff0;
}
}
@-moz-document url-prefix("https://wiki.biligame.com/syyjsn/"),
url-prefix("https://searchwiki.biligame.com/syyjsn/") {
/*特别修改~~明日方舟wiki*/
.mw-rcfilters-ui-changesListWrapperWidget {
display: block!important;
}
}
@-moz-document url-prefix("https://wiki.biligame.com"),
url-prefix("https://searchwiki.biligame.com"),
url-prefix("https://i0.hdslb.com/bfs/article") {
/*图片修改*/
/*[[IMG_SZ]]*/
/*编辑器高亮*/
/*取自旧版本CodeMirror*/
.mediawiki .mw-editfont-monospace .CodeMirror,
.mediawiki .mw-editfont-sans-serif .CodeMirror,
.mediawiki .mw-editfont-serif .CodeMirror {
font-family: inherit
}
.mediawiki .wikiEditor-ui .CodeMirror {
line-height: 1.5em;
padding: 0.1em;
clear: both
}
.mediawiki .wikiEditor-ui .CodeMirror pre,
.mediawiki .wikiEditor-ui .CodeMirror .CodeMirror-lines {
padding: 0
}
.mediawiki .wikiEditor-ui-toolbar {
z-index: 7
}
.mediawiki .cm-mw-pagename {
text-decoration: underline
}
.mediawiki .cm-mw-matching {
background-color: #ffd700
}
.mediawiki .cm-mw-skipformatting {
background-color: #adf
}
.mediawiki .cm-mw-list {
color: #08f;
font-weight: bold
}
.mediawiki .cm-mw-doubleUnderscore,
.mediawiki .cm-mw-signature,
.mediawiki .cm-mw-hr {
color: #08f;
font-weight: bold;
background-color: #eee
}
.mediawiki .cm-mw-indenting {
color: #08f;
font-weight: bold
}
.mediawiki .cm-mw-mnemonic {
color: #290
}
.mediawiki .cm-mw-comment {
color: #84a0a0;
font-weight: normal
}
.mediawiki .cm-mw-apostrophes-bold,
.mediawiki .cm-mw-apostrophes-italic {
color: #08f
}
.mediawiki pre.CodeMirror-line.cm-mw-section-1,
pre.CodeMirror-line-like.cm-mw-section-1 {
font-size: 1.8em;
line-height: 1.2em
}
.mediawiki pre.CodeMirror-line.cm-mw-section-2,
pre.CodeMirror-line-like.cm-mw-section-2 {
font-size: 1.5em;
line-height: 1.2em
}
.mediawiki pre.CodeMirror-line.cm-mw-section-3,
pre.CodeMirror-line-like.cm-mw-section-3 {
font-weight: bold
}
.mediawiki pre.CodeMirror-line.cm-mw-section-4,
pre.CodeMirror-line-like.cm-mw-section-4 {
font-weight: bold
}
.mediawiki pre.CodeMirror-line.cm-mw-section-5,
pre.CodeMirror-line-like.cm-mw-section-5 {
font-weight: bold
}
.mediawiki pre.CodeMirror-line.cm-mw-section-6,
pre.CodeMirror-line-like.cm-mw-section-6 {
font-weight: bold
}
.mediawiki .cm-mw-section-header {
color: #08f;
font-weight: normal
}
.mediawiki .cm-mw-template {
color: #80c;
font-weight: normal
}
.mediawiki .cm-mw-template-name {
color: #80c;
font-weight: bold
}
.mediawiki .cm-mw-template-name-mnemonic {
font-weight: normal
}
.mediawiki .cm-mw-template-argument-name {
color: #80c;
font-weight: bold
}
.mediawiki .cm-mw-template-delimiter {
color: #80c;
font-weight: bold
}
.mediawiki .cm-mw-template-bracket {
color: #80c;
font-weight: bold
}
.mediawiki .cm-mw-templatevariable {
color: #f5...