打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Mobile.css:修订间差异

MediaWiki界面页面
Rockman留言 | 贡献
无编辑摘要
Rockman留言 | 贡献
无编辑摘要
第1行: 第1行:
/* ----------------------------------------------------------
/* ----------------------------------------------------------
   1. 顶部导航栏
   1. 基础
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.navbar, .navbar-default, #mw-navigation .navbar {
body {
   background: #fff;
   background: #eef1f6;
  border: none;
   font-size: 15px;
   border-bottom: 1px solid #e5e7eb;
   line-height: 1.72;
   box-shadow: 0 1px 3px rgba(0,0,0,0.04);
   -webkit-text-size-adjust: 100%;
   min-height: 54px;
}
}


.navbar-brand, .navbar-default .navbar-brand {
/* ----------------------------------------------------------
  2. 页面标题
  ---------------------------------------------------------- */
h1.firstHeading, .pre-content h1, #section_0 h1 {
  font-size: 1.45em;
   font-weight: 800;
   font-weight: 800;
   font-size: 1.15em;
  color: #1a1d24;
   color: #2d7dd2;
  padding: 12px 16px 8px;
   padding: 14px 12px;
  margin: 0;
}
 
/* ----------------------------------------------------------
  3. 章节卡片
  ---------------------------------------------------------- */
.section-heading,
.mw-parser-output > .mw-heading2,
.mw-parser-output > h2 {
  background: #fff;
  padding: 14px 16px 12px;
  margin: 12px 0 0 0;
  border-radius: 14px 14px 0 0;
  border-left: 4px solid #2d7dd2;
  border-bottom: none;
   font-size: 1.12em;
  font-weight: 700;
   color: #1a1d24;
   box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
}
.navbar-brand:hover { color: #1b5eb5; }
.section-heading .indicator { color: #2d7dd2; }


.navbar-nav > li > a, .navbar-default .navbar-nav > li > a {
.mf-section-0, .mf-section-1, .mf-section-2,
   color: #4b5563;
.mf-section-3, .mf-section-4, .mf-section-5,
   font-weight: 500;
.mf-section-6, .mf-section-7, .mf-section-8,
   font-size: 0.9em;
.mf-section-9, .mf-section-10 {
   padding: 16px 14px;
   background: #fff;
   transition: color .15s;
   padding: 12px 16px;
   margin: 0 0 12px;
   border-radius: 0 0 14px 14px;
   box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
}
.navbar-nav > li > a:hover,
 
.navbar-default .navbar-nav > li > a:hover,
.mw-parser-output > h3, .mw-parser-output > .mw-heading3 {
.navbar-nav > li.active > a {
  font-size: 0.98em;
  font-weight: 600;
   color: #2d7dd2;
   color: #2d7dd2;
   background: transparent;
   padding-left: 10px;
}
   border-left: 3px solid #2d7dd2;
.navbar-nav > li.active > a {
  margin: 14px 0 8px;
   border-bottom: 2px solid #2d7dd2;
}
}


.navbar-nav .dropdown-menu {
/* ----------------------------------------------------------
   background: #fff;
  4. Infobox 全宽
   border: 1px solid #e5e7eb;
  ---------------------------------------------------------- */
   border-radius: 10px;
.infobox {
   box-shadow: 0 8px 24px rgba(0,0,0,0.10);
   width: 100%;
   padding: 6px 0;
   max-width: 100%;
  margin: 0 0 16px 0;
   border-radius: 14px;
   box-shadow: 0 1px 4px rgba(0,0,0,0.07);
   font-size: 0.88em;
  overflow: hidden;
}
}
.navbar-nav .dropdown-menu > li > a {
.infobox-title, .infobox caption, .infobox th[colspan] {
   color: #1a1d24;
   font-size: 1.1em;
   padding: 8px 18px;
   padding: 13px 14px;
  font-size: 0.88em;
}
}
.navbar-nav .dropdown-menu > li > a:hover {
.infobox-image img, .infobox .image-section img {
   background: #e6f0fb;
   width: 100%; height: auto;
  color: #2d7dd2;
}
}
.infobox th { width: 33%; padding: 7px 10px; font-size: 0.86em; }
.infobox td { padding: 7px 10px; font-size: 0.9em; }


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   2. 内容区背景透明(让 Common.css 的卡片样式显露)
   5. 表格横向滚动
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
#content, #mw-content-container, .mw-body {
.wikitable {
   background: transparent;
  display: block;
   border: none;
  overflow-x: auto;
   box-shadow: none;
   -webkit-overflow-scrolling: touch;
   white-space: nowrap;
   font-size: 0.84em;
}
}
.wikitable th { padding: 8px 10px; white-space: nowrap; }
.wikitable td { padding: 7px 10px; white-space: normal; min-width: 80px; }


.skin-chameleon #mw-content-text {
/* ----------------------------------------------------------
  background: transparent;
  6. Navbox
}
  ---------------------------------------------------------- */
.navbox { font-size: 0.82em; border-radius: 14px; margin: 12px 0; }
.navbox-title { padding: 8px 12px; font-size: 0.95em; }
.navbox-group { text-align: left; padding: 6px 10px; white-space: normal; width: auto; }
.navbox-list { padding: 6px 10px; line-height: 2.2; }
.navbox-list a { display: inline-block; padding: 2px 6px; margin: 1px 0; }
 
/* ----------------------------------------------------------
  7. 关系卡片
  ---------------------------------------------------------- */
.relation-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.relation-card { padding: 10px 8px; }
.relation-label { font-size: 0.7em; }
.relation-name { font-size: 0.86em; }


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   3. 侧边栏面板
   8. 目录按钮
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.skin-chameleon .panel, .chameleon-sidebar .panel {
#toc, .toc { display: none; }
  background: #fff;
.toc-button, .minerva-toc-button {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  overflow: hidden;
}
.skin-chameleon .panel-heading, .chameleon-sidebar .panel-heading {
   background: #2d7dd2;
   background: #2d7dd2;
   color: #fff;
   color: #fff;
  font-weight: 600;
  font-size: 0.88em;
  padding: 10px 16px;
   border: none;
   border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  box-shadow: 0 2px 10px rgba(45,125,210,0.35);
  position: fixed;
  bottom: 20px; right: 16px;
  z-index: 100;
}
}
.skin-chameleon .panel-body a, .chameleon-sidebar .panel-body a {
 
  color: #4b5563;
/* ----------------------------------------------------------
   display: block;
  9. 分类标签
   padding: 6px 16px;
  ---------------------------------------------------------- */
   font-size: 0.86em;
#catlinks {
  transition: color .15s, background .15s;
   padding: 10px 14px;
   margin: 12px 4px;
   border-radius: 14px;
}
}
.skin-chameleon .panel-body a:hover, .chameleon-sidebar .panel-body a:hover {
#catlinks a { padding: 4px 10px; font-size: 0.84em; }
  color: #2d7dd2;
  background: #e6f0fb;
  text-decoration: none;
}
.skin-chameleon .panel-body ul { list-style: none; margin: 0; padding: 0; }
.skin-chameleon .panel-body ul li { border-bottom: 1px solid #f3f4f6; }
.skin-chameleon .panel-body ul li:last-child { border-bottom: none; }


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   4. 页脚
   10. 引用块
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
footer, #footer, .mw-footer {
blockquote, .character-quote {
  background: #fff;
   padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
   margin: 12px 0;
   padding: 20px 24px;
   font-size: 0.93em;
   margin-top: 40px;
   font-size: 0.8em;
  color: #9ca3af;
  text-align: center;
}
}
footer a, #footer a { color: #4b5563; }
footer a:hover, #footer a:hover { color: #2d7dd2; }


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   5. 页面操作标签(编辑/历史/讨论)
   11. 图片全宽
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.nav-tabs, #p-views ul {
.thumb { width: 100%; max-width: 100%; margin: 12px 0; }
  border-bottom: 1px solid #e5e7eb;
.thumb .thumbinner { width: 100%; }
}
.thumb img { width: 100%; height: auto; }
.nav-tabs > li > a, #p-views li a {
  color: #4b5563;
  font-size: 0.86em;
  padding: 8px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-tabs > li > a:hover, #p-views li a:hover {
  color: #2d7dd2;
  background: transparent;
  border-bottom-color: #2d7dd2;
}
.nav-tabs > li.active > a, #p-views li.selected a {
  color: #2d7dd2;
  font-weight: 600;
  border-bottom-color: #2d7dd2;
  background: transparent;
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   6. 按钮
   12. 搜索框防缩放
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.btn-primary, .mw-ui-progressive, input[type="submit"] {
.search-box input, #searchInput {
  background: #2d7dd2;
   font-size: 16px;
  border: none;
   padding: 10px 16px;
  border-radius: 8px;
   border-radius: 100px;
  color: #fff;
   width: 100%;
   font-weight: 600;
   padding: 8px 20px;
   font-size: 0.88em;
   transition: background .15s, box-shadow .15s;
}
.btn-primary:hover, .mw-ui-progressive:hover, input[type="submit"]:hover {
  background: #1b5eb5;
  box-shadow: 0 2px 8px rgba(45,125,210,0.25);
}
}


.btn-default, .mw-ui-quiet {
/* ----------------------------------------------------------
  background: #f3f4f6;
  13. 触摸区域
  border: 1px solid #e5e7eb;
  ---------------------------------------------------------- */
  border-radius: 8px;
.section-heading, button, .mw-ui-progressive, .mw-ui-quiet {
  color: #4b5563;
   min-height: 44px;
  padding: 8px 20px;
  font-size: 0.88em;
  transition: background .15s;
}
.btn-default:hover, .mw-ui-quiet:hover {
   background: #e6f0fb;
  color: #2d7dd2;
  border-color: #2d7dd2;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   7. 编辑页面
   14. Tabber
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
#editform textarea, .mw-editfont-default {
.tabber ul.tabbernav {
   font-family: "JetBrains Mono", "Fira Code", monospace;
   overflow-x: auto;
   font-size: 0.88em;
   -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
   white-space: nowrap;
   border-radius: 10px;
   display: flex;
  padding: 14px;
  background: #fff;
   line-height: 1.7;
}
}
#editform textarea:focus {
.tabber ul.tabbernav li a {
   border-color: #2d7dd2;
   padding: 10px 14px;
   box-shadow: 0 0 0 3px rgba(45,125,210,0.12);
   white-space: nowrap;
   outline: none;
   font-size: 0.86em;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   8. Bootstrap 杂项覆盖
   15. 平板横屏
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.well {
@media (min-width: 600px) and (max-width: 991px) {
  background: #fff;
   .relation-grid { grid-template-columns: repeat(3, 1fr); }
  border: 1px solid #e5e7eb;
   .mf-section-0, .mf-section-1, .mf-section-2,
   border-radius: 14px;
  .mf-section-3, .mf-section-4, .mf-section-5 {
   box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 14px 20px;
}
   }
.panel-default > .panel-heading {
  background: #f3f4f6;
   border-color: #e5e7eb;
  color: #1a1d24;
}
}


/* 副标题 */
/* ----------------------------------------------------------
#contentSub { color: #9ca3af; font-size: 0.82em; margin-bottom: 10px; }
  16. 隐藏移动端不需要的元素
#siteSub { color: #9ca3af; font-size: 0.8em; margin-bottom: 10px; }
  ---------------------------------------------------------- */
.mw-editsection { font-size: 0.68em; }
.sidebar-ad { display: none; }

2026年6月2日 (二) 20:54的版本

/* ----------------------------------------------------------
   1. 基础
   ---------------------------------------------------------- */
body {
  background: #eef1f6;
  font-size: 15px;
  line-height: 1.72;
  -webkit-text-size-adjust: 100%;
}

/* ----------------------------------------------------------
   2. 页面标题
   ---------------------------------------------------------- */
h1.firstHeading, .pre-content h1, #section_0 h1 {
  font-size: 1.45em;
  font-weight: 800;
  color: #1a1d24;
  padding: 12px 16px 8px;
  margin: 0;
}

/* ----------------------------------------------------------
   3. 章节卡片
   ---------------------------------------------------------- */
.section-heading,
.mw-parser-output > .mw-heading2,
.mw-parser-output > h2 {
  background: #fff;
  padding: 14px 16px 12px;
  margin: 12px 0 0 0;
  border-radius: 14px 14px 0 0;
  border-left: 4px solid #2d7dd2;
  border-bottom: none;
  font-size: 1.12em;
  font-weight: 700;
  color: #1a1d24;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.section-heading .indicator { color: #2d7dd2; }

.mf-section-0, .mf-section-1, .mf-section-2,
.mf-section-3, .mf-section-4, .mf-section-5,
.mf-section-6, .mf-section-7, .mf-section-8,
.mf-section-9, .mf-section-10 {
  background: #fff;
  padding: 12px 16px;
  margin: 0 0 12px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mw-parser-output > h3, .mw-parser-output > .mw-heading3 {
  font-size: 0.98em;
  font-weight: 600;
  color: #2d7dd2;
  padding-left: 10px;
  border-left: 3px solid #2d7dd2;
  margin: 14px 0 8px;
}

/* ----------------------------------------------------------
   4. Infobox 全宽
   ---------------------------------------------------------- */
.infobox {
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px 0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  font-size: 0.88em;
  overflow: hidden;
}
.infobox-title, .infobox caption, .infobox th[colspan] {
  font-size: 1.1em;
  padding: 13px 14px;
}
.infobox-image img, .infobox .image-section img {
  width: 100%; height: auto;
}
.infobox th { width: 33%; padding: 7px 10px; font-size: 0.86em; }
.infobox td { padding: 7px 10px; font-size: 0.9em; }

/* ----------------------------------------------------------
   5. 表格横向滚动
   ---------------------------------------------------------- */
.wikitable {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  font-size: 0.84em;
}
.wikitable th { padding: 8px 10px; white-space: nowrap; }
.wikitable td { padding: 7px 10px; white-space: normal; min-width: 80px; }

/* ----------------------------------------------------------
   6. Navbox
   ---------------------------------------------------------- */
.navbox { font-size: 0.82em; border-radius: 14px; margin: 12px 0; }
.navbox-title { padding: 8px 12px; font-size: 0.95em; }
.navbox-group { text-align: left; padding: 6px 10px; white-space: normal; width: auto; }
.navbox-list { padding: 6px 10px; line-height: 2.2; }
.navbox-list a { display: inline-block; padding: 2px 6px; margin: 1px 0; }

/* ----------------------------------------------------------
   7. 关系卡片
   ---------------------------------------------------------- */
.relation-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.relation-card { padding: 10px 8px; }
.relation-label { font-size: 0.7em; }
.relation-name { font-size: 0.86em; }

/* ----------------------------------------------------------
   8. 目录按钮
   ---------------------------------------------------------- */
#toc, .toc { display: none; }
.toc-button, .minerva-toc-button {
  background: #2d7dd2;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  box-shadow: 0 2px 10px rgba(45,125,210,0.35);
  position: fixed;
  bottom: 20px; right: 16px;
  z-index: 100;
}

/* ----------------------------------------------------------
   9. 分类标签
   ---------------------------------------------------------- */
#catlinks {
  padding: 10px 14px;
  margin: 12px 4px;
  border-radius: 14px;
}
#catlinks a { padding: 4px 10px; font-size: 0.84em; }

/* ----------------------------------------------------------
   10. 引用块
   ---------------------------------------------------------- */
blockquote, .character-quote {
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.93em;
}

/* ----------------------------------------------------------
   11. 图片全宽
   ---------------------------------------------------------- */
.thumb { width: 100%; max-width: 100%; margin: 12px 0; }
.thumb .thumbinner { width: 100%; }
.thumb img { width: 100%; height: auto; }

/* ----------------------------------------------------------
   12. 搜索框防缩放
   ---------------------------------------------------------- */
.search-box input, #searchInput {
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 100px;
  width: 100%;
}

/* ----------------------------------------------------------
   13. 触摸区域
   ---------------------------------------------------------- */
.section-heading, button, .mw-ui-progressive, .mw-ui-quiet {
  min-height: 44px;
}

/* ----------------------------------------------------------
   14. Tabber
   ---------------------------------------------------------- */
.tabber ul.tabbernav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  display: flex;
}
.tabber ul.tabbernav li a {
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 0.86em;
}

/* ----------------------------------------------------------
   15. 平板横屏
   ---------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 991px) {
  .relation-grid { grid-template-columns: repeat(3, 1fr); }
  .mf-section-0, .mf-section-1, .mf-section-2,
  .mf-section-3, .mf-section-4, .mf-section-5 {
    padding: 14px 20px;
  }
}

/* ----------------------------------------------------------
   16. 隐藏移动端不需要的元素
   ---------------------------------------------------------- */
.mw-editsection { font-size: 0.68em; }
.sidebar-ad { display: none; }