MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针。
如果在编辑的过程中遇到了什么问题,可以去讨论板提问。
为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证。
MCBBS Wiki GitHub群组已上线!
您可以在回声洞中发表吐槽!
服务器状态监控。点击进入
本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>
用户:Salt lovely/沙盒/皮肤测试:修订间差异
跳到导航
跳到搜索
Salt lovely(留言 | 贡献) (.) |
Salt lovely(留言 | 贡献) 小 (部分CSS变量名更改,如将--themebar改为--theme-topbar-img;选中区域的样式颜色改用css变量) |
||
{{CSS|1=
@charset "UTF-8";
/* 初版源代码:
/* 今版源代码:https://github.com/mcbbs-wiki/mcbbs-wiki-widget-repo */
:root {
--
--theme-bg-img: url(//mcbbs.wiki/salt/summer/body_bg.jpg);
--theme-topbar-img: url(//mcbbs.wiki/salt/summer/top_bg.png);
--bgtop: 46px;
--bgleft: 20px;
--bgcolor3: #e9cb97;
--linecolor: #cfb78e;
--fontfamily: sans-serif, "Microsoft Yahei", apple color emoji, segoe ui emoji,
--fontfamily2: "Linux Libertine", "Georgia", "Times", serif, sans-serif,
--articlefont: Lora, "Palatino Linotype", "Book Antiqua", "New York",
--delete-linecolor: #ffe49c;
--add-linecolor: #a3d3ff;
--selection-color: lightblue;
--selection-font-color: #000;
}
/* 背景 */
body {
background: var(--
background-position: center;
background-attachment: fixed;
background-size: cover;
border-top: none;
font-family: var(--fontfamily);
}
body * {
border-color: var(--linecolor);
top: 3rem;
padding: 0 1rem 0.5rem 1rem;
background-color:
border: 1px solid #ccc;
border-radius: 4px;
}
#mw-panel #p-logo {
width: 10rem;
margin-left: -1rem;
}
#mw-panel #p-logo a {
background-size: contain;
}
#mw-panel #p-logo + .portal {
margin-top: 0;
}
#mw-panel #p-logo + .portal .vector-menu-content {
margin-left: 0;
}
#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,
cursor: pointer;
}
#mw-panel .portal > h1::after,
#mw-panel .portal > h2::after,
transition: 0.3s ease;
}
#mw-panel .portal > h1:hover::after,
#mw-panel .portal > h2:hover::after,
opacity: 0.9;
}
#mw-panel .portal .vector-menu-content {
padding-top: 0;
overflow: hidden;
}
#mw-panel .portal .vector-menu-content li {
padding: 0;
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,
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,
content: "点击收起";
}
#mw-panel .portal.salt-open .vector-menu-content {
max-height: var(--salt-open-height, 100vh);
top: 0;
right: 0;
height:
padding: 0.5rem 1rem;
background-image: var(--
background-size: contain;
box-sizing: border-box;
opacity: 0.5;
font-size: 1rem;
transition
}
#p-personal:hover {
opacity: 1;
transition-delay: 0s;
}
#p-personal ul {
float: right;
}
#p-personal ul li {
height: 1rem;
line-height: 1rem;
}
#p-personal #pt-notifications-alert,▼
/*顶栏遮挡可视化编辑器*/▼
#p-personal #pt-notifications-notice {▼
margin-right: 0;▼
}▼
▲/* 顶部的信息栏遮挡可视化编辑器 */
.skin-vector .ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
top: 2.5rem;
#mw-head {
top: calc(
);
padding: 0 57px 0 69px;
width: calc(100% - 126px);
}
#mw-head #left-navigation,
#mw-head #right-navigation {
margin-top: 0rem;
}
#mw-head #left-navigation nav,
#mw-head #left-navigation div,
border-right: none;
}
#mw-head #left-navigation li:first-child,
#mw-head #right-navigation li:first-child {
border-left: 1px solid var(--linecolor);
}
#mw-head #left-navigation li:last-child,
#mw-head #right-navigation li:last-child {
border-right: 1px solid var(--linecolor);
}
#mw-head #left-navigation ul li,
#mw-head #right-navigation ul li {
background-image: linear-gradient(0deg, var(--linecolor) 0%, var(--bgcolor) 20%);
}
#mw-head #left-navigation ul li:hover,
#mw-head #right-navigation ul li:hover {
background-image: linear-gradient(0deg, var(--linecolor) 0%, var(--bgcolor) 12%);
}
#mw-head #left-navigation ul li a,
#mw-head #right-navigation ul li a {
text-align: center;
}
#mw-head #left-navigation ul li.icon a,
#mw-head #right-navigation ul li.icon a {
padding-top: 2.5rem;
}
#mw-head #left-navigation ul.menu li,
#mw-head #right-navigation ul.menu li {
background-image: linear-gradient(0deg, var(--linecolor) 0%, var(--bgcolor) 12%);
}
#mw-head #left-navigation ul.menu li:hover,
#mw-head #right-navigation ul.menu li:hover {
background-image: linear-gradient(0deg, var(--linecolor) 0%, var(--bgcolor) 6%);
}
#mw-head #p-cactions .menu li {
border: 1px solid var(--linecolor);
background-color: var(--lightcolor);
▲}
▲#p-personal #pt-notifications-alert,
▲#p-personal #pt-notifications-notice {
▲ margin-right: 0;
}
#content {
top: calc(
);
min-height: 400px;
padding: 1px 69px;
overflow: visible;
position: relative;
background: url(//mcbbs.wiki/salt/book/left.png) left top repeat-y, url(//mcbbs.wiki/salt/book/right.png) right top repeat-y;
background-color: var(--bgcolor);
border: none;
border-width: 0;
}
#content::after, #content::before {
content: "";
position: absolute;
}
#content::before {
top: -46px;
background: url(//mcbbs.wiki/salt/book/left-top.png) left top no-repeat, url(//mcbbs.wiki/salt/book/right-top.png) right top no-repeat, url(//mcbbs.wiki/salt/book/top.png) top repeat-x content-box;
}
#content::after {
bottom: -46px;
background: url(//mcbbs.wiki/salt/book/left-bottom.png) left bottom no-repeat, url(//mcbbs.wiki/salt/book/right-bottom.png) right bottom no-repeat, url(//mcbbs.wiki/salt/book/bottom.png) bottom repeat-x content-box;
}
transition: all 0.3s;
}
#footer:hover {
/*鼠标滑过,背景变白*/
/* 滚动公告 */
.topsign {
position: relative;
width: 100%;
overflow: hidden;
}
.topsign > * {▼
▲.topsign > *{
position: absolute;
left: 0;
}
}
#mw-page-base,
#mw-head-base {
.diff-deletedline {
border-color:
}
.diff-addedline {
border-color:
}
::selection {
background:
color:
}
::-moz-selection {
background:
color:
}
}
body.
}
.ve-active #bodyContent {
}
}}
|