|
|
| (未显示2个用户的13个中间版本) |
| 第3行: |
第3行: |
| /* 今版源代码:https://github.com/mcbbs-wiki/mcbbs-wiki-widget-repo */ | | /* 今版源代码:https://github.com/mcbbs-wiki/mcbbs-wiki-widget-repo */ |
| :root { | | :root { |
| --theme-color: #a8cdff;
| |
| --theme-bg-img: url(//mcbbs.wiki/salt/summer/body_bg.jpg);
| |
| --theme-topbar-img: url(//mcbbs.wiki/salt/summer/top_bg.png);
| |
| /*左上图片*/
| |
| --book-border-left-top: url(//mcbbs.wiki/salt/book/left-top.png);
| |
| /*上方图片*/
| |
| --book-border-top: url(//mcbbs.wiki/salt/book/top.png);
| |
| /*右上图片*/
| |
| --book-border-right-top: url(//mcbbs.wiki/salt/book/right-top.png);
| |
| /*左侧图片*/
| |
| --book-border-left: url(//mcbbs.wiki/salt/book/left.png);
| |
| /*右侧图片*/
| |
| --book-border-right: url(//mcbbs.wiki/salt/book/right.png);
| |
| /*左下图片*/
| |
| --book-border-left-bottom: url(//mcbbs.wiki/salt/book/left-bottom.png);
| |
| /*下方图片*/
| |
| --book-border-bottom: url(//mcbbs.wiki/salt/book/bottom.png);
| |
| /*右下图片*/
| |
| --book-border-right-bottom: url(//mcbbs.wiki/salt/book/right-bottom.png);
| |
| --bgtop: 46px; | | --bgtop: 46px; |
| --bgleft: 20px; | | --bgleft: 20px; |
| 第30行: |
第11行: |
| --bgcolor3: #e9cb97; | | --bgcolor3: #e9cb97; |
| --linecolor: #cfb78e; | | --linecolor: #cfb78e; |
| --fontfamily: sans-serif, "Microsoft Yahei", apple color emoji, segoe ui emoji, | | --fontfamily: sans-serif, 'Microsoft Yahei', apple color emoji, segoe ui emoji, |
| segoe ui symbol; | | segoe ui symbol; |
| --fontfamily2: "Linux Libertine", "Georgia", "Times", serif, sans-serif, | | --fontfamily2: 'Linux Libertine', 'Georgia', 'Times', serif, sans-serif, |
| Tahoma; | | Tahoma; |
| --articlefont: Lora, "Palatino Linotype", "Book Antiqua", "New York", | | --articlefont: Lora, 'Palatino Linotype', 'Book Antiqua', 'New York', |
| "DejaVu serif", "Source Han Serif", "Source Han Serif SC"; | | 'DejaVu serif', 'Source Han Serif', 'Source Han Serif SC'; |
| --delete-linecolor: #ffe49c; | | --delete-linecolor: #ffe49c; |
| --add-linecolor: #a3d3ff; | | --add-linecolor: #a3d3ff; |
| --selection-color: lightblue; | | --selection-color: lightblue; |
| --selection-font-color: #000; | | --selection-font-color: #000; } |
| }
| | #catlinks, pre, table.wikitable, li.gallerybox div.thumb, .toc, .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend, .mw-warning, .toccolours, table.navbox { |
| | |
| /* 背景 */
| |
| body {
| |
| background: var(--theme-bg-img) 0 0 no-repeat var(--theme-color);
| |
| background-position: center;
| |
| background-attachment: fixed;
| |
| background-size: cover;
| |
| border-top: none;
| |
| font-family: var(--fontfamily);
| |
| }
| |
| body * {
| |
| border-color: var(--linecolor);
| |
| }
| |
| | |
| /* 左侧栏 */
| |
| #mw-panel .portal {
| |
| /*面板折叠相关样式功能*/
| |
| padding: 0.75rem 0 0 0;
| |
| margin: 0;
| |
| }
| |
| #mw-panel .portal:hover {
| |
| background-color: transparent;
| |
| }
| |
| #mw-panel .portal > h1,
| |
| #mw-panel .portal > h2,
| |
| #mw-panel .portal > h3,
| |
| #mw-panel .portal > h4,
| |
| #mw-panel .portal > h5,
| |
| #mw-panel .portal > h6 {
| |
| margin: 0;
| |
| padding: 0;
| |
| position: relative;
| |
| background-image: none;
| |
| font-size: 1rem;
| |
| line-height: 1.3rem;
| |
| cursor: pointer;
| |
| }
| |
| #mw-panel .portal > h1::after,
| |
| #mw-panel .portal > h2::after,
| |
| #mw-panel .portal > h3::after,
| |
| #mw-panel .portal > h4::after,
| |
| #mw-panel .portal > h5::after,
| |
| #mw-panel .portal > h6::after {
| |
| position: absolute;
| |
| bottom: 0;
| |
| right: 0;
| |
| opacity: 0;
| |
| font-size: 0.75rem;
| |
| line-height: 1.3rem;
| |
| transition: 0.3s ease;
| |
| }
| |
| #mw-panel .portal > h1:hover::after,
| |
| #mw-panel .portal > h2:hover::after,
| |
| #mw-panel .portal > h3:hover::after,
| |
| #mw-panel .portal > h4:hover::after,
| |
| #mw-panel .portal > h5:hover::after,
| |
| #mw-panel .portal > h6:hover::after {
| |
| opacity: 0.9;
| |
| } | |
| #mw-panel .portal .vector-menu-content {
| |
| padding-top: 0;
| |
| margin-left: 0;
| |
| border-top: 2px solid var(--linecolor) !important;
| |
| background-image: none;
| |
| transition: max-height 0.3s ease;
| |
| overflow: hidden;
| |
| }
| |
| #mw-panel .portal .vector-menu-content li {
| |
| padding: 0;
| |
| font-size: 0.9rem;
| |
| line-height: 1.2rem;
| |
| }
| |
| #mw-panel .portal .vector-menu-content li a {
| |
| width: 100%;
| |
| display: inline-block;
| |
| }
| |
| #mw-panel .portal.salt-close > h1::after,
| |
| #mw-panel .portal.salt-close > h2::after,
| |
| #mw-panel .portal.salt-close > h3::after,
| |
| #mw-panel .portal.salt-close > h4::after,
| |
| #mw-panel .portal.salt-close > h5::after,
| |
| #mw-panel .portal.salt-close > h6::after {
| |
| content: "点击展开";
| |
| }
| |
| #mw-panel .portal.salt-close .vector-menu-content {
| |
| max-height: 0px;
| |
| }
| |
| #mw-panel .portal.salt-open > h1::after,
| |
| #mw-panel .portal.salt-open > h2::after,
| |
| #mw-panel .portal.salt-open > h3::after,
| |
| #mw-panel .portal.salt-open > h4::after,
| |
| #mw-panel .portal.salt-open > h5::after,
| |
| #mw-panel .portal.salt-open > h6::after {
| |
| content: "点击收起";
| |
| }
| |
| #mw-panel .portal.salt-open .vector-menu-content {
| |
| max-height: var(--salt-open-height, 100vh);
| |
| }
| |
| | |
| /* 其他适配 */
| |
| #catlinks, | |
| pre, | |
| table.wikitable, | |
| li.gallerybox div.thumb, | |
| .toc, | |
| .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend, | |
| .mw-warning, | |
| .toccolours, | |
| table.navbox, | |
| #simpleSearch {
| |
| background-color: var(--lightcolor);
| |
| }
| |
| | |
| fieldset,
| |
| ul,
| |
| li,
| |
| a,
| |
| span,
| |
| em,
| |
| pre,
| |
| h1,
| |
| h2,
| |
| h3,
| |
| h4,
| |
| h5,
| |
| h6 {
| |
| border-color: var(--linecolor) !important;
| |
| }
| |
| | |
| h1,
| |
| h2,
| |
| h3,
| |
| h4,
| |
| h5,
| |
| h6 {
| |
| font-family: var(--fontfamily) !important;
| |
| }
| |
| | |
| #firstHeading {
| |
| margin-top: var(--bgtop);
| |
| }
| |
| | |
| .diff-deletedline {
| |
| border-color: var(--delete-linecolor) !important;
| |
| }
| |
| | |
| .diff-addedline {
| |
| border-color: var(--add-linecolor) !important;
| |
| }
| |
| | |
| #catlinks {
| |
| margin-bottom: 2px;
| |
| }
| |
| | |
| ::selection {
| |
| background: var(--selection-color);
| |
| color: var(--selection-font-color);
| |
| }
| |
| | |
| ::-moz-selection {
| |
| background: var(--selection-color);
| |
| color: var(--selection-font-color);
| |
| }
| |
| | |
| input,
| |
| select {
| |
| background-color: var(--lightcolor); | | background-color: var(--lightcolor); |
| border: 1px solid var(--linecolor);
| |
| } | | } |
|
| |
|
| body.mw-special-Preferences #siteNotice {
| | .skin-vector-legacy .ve-ui-toolbar-floating > .oo-ui-toolbar-bar { |
| display: none; | | top: 2.5rem; |
| } | | } |
|
| |
|
| .ve-active #bodyContent { | | .mw-category-group li { |
| background-color: #ffffff;
| | border-color: unset !important; |
| } | | } |
|
| |
| @import url(https://mcbbs.wiki/index.php?title=MediaWiki:Vector-Legacy-Book.css&action=raw&ctype=text/css);
| |
| @import url(https://mcbbs.wiki/index.php?title=MediaWiki:Vector-V4.css&action=raw&ctype=text/css);
| |