MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

MediaWiki:Vector.css:修订间差异

跳到导航 跳到搜索
添加779字节 、​ 2021年4月5日 (星期一)
修改代码结构,适配vector的变化
(小改动)
(修改代码结构,适配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行:
}
}


body {
/* 最顶部的信息栏 */
   background: var(--themeimg) 0 0 no-repeat;
#p-personal {
   background-position: center;
  width: 100%;
   background-attachment: fixed;
  position: fixed;
   background-size: cover;
  top: 0;
   border-top: none;
  right: 0;
   font-family: var(--fontfamily);
  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;
}
}


body * {
#p-personal:hover {
   border-color: var(--linecolor);
   opacity: 1;
  transition-delay: 0s;
}
}


#content {
#p-personal ul {
   top: calc(
   float: right;
46px + 3rem);
  padding: 1px 69px;
  margin-right: 0.5rem;
  margin-bottom: calc(92px + 1rem);
  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);
  min-height: 500px;
  border: none;
  border-width: 0;
}
}


#content::after, #content::before {
#p-personal ul li {
   content: "";
   height: 1rem;
   left: 0;
   margin-top: 0;
   height: 46px;
   margin-bottom: 0;
  width: calc(100% - 92px);
   font-size: 0.9rem;
  padding: 0 46px;
   line-height: 1rem;
   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;
}
}


/* 顶部栏 */
#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行:
}
}


#p-personal {
/* 主体 */
   width: 100%;
#content {
   position: fixed;
   top: calc(
   top: 0;
46px + 3rem);
   right: 0;
  min-height: 400px;
   height: 1.5rem;
   padding: 1px 69px;
   padding: 0.5rem 1rem;
   margin-left: 11rem;
   background: url(https://www.mcbbs.net/template/mcbbs/image/top_bg.png);
   margin-right: 0.5rem;
   background-size: contain;
   margin-bottom: calc(92px + 5rem);
   opacity: 0.5;
  overflow: visible;
   font-size: 1rem;
   position: relative;
   transition-duration: 0.3s;
   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;
   transition-timing-function: ease;
   background-color: var(--bgcolor);
   transition-delay: 0.5s;
   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;
}
}


#p-personal:hover {
#content::before {
   opacity: 1;
   top: -46px;
   transition-delay: 0s;
   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;
}
}


#p-personal ul {
#content::after {
   float: right;
  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;
}
}


#p-personal ul li {
/* 页脚 */
   height: 1rem;
#footer {
   margin-top: 0;
   padding-bottom: 0;
   margin-bottom: 0;
   margin-top: 46px;
   font-size: 0.9rem;
   clear: both;
  line-height: 1rem;
   transition: all 0.3s;
}
}


@media screen and (max-width: 982px) {
#footer:hover {
   #mw-panel {
   /*鼠标滑过,背景变白*/
    left: 0;
  background: rgba(255, 255, 255, 0.7);
  }
}
}


/* 滚动公告 */
.topsign {
.topsign {
   position: relative;
   position: relative;
第319行: 第350行:
}
}


#footer {
/* 适配 */
   padding-bottom: 0;
@media screen and (max-width: 982px) {
   transition: all 0.3s;
   #mw-panel {
}
    left: 0;
 
   }
#footer:hover {
  #content {
  background: rgba(255, 255, 255, 0.7);
    margin-left: 10rem;
   /*鼠标滑过,背景变白*/
    margin-right: 0;
   }
}
}


我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。

导航菜单