Template:Infobox/styles.css:修订间差异

来自Kyoshihira Encyclopedia
跳转到导航 跳转到搜索
Lhscogs​(留言 | 贡献)
 
Lhscogs​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
/* The caption element is usually aligned to the left in the mobile skin, but this makes inconsistent with
.infobox td.infobox-image {
the desktop skin (Vector) while the element is used in infobox, this fixes that. */
  text-align: center !important;
body.skin-minerva table.infobox caption {
}
text-align: center;
 
.infobox td.infobox-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
 
.infobox .infobox-caption {
  text-align: center !important;
  display: block;
}
 
.infobox {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  color: black;
  margin: 0.5em 0 0.5em 1em;
  padding: 0.2em;
  float: right;
  clear: right;
  font-size: 88%;
  line-height: 1.5em;
  width: 22em;
}
 
.infobox caption {
  font-size: 125%;
  font-weight: bold;
  text-align: center;
}
 
.infobox td,
.infobox th {
  vertical-align: top;
}
 
.infobox .infobox-above,
.infobox .infobox-subheader,
.infobox caption {
  background-color: #cedff2;
  text-align: center;
}
}

2025年6月30日 (一) 19:08的最新版本

.infobox td.infobox-image {
  text-align: center !important;
}

.infobox td.infobox-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.infobox .infobox-caption {
  text-align: center !important;
  display: block;
}

.infobox {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  color: black;
  margin: 0.5em 0 0.5em 1em;
  padding: 0.2em;
  float: right;
  clear: right;
  font-size: 88%;
  line-height: 1.5em;
  width: 22em;
}

.infobox caption {
  font-size: 125%;
  font-weight: bold;
  text-align: center;
}

.infobox td,
.infobox th {
  vertical-align: top;
}

.infobox .infobox-above,
.infobox .infobox-subheader,
.infobox caption {
  background-color: #cedff2;
  text-align: center;
}