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

目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模块:Infobox/styles.css:修订间差异

来自RIA | Wiki
Aunst留言 | 贡献
Debug
Aunst留言 | 贡献
更新
第1行: 第1行:
/* Infobox template styles
/* Infobox template styles
  Infobox 模板样式 */
* Infobox 模板样式
*/
 
/* Common styles
* 通用样式 */


/* 主盒 */
.infobox {
.infobox {
  /* @noflip */
  width: 22em;
  /* @noflip */
   float: right;
   float: right;
  /* @noflip */
   clear: right;
   clear: right;
  max-width: 22em;
  width: 100%;
  overflow-x: auto;
   margin: 0.5em 0 0.5em 1em;
   margin: 0.5em 0 0.5em 1em;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
   padding: 0.2em;
   padding: 0.2em;
   border: 1px solid rgb(162, 169, 177);
   background-color: #f8f9fa;
   border-spacing: 3px;
   font-size: 0.875em;
   background-color: rgb(248, 249, 250);
   line-height: 1.5em;
   color: black;
   color: black;
  font-size: 88%;
  line-height: 1.5em;
}
}


/* 外标题 */
.infobox-header,
.infobox caption {
.infobox-label,
  font-size: 125%;
.infobox-above,
  padding: 0.2em;
.infobox-full-data,
  text-align: center;
.infobox-data,
}
.infobox-below,
 
.infobox-subheader,
/* 行 */
.infobox-image,
.infobox td,
.infobox-navbar {
.infobox th  {
   vertical-align: top;
   vertical-align: top;
  text-align: left;
}
}


/* 带边框的Infobox */
.infobox-above,
.infobox.bordered {
.infobox-title {
  border-collapse: collapse;
   text-align: center;
}
  font-size: 1.25em;
/* 行 */
   font-weight: bold;
.infobox.bordered td,
.infobox.bordered th {
   border: 1px solid rgb(162, 169, 177);
}
/* 无边框行 */
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}
}


/* 姊妹计划Infobox */
.infobox-title {
.infobox.sisterproject {
   padding: 0.2em;
   width: 20em;
  font-size: 90%;
}
}


/* 标准讨论?? */
.infobox-header,
.infobox.standard-talk {
.infobox-subheader,
  border: 1px solid rgb(192, 192, 144);
.infobox-image,
  background-color: rgb(248, 234, 186);
.infobox-full-data,
}
.infobox-below {
/* 行 */
   text-align: center;
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
   border: 1px solid rgb(192, 192, 144);
}
}


/* styles for bordered infobox with merged rows
.infobox-label,
  带边框Infobox中的合并行 */
.infobox-data {
/* 合并行顶 */
   text-align: left;
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
   border: 0;
  border-top: 1px solid rgb(162, 169, 177);
  /* @noflip */ 
  border-right: 1px solid rgb(162, 169, 177);
}
}


/* 合并行 */
.infobox-navbar {
.infobox.bordered .mergedrow td,
   text-align: right;
.infobox.bordered .mergedrow th {
   border: 0;
  /* @noflip */
  border-right: 1px solid rgb(162, 169, 177);
}
}


/* Styles for geography infoboxes, eg countries, country subdivisions, cities, etc.
/*
  地理Infobox样式, 例如国家、国家地区、城市等... */
* not strictly certain these styles are necessary since the modules now
/* 主盒 */
* exclusively output infobox-subbox or infobox, not both
.infobox.geography {
* just replicating the module faithfully
   border-collapse: collapse;
*/
   line-height: 1.2em;
.infobox-subbox {
   font-size: 90%;
  float: none;
  clear: none;
  padding: 0;
   border: none;
  margin: -3px;
  width: auto;
   min-width: 100%;
   font-size: 1em;
  background-color: transparent;
}
}


/* 行 */
/* Minerva Neue skin styles
.infobox.geography td,
* Minerva Neue 皮肤样式 */
.infobox.geography th {
  border-top: 1px solid rgb(162, 169, 177);
  padding: 0.4em 0.6em 0.4em 0.6em;
}
/* 合并行顶 */
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
  border-top: 1px solid rgb(162, 169, 177); 
  padding: 0.4em 0.6em 0.2em 0.6em;
}


/* 合并行 */
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
  border: 0;
  padding: 0 0.6em 0.2em 0.6em;
}
/* 合并行底 */
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
  border-top: 0;
  border-bottom: 1px solid rgb(162, 169, 177);
  padding: 0 0.6em 0.4em 0.6em;
}
/* 地图栏? */
.infobox.geography .maptable td,
.infobox.geography .maptable th {
  border: 0;
  padding: 0;
}
/* Minerva Neue / Timesless 皮肤用 */
/* 主盒 */
body.skin-minerva .infobox {
body.skin-minerva .infobox {
  float: none;
  position: relative;
   display: flex;
   display: flex;
  flex: 1 1 100%;
   flex-flow: column nowrap;
   flex-flow: column nowrap;
  width: 100%;
  max-width: 100%;
   margin-left: 0;
   margin-left: 0;
   margin-right: 0;
   margin-right: 0;
   margin-bottom: 2em;
   margin-bottom: 2em;
  border: 1px solid #eaecf0;
  font-size: 0.9em;
}


  font-size: 90%;
  border: 1px solid rgb(234, 236, 240);
  background-color: rgb(248, 249, 250);
}
/* 外标题 */
body.skin-minerva .infobox caption {
  padding: 10px 10px 0;
  text-align: center;
}
/* 行 */
body.skin-minerva .infobox th,
body.skin-minerva .infobox td {
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid rgb(236, 238, 242);
  padding: 7px 10px;
}
/* 行 - 弹性盒子 */
body.skin-minerva .infobox tbody > tr > td,
body.skin-minerva .infobox tbody > tr > th {
  flex: 1 0;
}
/* 单元素行 */
body.skin-minerva .infobox td:only-child,
body.skin-minerva .infobox th:only-child {
  width: 100%;
}
/* 重设最后一行的边框 */
body.skin-minerva .infobox tr:last-child th,
body.skin-minerva .infobox tr:last-child td {
  border: 0;
}
/* 外标题 */
body.skin-minerva .infobox > tbody,
body.skin-minerva .infobox > tbody,
body.skin-minerva .infobox > caption {
body.skin-minerva .infobox > caption {
第183行: 第97行:
   flex-flow: column nowrap;
   flex-flow: column nowrap;
}
}
/* 行 */
body.skin-minerva .infobox > tbody > tr {
body.skin-minerva .infobox > tbody > tr {
  min-width: 100%;
   display: flex;
   display: flex;
   flex-flow: row nowrap;
   flex-flow: row nowrap;
  width: 100%;
}
}
/* 响应式设计, 在宽度大于45em时... */
 
@media all and (min-width: 45em) {
body.skin-minerva .infobox-above,
  /* 使Infobox向右浮动同时重设边框 */
body.skin-minerva .infobox-title {
  body.skin-minerva .infobox {
  font-size: 1em;
    margin: 0.5em 0 1em 35px;
    max-width: 320px;
    width: auto;
    float: right;
    clear: right;
  }
}
}


/* 一堆边框相关的东西 */
body.skin-minerva .infobox-title {
body.skin-minerva .infobox.geography th:only-child,
   padding: 10px 10px 0;
body.skin-minerva .infobox.geography .mergedtoprow th:only-child,
   text-align: center;
body.skin-minerva .infobox.geography .mergedbottomrow th:only-child {
   padding: 10px 8px;
   text-align: left;
}
}
body.skin-minerva .infobox.geography th:nth-last-child(2),
 
body.skin-minerva .infobox.geography .mergedtoprow th:nth-last-child(2),
body.skin-minerva .infobox-header,
body.skin-minerva .infobox.geography .mergedbottomrow th:nth-last-child(2),
body.skin-minerva .infobox-label,
body.skin-minerva .infobox.geography th+td,
body.skin-minerva .infobox-above,
body.skin-minerva .infobox.geography .mergedtoprow th+td,
body.skin-minerva .infobox-full-data,
body.skin-minerva .infobox.geography .mergedbottomrow tr+td {
body.skin-minerva .infobox-data,
   padding: 10px 16px;
body.skin-minerva .infobox-below,
   text-align: left;
body.skin-minerva .infobox-subheader,
body.skin-minerva .infobox-image,
body.skin-minerva .infobox-navbar {
  flex: 1 0 0;
  border: none;
  border-bottom: 1px solid #eaecf0;
   padding: 7px 10px;
   vertical-align: top;
}
}
body.skin-minerva .infobox.geography .mergedtoprow td,
 
body.skin-minerva .infobox.geography .mergedtoprow th,
body.skin-minerva .infobox tr:last-child td,
body.skin-minerva .infobox.geography th {
body.skin-minerva .infobox tr:last-child th {
  border-top: 1px solid rgb(236, 238, 242);
   border-bottom: none;
}
body.skin-minerva .infobox.geography .mergedrow th:first-child {
   border-top: none;
}
}


/* 响应式设计, 在宽度小于45em时... */
/* Resposive styles
@media all and (max-width: 45em) {
* 响应式样式 */
   /* 居中显示Infobox */
 
  body.skin-timeless .infobox {
@media screen and (max-width: 767px) {
    margin: 0 auto 2em;
   .infobox {
    width: auto;
     float: none;
     float: none;
     clear: both;
     max-width: inherit;
    margin-left: 0;
   }
   }
}
}

2022年6月9日 (四) 11:40的版本

/* Infobox template styles
 * Infobox 模板样式
*/

/* Common styles
 * 通用样式 */

.infobox {
  float: right;
  clear: right;
  max-width: 22em;
  width: 100%;
  overflow-x: auto;
  margin: 0.5em 0 0.5em 1em;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
  padding: 0.2em;
  background-color: #f8f9fa;
  font-size: 0.875em;
  line-height: 1.5em;
  color: black;
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar {
  vertical-align: top;
}

.infobox-above,
.infobox-title {
  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
}

.infobox-title {
  padding: 0.2em;
}

.infobox-header,
.infobox-subheader,
.infobox-image,
.infobox-full-data,
.infobox-below {
  text-align: center;
}

.infobox-label,
.infobox-data {
  text-align: left;
}

.infobox-navbar {
  text-align: right;
}

/*
 * not strictly certain these styles are necessary since the modules now
 * exclusively output infobox-subbox or infobox, not both
 * just replicating the module faithfully
*/
.infobox-subbox {
  float: none;
  clear: none;
  padding: 0;
  border: none;
  margin: -3px;
  width: auto;
  min-width: 100%;
  font-size: 1em;
  background-color: transparent;
}

/* Minerva Neue skin styles
 * Minerva Neue 皮肤样式 */

body.skin-minerva .infobox {
  display: flex;
  flex-flow: column nowrap;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 2em;
  border: 1px solid #eaecf0;
  font-size: 0.9em;
}

body.skin-minerva .infobox > tbody,
body.skin-minerva .infobox > caption {
  display: flex;
  flex-flow: column nowrap;
}
body.skin-minerva .infobox > tbody > tr {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
}

body.skin-minerva .infobox-above,
body.skin-minerva .infobox-title {
  font-size: 1em;
}

body.skin-minerva .infobox-title {
  padding: 10px 10px 0;
  text-align: center;
}

body.skin-minerva .infobox-header,
body.skin-minerva .infobox-label,
body.skin-minerva .infobox-above,
body.skin-minerva .infobox-full-data,
body.skin-minerva .infobox-data,
body.skin-minerva .infobox-below,
body.skin-minerva .infobox-subheader,
body.skin-minerva .infobox-image,
body.skin-minerva .infobox-navbar {
  flex: 1 0 0;
  border: none;
  border-bottom: 1px solid #eaecf0;
  padding: 7px 10px;
  vertical-align: top;
}

body.skin-minerva .infobox tr:last-child td,
body.skin-minerva .infobox tr:last-child th {
  border-bottom: none;
}

/* Resposive styles
 * 响应式样式 */

@media screen and (max-width: 767px) {
  .infobox {
    float: none;
    max-width: inherit;
    margin-left: 0;
  }
}