3,389
个编辑
MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针。
如果在编辑的过程中遇到了什么问题,可以去讨论板提问。
为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证。
MCBBS Wiki GitHub群组已上线!
您可以在回声洞中发表吐槽!
服务器状态监控。点击进入
本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>
Salt lovely(留言 | 贡献) 小 (小改动) |
Salt lovely(留言 | 贡献) 小 (修改代码结构,适配vector的变化) |
||
| 第20行: | 第20行: | ||
} | } | ||
/* 背景 */ | |||
body { | |||
background: var(--themeimg) 0 0 no-repeat; | |||
background-position: center; | |||
background-attachment: fixed; | |||
background-size: cover; | |||
border-top: none; | |||
font-family: var(--fontfamily); | |||
} | |||
body * { | |||
border-color: var(--linecolor); | |||
} | |||
/* 左侧栏 */ | |||
#mw-panel { | #mw-panel { | ||
position: fixed; | position: fixed; | ||
| 第68行: | 第83行: | ||
padding: 0; | padding: 0; | ||
position: relative; | position: relative; | ||
background-image: none; | |||
font-size: 1rem; | font-size: 1rem; | ||
line-height: 1.3rem; | line-height: 1.3rem; | ||
| 第143行: | 第159行: | ||
} | } | ||
/* 最顶部的信息栏 */ | |||
background: | #p-personal { | ||
background- | width: 100%; | ||
position: fixed; | |||
top: 0; | |||
right: 0; | |||
height: 1.5rem; | |||
padding: 0.5rem 1rem; | |||
background: url(https://www.mcbbs.net/template/mcbbs/image/top_bg.png); | |||
background-size: contain; | |||
opacity: 0.5; | |||
font-size: 1rem; | |||
transition-duration: 0.3s; | |||
transition-timing-function: ease; | |||
transition-delay: 0.5s; | |||
} | } | ||
#p-personal:hover { | |||
opacity: 1; | |||
transition-delay: 0s; | |||
} | } | ||
# | #p-personal ul { | ||
float: right; | |||
} | } | ||
# | #p-personal ul li { | ||
height: 1rem; | |||
margin-top: 0; | |||
margin-bottom: 0; | |||
font-size: 0.9rem; | |||
line-height: 1rem; | |||
} | } | ||
/* 顶部栏 */ | |||
#mw-head { | #mw-head { | ||
top: calc( | top: calc( | ||
| 第203行: | 第206行: | ||
} | } | ||
#mw-head #left-navigation nav, | |||
#mw-head #left-navigation div, | #mw-head #left-navigation div, | ||
#mw-head #left-navigation ul, | #mw-head #left-navigation ul, | ||
#mw-head #left-navigation span, | #mw-head #left-navigation span, | ||
#mw-head #left-navigation a, | |||
#mw-head #right-navigation nav, | |||
#mw-head #right-navigation div, | #mw-head #right-navigation div, | ||
#mw-head #right-navigation ul, | #mw-head #right-navigation ul, | ||
#mw-head #right-navigation span { | #mw-head #right-navigation span, | ||
#mw-head #right-navigation a { | |||
background-image: none; | background-image: none; | ||
background-color: transparent; | background-color: transparent; | ||
| 第231行: | 第238行: | ||
#mw-head #left-navigation ul li, | #mw-head #left-navigation ul li, | ||
#mw-head #right-navigation ul li { | #mw-head #right-navigation ul li { | ||
height: 2.7rem; | |||
background-image: linear-gradient(0deg, var(--linecolor) 0%, var(--bgcolor) 20%); | background-image: linear-gradient(0deg, var(--linecolor) 0%, var(--bgcolor) 20%); | ||
} | } | ||
| 第243行: | 第251行: | ||
font-size: 0.875rem; | font-size: 0.875rem; | ||
padding-top: 1rem; | padding-top: 1rem; | ||
text-align: center; | |||
} | } | ||
| 第248行: | 第257行: | ||
#mw-head #right-navigation ul li.icon a { | #mw-head #right-navigation ul li.icon a { | ||
padding-top: 2.5rem; | 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%); | |||
} | } | ||
| 第260行: | 第279行: | ||
} | } | ||
# | /* 主体 */ | ||
#content { | |||
top: calc( | |||
46px + 3rem); | |||
right: 0; | min-height: 400px; | ||
padding: 1px 69px; | |||
margin-left: 11rem; | |||
background: url(https://www.mcbbs.net/template/mcbbs/image/ | margin-right: 0.5rem; | ||
background- | margin-bottom: calc(92px + 5rem); | ||
overflow: visible; | |||
position: relative; | |||
background: url(https://www.mcbbs.net/template/mcbbs/image/bg_border_left.png) left top repeat-y, url(https://mcbbs-wiki.cn/images/1/13/bg_border_right.png) right top repeat-y; | |||
background-color: var(--bgcolor); | |||
border: none; | |||
border-width: 0; | |||
} | |||
#content::after, #content::before { | |||
content: ""; | |||
left: 0; | |||
height: 46px; | |||
width: calc(100% - 92px); | |||
padding: 0 46px; | |||
display: block; | |||
position: absolute; | |||
} | } | ||
# | #content::before { | ||
top: -46px; | |||
background: url(https://s2.ax1x.com/2019/11/28/QFB2X4.png) left top no-repeat, url(https://mcbbs-wiki.cn/images/c/cf/body_top-right.png) right top no-repeat, url(https://s2.ax1x.com/2019/11/28/QFBc1U.png) top repeat-x content-box; | |||
} | } | ||
# | #content::after { | ||
bottom: -46px; | |||
background: url(https://s2.ax1x.com/2019/11/28/QFcINd.png) left bottom no-repeat, url(https://mcbbs-wiki.cn/images/e/e9/body_bottom-right.png) right bottom no-repeat, url(https://s2.ax1x.com/2019/11/28/QFco4A.png) bottom repeat-x content-box; | |||
} | } | ||
# | /* 页脚 */ | ||
#footer { | |||
margin-top: | padding-bottom: 0; | ||
margin-top: 46px; | |||
clear: both; | |||
transition: all 0.3s; | |||
} | } | ||
#footer:hover { | |||
/*鼠标滑过,背景变白*/ | |||
background: rgba(255, 255, 255, 0.7); | |||
} | } | ||
/* 滚动公告 */ | |||
.topsign { | .topsign { | ||
position: relative; | position: relative; | ||
| 第319行: | 第350行: | ||
} | } | ||
/* 适配 */ | |||
@media screen and (max-width: 982px) { | |||
#mw-panel { | |||
} | left: 0; | ||
} | |||
#content { | |||
margin-left: 10rem; | |||
margin-right: 0; | |||
} | |||
} | } | ||