MediaWiki:Vector.css:修订间差异

来自黑神话百科
跳转到导航 跳转到搜索
(css调整)
(首页元素居中)
 
(未显示同一用户的52个中间版本)
第8行: 第8行:
/* 主要内容 */
/* 主要内容 */
body .mw-body {
body .mw-body {
   background: url(http://47.99.104.249/w/images/img_bg.png) repeat rgba(248, 248, 248, 0.8);
   background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
   background-clip: border-box;
   background-attachment: fixed;
   margin-top: 250px !important;
  background-size:cover;
   margin-top: 350px !important;
   padding-left: 24px;
   padding-left: 24px;
   color: #dfdad3;
   color: #dfdad3;
   border: none;
   border: none;
    display: grid;
  grid-template-columns: 2fr 1fr;
}
}
.mw-body-column-main,
.mw-body-column-side {
  padding: 10px;
  background-color: #f0f0f0;
}
/* 用户页 */
/* 用户页 */
body.ns-2 .mw-body {
body.ns-2 .mw-body {
   background: url(http://47.99.104.249/w/images/img_bg.png) repeat rgba(248, 248, 248, 0.8);
   background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
  background-size:cover;
}
}


/* 用户页表格 */
/* 用户页表格 */
body.ns-2 .wikitable {
body.ns-2 .wikitable {
   background: url(http://47.99.104.249/w/images/img_bg.png) repeat rgba(248, 248, 248, 0.8);
   background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
  background-size:cover;
}
}


/* 提交页(预览、差异) */
/* 提交页(预览、差异) */
body.action-submit .mw-body {
body.action-submit .mw-body {
   background: url(http://47.99.104.249/w/images/img_bg.png) repeat rgba(248, 248, 248, 0.8);
   background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
    background-size:cover;
}
}


第59行: 第57行:
div #MenuSidebar li {
div #MenuSidebar li {
     position: relative;
     position: relative;
     margin: 0px !important;
     margin: 4px !important;
     transition: 0.15s all ease-in;
     transition: 0.15s all ease-in;
     z-index: 1;
     z-index: 1;
第75行: 第73行:
/*右侧目录*/
/*右侧目录*/
#right-navigation{
#right-navigation{
margin-top: 207px!important;
margin-top: 300px!important;
}
}
#left-navigation{
#left-navigation{
margin-top: 207px!important;
margin-top: 300px!important;
}
}
body #mw-head-base{
body #mw-head-base{
第221行: 第219行:
body {
body {
margin-top:20px;
margin-top:20px;
background: url("http://47.99.104.249/w/images/wiki_bg.png") no-repeat;
background: url("https://heishenhua.wiki/w/images/wiki_bg.jpg") no-repeat;
background-color: black;
background-color: black;
     background-size:100%;
     background-size:1920px 350px !important;
    background-position: center top;
}
}
.mw-body, .parsoid-body {
.mw-body, .parsoid-body {
第241行: 第240行:
}
}
body #mw-navigation #mw-head {
body #mw-navigation #mw-head {
background: url(http://47.99.104.249/w/images/top_banner.png) left top no-repeat,url(http://47.99.104.249/w/images/top_banner_l.png) right top no-repeat #343434;
background: url(https://heishenhua.wiki/w/images/top_banner.png) left top no-repeat,url(https://heishenhua.wiki/w/images/top_banner_l.png) right top no-repeat #343434;
     height: 38px;
     height: 38px;
}
}


.mw-wiki-logo {
.mw-wiki-logo {
     background-image: url(http://47.99.104.249/w/images/wiki_logo.png);
     background-image: url(https://heishenhua.wiki/w/images/wiki_logo.png);
     background-size: cover;
     background-size: cover;
     margin-left:5px;
     margin-left:5px;
第297行: 第296行:
     color: #3F9CCB;
     color: #3F9CCB;
}
}
.mw-body a.new {
    color: #a83d32;
}
.mw-body a:visited {
color: #3077e9
}


/* 首页icon容器样式定义 */
/* 首页icon容器样式定义 */
第310行: 第318行:
#wk-timer {
#wk-timer {
display: flex;
display: flex;
background: url('http://47.99.104.249/w/images/wk_timer.png');
background: url('https://heishenhua.wiki/w/images/wk_timer.png');
width: 920px;
width: 920px;
height: 460px;
height: 460px;
第316行: 第324行:
background-repeat: no-repeat;
background-repeat: no-repeat;
background-position: center;
background-position: center;
background-size: 100%;
  justify-content: center; /* 水平居中 */
  justify-content: center; /* 水平居中 */
    align-items: flex-end;
    align-items: flex-end;
box-shadow:0 0 .9rem 0 #505050;
}
}


第323行: 第333行:
   text-align: center;
   text-align: center;
   font-size: 200%;
   font-size: 200%;
  margin-bottom: 20px;
}
.wk-mainpage{
}
.wk-mainpage-main{
display:flex;
align-items: center;
flex-direction: column;
}
.wk-mainpage-side{
display: block;
min-width : 560px;
}
/* 替换标题下方的线条为图片 */
#firstHeading {
  background-image: url('/w/images/wk_title_line.png'); /* 替换为您的图片文件名 */
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 10px; /* 调整图片与标题之间的间距 */
  margin-bottom: 10px; /* 调整图片与正文之间的间距 */
  border-bottom: none; /* 移除原有的线条 */
}
/* 条目2级标题(对应条目目录1级标题)自动加粗 */
.mw-body-content h1,
h2 {
  background-image: url('/w/images/wk_title_line.png'); /* 替换为您的图片文件名 */
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 10px !important; /* 调整图片与标题之间的间距 */
  margin-bottom: 10px; /* 调整图片与正文之间的间距 */
  border-bottom: none; /* 移除原有的线条 */
  font-weight: bold;
}
/* 底部提示修改 */
#footer-info>li {
color: white;
}
#footer a {
color: #3F9CCB;
}
#footer a:visited {
color: #3077e9
}
/* 回到顶部 */
.backToTop {
  opacity: 1;
  filter: alpha(opacity=100);
  position: fixed;
  _position: absolute;
  z-index: 9999;
  bottom: 10px;
  right: 5px;
  display: none;
  height: 120px;
  width: 65px;
  background: url('/w/images/wiki_back.png') no-repeat;
  cursor: pointer;
  color: #272727;
}
/* 隐藏编辑页面中的返回顶部按钮 */
.action-edit .backToTop,
.action-submit .backToTop {
  display: none !important;
}
#mw-panel #p-logo{
margin-left:15em;
margin-top:2em;
}
.mw-footer {
display: flex;
align-items: flex-end;
height: 550px !important;
background: url('/w/images/wiki_footer_bg.png') no-repeat;
outline: none;
background-size: 1920px 575px;
background-position: center top;
margin-left:0em !important;
}
}

2024年8月19日 (一) 19:42的最新版本

/* 此处所有CSS将为使用Vector皮肤的用户加载 */

/*** *** ***/
/* Vector皮肤CSS引自PRTS(https://www.prts.wiki/),文字内容遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议。*/
/* 部分内容进行了本地化替换和调整 */
/* 把这几行单独拎出来写,否则会被Firefox合并到“.heimu a”这条规则,然后又被上面的“点过外链不变色”规则override */

/* 主要内容 */
body .mw-body {
  background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
  background-size:cover;
  margin-top: 350px !important;
  padding-left: 24px;
  color: #dfdad3;
  border: none;
}
/* 用户页 */
body.ns-2 .mw-body {
  background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
  background-size:cover;
}

/* 用户页表格 */
body.ns-2 .wikitable {
  background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
  background-size:cover;
}

/* 提交页(预览、差异) */
body.action-submit .mw-body {
  background: url(https://heishenhua.wiki/w/images/img_bg.png) no-repeat;
  background-attachment: fixed;
    background-size:cover;
}

/* 通知标题颜色 */
#p-personal .oo-ui-labelElement-label {
    color: #000000;
}

/*侧边栏二级菜单*/
div#MenuSidebar b{
	color:#EAEAEA;
}

div#MenuSiderbar > ul > li ul{
	display:none;
	z-index:1;
	background-color:#373737;
	width: unset !important;
	white-space: nowrap;
}

div #MenuSidebar li {
    position: relative;
    margin: 4px !important;
    transition: 0.15s all ease-in;
    z-index: 1;
}

/* wiki内容上方讨论样式 */
#ca-talk a{
	color:orange;
}
#ca-talk a:visited{
	color:orange;
}
/********************************************************************************/

/*右侧目录*/
#right-navigation{
	margin-top: 300px!important;
}
#left-navigation{
	margin-top: 300px!important;
}
body #mw-head-base{
	display:none;
}
body #mw-page-base{
	display:none;
}
.rtshow #rtocbt{
    display: none;
}
.rthide #rtocbt{
    display: inline-block;
}
.rtshow #rtoculw{
    box-shadow: 1px 1px 5px black;
}
#rightToc{
    position: fixed;
	top:20vh;
    right: 0px;
    z-index:999;
}
#rtocbt{
    display: inline-block;
    vertical-align: middle;
    background: #000;
    color:#fff;
    opacity: 0.5;
    width: 20px;
    text-align: center;
    padding: 15px 3px;
}
#rtocul{
    margin-left: 5px;
    padding-right: 5px;
    list-style: none;
    max-height: 45vh;
    overflow-y: auto;
}
#rtoculw{
	display: inline-block;
	vertical-align: middle;
	margin-left: 0px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #a2a9b1;
}
/*右侧目录*/

/*右上角小图标颜色补正*/
#pt-uls .uls-trigger:before{
    filter: invert(100%);
}
#pt-notifications-alert a, #pt-notifications-notice a{
    filter: invert(100%);	
}
/* 白色搜索框 */
#searchInput {
	background-color: #ffffff!important;
}
/*全站Tabs样式等*/
nav.vector-menu-tabs-legacy li a {
    display: inline-block;
    padding-left: 0.625em;
    padding-right: 0.625em;
    color: #ffa500;
    cursor: pointer;
    font-size: 0.8em;
    padding-top: 1em;
}
nav.vector-menu-tabs-legacy span a {
    display: inline-block;
    padding-top: 1em;
}
nav.vector-menu-tabs-legacy ul li, #p-variants, #p-cactions {

    background-image: -webkit-linear-gradient(top,rgba(255,255,255,1),rgba(255,255,255,1));
    background-color: transparent;
    border-top: 3px solid orange;
    border-right: 1px solid rgba(255,255,255,1);
}
#p-variants-label, nav.vector-menu-tabs-legacy, nav.vector-menu-tabs-legacy span, nav.vector-menu-tabs-legacy ul, div#mw-head div.vectorMenu h3 {
    background-image: none;
}
nav.vector-menu-tabs-legacy {
    float: left;
    height: 2.5em;
    background-image: -webkit-linear-gradient(top,rgba(255,255,255,.5),rgba(255,255,255,.5) 30%,rgba(255,255,255,.5));
    background-position: bottom left;
    background-repeat: no-repeat;
    padding-left: 1px;
}
nav.vector-menu-tabs-legacy li.selected a, nav.vector-menu-tabs-legacy li.selected a:visited {
    color: black;
    text-decoration: none;
}
nav.vector-menu-tabs-legacy li.selected {
    background-color: white;
    border-top: 3px solid #00aef6;
    border-left: 1px solid white;
    border-right: 1px solid white;
}
nav.vector-menu-tabs-legacy ul li {
    background-image: -webkit-linear-gradient(top,#373737,#373737);
    background-color: transparent;
    border-top: 3px solid orange;
    border-right: 1px solid white;
}
.mw-body {
    margin-left: 10em;
    border: 1px solid white;
    border-right-width: 0;
    margin-top: -1px;
}
#right-navigation{
	margin-top: 160px;
}
#left-navigation{
	margin-top: 160px;
}
body #mw-head-base{
	display:none;
}
body #mw-page-base{
	display:none;
}
body #mw-navigation #mw-head:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
body #mw-navigation #mw-panel {
    top: 48px;
}
div#MenuSidebar{
	top:180px;
}
body {
	margin-top:20px;
	background: url("https://heishenhua.wiki/w/images/wiki_bg.jpg") no-repeat;
	background-color: black;
    background-size:1920px 350px !important;
    background-position: center top;
}
.mw-body, .parsoid-body {
    background-color: white;
}
#p-personal{
	color:white;
}
#p-personal ul {
    color: white;
}
#p-personal li a{
	color: white;
}
#p-personal li a:visited {
    color: white;
}
body #mw-navigation #mw-head {
	background: url(https://heishenhua.wiki/w/images/top_banner.png) left top no-repeat,url(https://heishenhua.wiki/w/images/top_banner_l.png) right top no-repeat #343434;
    height: 38px;
}

.mw-wiki-logo {
    background-image: url(https://heishenhua.wiki/w/images/wiki_logo.png);
    background-size: cover;
    margin-left:5px;
}

/* */
/**
 * CharInsert插入项样式
 * Styling for links generated by [[MediaWiki:Edittools]]
 * @source https://www.mediawiki.org/wiki/Extension:CharInsert#Styling
 * @updated 2012-02-29
 */
.mw-charinsert-buttons {
  margin-top: 10px;
  border: 1px solid #aaaaaa;
  padding: 1px;
  text-align: center;
  font-size: 110%;
}

.mw-charinsert-buttons a {
  color: black;
  background-color: #cde !important;
  font-weight: bold;
  font-size: .9em;
  text-decoration: none;
  border: thin #069 outset;
  padding: 0 .1em .1em;
}

.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
  background-color: #bcd;
  border-style: inset;
}

.client-js .mw-edittools-section {
  display: inline;
}

.client-js .mw-edittools-section input[type="button"] {
  font-size: 0.9em;
  padding-left: 1px;
  padding-right: 1px;
  margin-left: 1px;
}

/* 带有链接文本颜色修改 */
.mw-body a {
    color: #3F9CCB;
}

.mw-body a.new {
    color: #a83d32;
}

.mw-body a:visited {
	color: #3077e9
}


/* 首页icon容器样式定义 */
#wk-icon-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 列 */
  position: relative;
  transform-origin: top left;
  width: 920px;
  margin: 0 auto; /* 新增这一行使容器居中 */
}

#wk-timer {
	display: flex;
	background: url('https://heishenhua.wiki/w/images/wk_timer.png');
	width: 920px;
	height: 460px;
	margin: 0 auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
	  justify-content: center; /* 水平居中 */
	    align-items: flex-end;
	box-shadow:0 0 .9rem 0 #505050;
}

#wk-timer-label {
  text-align: center;
  font-size: 200%;
  margin-bottom: 20px;
}

.wk-mainpage{

}

.wk-mainpage-main{
	display:flex;
	align-items: center;
	flex-direction: column;
}

.wk-mainpage-side{
	display: block;
	min-width : 560px;
}

/* 替换标题下方的线条为图片 */
#firstHeading {
  background-image: url('/w/images/wk_title_line.png'); /* 替换为您的图片文件名 */
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 10px; /* 调整图片与标题之间的间距 */
  margin-bottom: 10px; /* 调整图片与正文之间的间距 */
  border-bottom: none; /* 移除原有的线条 */
}

/* 条目2级标题(对应条目目录1级标题)自动加粗 */
.mw-body-content h1,
h2 {
  background-image: url('/w/images/wk_title_line.png'); /* 替换为您的图片文件名 */
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 10px !important; /* 调整图片与标题之间的间距 */
  margin-bottom: 10px; /* 调整图片与正文之间的间距 */
  border-bottom: none; /* 移除原有的线条 */
  font-weight: bold;
}

/* 底部提示修改 */
#footer-info>li {
	color: white;
}

#footer a {
	color: #3F9CCB;
}
#footer a:visited {
	color: #3077e9
}

/* 回到顶部 */
.backToTop {
  opacity: 1;
  filter: alpha(opacity=100);
  position: fixed;
  _position: absolute;
  z-index: 9999;
  bottom: 10px;
  right: 5px;
  display: none;
  height: 120px;
  width: 65px;
  background: url('/w/images/wiki_back.png') no-repeat;
  cursor: pointer;
  color: #272727;
}

/* 隐藏编辑页面中的返回顶部按钮 */
.action-edit .backToTop,
.action-submit .backToTop {
  display: none !important;
}

#mw-panel #p-logo{
	margin-left:15em;
	margin-top:2em;
}

.mw-footer {
	display: flex;
	align-items: flex-end;
	height: 550px !important;
	background: url('/w/images/wiki_footer_bg.png') no-repeat;
	outline: none;
	background-size: 1920px 575px;
	background-position: center top;
	margin-left:0em !important;
}