跳转到内容

MediaWiki:Common.css:修订间差异

来自IADb
无编辑摘要
无编辑摘要
 
(未显示同一用户的7个中间版本)
第54行: 第54行:
/* 信息框容器 */
/* 信息框容器 */
.moe-info-box {
.moe-info-box {
  background: #0B0D12;
   border: 1px solid #4b9fd5;
   border: 1px solid #4b9fd5;
   border-radius: 8px;
   border-radius: 8px;
第60行: 第59行:
   margin: 15px auto;  /* 关键修改:auto实现水平居中 */
   margin: 15px auto;  /* 关键修改:auto实现水平居中 */
   display: flex;
   display: flex;
   max-width: 800px;  /* 控制最大宽度避免拉伸 */
   max-width: 50%;  /* 控制最大宽度避免拉伸 */
   width: 90%;        /* 响应式宽度 */
   width: 90%;        /* 响应式宽度 */
   justify-content: center;  /* 内部元素水平居中 */
   justify-content: center;  /* 内部元素水平居中 */
第67行: 第66行:
/* 左侧图标容器 */
/* 左侧图标容器 */
.moe-info-icon {
.moe-info-icon {
   background: #4b9fd5;       /* 萌娘百科标志蓝 */
   background: #4b9fd5;
   width: 28px;
   width: 28px;
   height: 28px;
   height: 28px;
第78行: 第77行:
}
}


/* 图标字符"i" */
/* 图标字符 */
.moe-i-char {
.moe-i-char {
   color: #fff;
   color: #fff;
第103行: 第102行:
   align-items: center;      /* 垂直居中 */
   align-items: center;      /* 垂直居中 */
   min-height: 100vh;        /* 撑满视口高度 */
   min-height: 100vh;        /* 撑满视口高度 */
}
/* 警告类提示(红色) */
.info-warn {
  border: 1px solid #EE4000;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;  /* 控制最大宽度避免拉伸 */
  width: 90%;        /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}
.info-warn-icon {
  background: #EE4000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}
/* 注意类提示(黄色) */
.info-attention {
  border: 1px solid #FFFF00;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;  /* 控制最大宽度避免拉伸 */
  width: 90%;        /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}
.info-attention-icon {
  background: #FFFF00;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}
/* 通知类提示(绿色) */
.info-notify {
  border: 1px solid #ADFF2F;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;  /* 控制最大宽度避免拉伸 */
  width: 90%;        /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}
.info-notify-icon {
  background: #ADFF2F;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}
/* 系统类提示(灰色) */
.info-sys {
  border: 1px solid #8B8989;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;  /* 控制最大宽度避免拉伸 */
  width: 90%;        /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}
.info-sys-icon {
  background: #8B8989;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}
/* 模板:Infobox所使用的css */
.infobox-creator td a {
  word-break: break-all;
}
.infobox-creator .nomobile {
  display: none;
}
/* 浮动核心样式 */
.infobox-right {
  float: right;
  clear: right;
  margin: 0.5em 0 0.5em 1em; /* 右侧留白1em避免内容粘连 */
  width: 300px; /* 固定宽度保持布局稳定 */
}
/* 响应式优化 */
@media screen and (max-width: 768px) {
  .infobox-right {
    float: none;
    width: 100%;
    margin: 1em 0;
    position: sticky;
top: 20px; /* 距离顶部20px时固定 */
  }
}
/* 信息框本体美化 */
.infobox-container {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
  line-height: 1.6;
}
/* 图片标题栏动画效果 */
.infobox tr:hover td {
  background: #f8f8f8;
  transition: background 0.3s ease;
}
/* 移动端优化 */
@media (max-width: 768px) {
  .infobo {
    width: 100%!important;
    margin: 1em 0!important;
  }
  .infobox img {
    max-width: 100%;
    height: auto;
  }
}
}

2025年4月16日 (三) 12:20的最新版本

/* 这里放置的CSS将应用于所有皮肤 */
/* 放置新的css之后请务必用注释标明该段css代码作用于什么以及何处。 */

/* 用于隐藏文字模板、模块 */
.spoiler {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
}

.spoiler-header {
    font-weight: bold;
    cursor: pointer;
    color: #0645ad;
}

.spoiler-header:hover {
    text-decoration: underline;
}

.spoiler-content {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

/* 用于 模板:Documentation */
/* Documentation 模板样式 */
.template-documentation {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
}

.template-documentation-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.template-documentation-content {
    margin-bottom: 10px;
}

.template-documentation-footer {
    font-size: 0.9em;
    color: #666;
    text-align: right;
}

/* 模板topnotice所用的css */
/* 信息框容器 */
.moe-info-box {
  border: 1px solid #4b9fd5;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;   /* 控制最大宽度避免拉伸 */
  width: 90%;         /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}

/* 左侧图标容器 */
.moe-info-icon {
  background: #4b9fd5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

/* 图标字符 */
.moe-i-char {
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  position: relative;
  top: -1px;                  /* 视觉居中微调 */
}

/* 右侧文字内容 */
.moe-info-text {
  color: #467BE3;                /* 深灰色文字 */
  font-size: 14px;
  line-height: 1.5;
  font-family: "Microsoft Yahei", "Segoe UI", sans-serif;
}

/* 内容居中 */
.topnotice-container {
  display: flex;
  justify-content: center;  /* 水平居中 */
  align-items: center;      /* 垂直居中 */
  min-height: 100vh;        /* 撑满视口高度 */
}

/* 警告类提示(红色) */
.info-warn {
  border: 1px solid #EE4000;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;   /* 控制最大宽度避免拉伸 */
  width: 90%;         /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}

.info-warn-icon {
  background: #EE4000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

/* 注意类提示(黄色) */
.info-attention {
  border: 1px solid #FFFF00;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;   /* 控制最大宽度避免拉伸 */
  width: 90%;         /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}

.info-attention-icon {
  background: #FFFF00;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

/* 通知类提示(绿色) */
.info-notify {
  border: 1px solid #ADFF2F;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;   /* 控制最大宽度避免拉伸 */
  width: 90%;         /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}

.info-notify-icon {
  background: #ADFF2F;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

/* 系统类提示(灰色) */
.info-sys {
  border: 1px solid #8B8989;
  border-radius: 8px;
  padding: 12px;
  margin: 15px auto;  /* 关键修改:auto实现水平居中 */
  display: flex;
  max-width: 50%;   /* 控制最大宽度避免拉伸 */
  width: 90%;         /* 响应式宽度 */
  justify-content: center;  /* 内部元素水平居中 */
}

.info-sys-icon {
  background: #8B8989;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

/* 模板:Infobox所使用的css */
.infobox-creator td a {
  word-break: break-all;
}
.infobox-creator .nomobile {
  display: none;
}
	/* 浮动核心样式 */
.infobox-right {
  float: right;
  clear: right;
  margin: 0.5em 0 0.5em 1em; /* 右侧留白1em避免内容粘连 */
  width: 300px; /* 固定宽度保持布局稳定 */
}

	/* 响应式优化 */
@media screen and (max-width: 768px) {
  .infobox-right {
    float: none;
    width: 100%;
    margin: 1em 0;
    position: sticky;
	top: 20px; /* 距离顶部20px时固定 */
  }
}
	/* 信息框本体美化 */
.infobox-container {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
  line-height: 1.6;
}
/* 图片标题栏动画效果 */
.infobox tr:hover td {
  background: #f8f8f8;
  transition: background 0.3s ease;
}
	/* 移动端优化 */
@media (max-width: 768px) {
  .infobo {
    width: 100%!important;
    margin: 1em 0!important;
  }
  .infobox img {
    max-width: 100%;
    height: auto;
  }
}