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

来自Kyoshihira Encyclopedia
跳转到导航 跳转到搜索
Lhscogs​(留言 | 贡献)
无编辑摘要
标签:已被回退
Lhscogs​(留言 | 贡献)
无编辑摘要
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
/* 信息框整体样式 */
.infobox td.infobox-image {
.infobox,
  text-align: center !important;
}
 
.infobox td.infobox-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
 
/* {{pp-template|small=yes}} */
.ib-country {
.ib-country {
  border: 1px solid var(--border-color-base, #a2a9b1);
border-collapse: collapse;
  background-color: var(--background-color-infobox, #f9f9f9); /* 关键 */
line-height: 1.2em;
  width: 22em;
  font-size: 88%;
  line-height: 1.5em;
  padding: 0.4em;
  border-collapse: collapse;
}
}


.ib-country {
/* TODO split definitions to appropriate class names when live from HTML element */
  border: 1px solid red !important;
.ib-country td,
  border-collapse: collapse;
.ib-country th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
 
.ib-country .mergedtoprow .infobox-header,
.ib-country .mergedtoprow .infobox-label,
.ib-country .mergedtoprow .infobox-data,
.ib-country .mergedtoprow .infobox-full-data,
.ib-country .mergedtoprow .infobox-below {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
 
.ib-country .mergedrow .infobox-label,
.ib-country .mergedrow .infobox-data,
.ib-country .mergedrow .infobox-full-data {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
 
.ib-country .mergedbottomrow .infobox-label,
.ib-country .mergedbottomrow .infobox-data,
.ib-country .mergedbottomrow .infobox-full-data {
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
 
.ib-country .infobox-header {
text-align: left;
}
 
.ib-country .infobox-above {
font-size: 125%;
line-height: 1.2;
}
 
.ib-country-names {
padding-top: 0.25em;
font-weight: normal;
}
}


.ib-country-name-style {
display: inline;
}


.mw-parser-output table.infobox.ib-country {
.ib-country .infobox-image {
  border: 2px solid #444 !important;
padding: 0.5em 0;
}
}


.infobox {
.ib-country-anthem {
  border: 1px solid #aaa !important;
border-top: 1px solid #a2a9b1;
  width: 22em !important;
padding-top: 0.5em;
  font-size: 88% !important;
margin-top: 0.5em;
  line-height: 1.5em !important;
}
  padding: 0.4em !important;
 
  border-collapse: collapse !important;/* 表格边框合并 */
.ib-country-map-caption {
  margin: 0.5em 0;               /* 上下外边距 */
position: relative;
top: 0.3em;
}


  box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* 轻微阴影,可选 */
.ib-country-largest,
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 字体样式 */
.ib-country-lang {
font-weight: normal;
}
}


/* 单元格边框与内边距 */
.ib-country-ethnic,
.infobox td,
.ib-country-religion,
.infobox th {
.ib-country-sovereignty {
  border: 1px solid #ccc;       /* 单元格边框 */
font-weight: normal;
  padding: 0.4em 0.6em;        /* 内边距 */
display: inline;
  vertical-align: top;         /* 内容顶部对齐 */
}
}


/* 表头样式 */
.ib-country-fake-li {
.infobox th {
text-indent: -0.9em;
  background-color: #ddd;       /* 表头背景色 */
margin-left: 1.2em;
  font-weight: bold;
font-weight: normal;
  text-align: left;
}
}


/* 信息框标题 */
.ib-country-fake-li2 {
.infobox .infobox-header {
text-indent: 0.5em;
  font-size: 110%;
margin-left: 1em;
  font-weight: bold;
font-weight: normal;
  padding: 0.6em 0.8em;
  background-color: #ccc;
  border-bottom: 1px solid #aaa;
}
}


/* 图片单元格调整 */
.ib-country-website {
.infobox .infobox-image {
line-height: 11pt;
  padding: 0.5em;
  text-align: center;
}
}


/* 合并的顶部行 */
.ib-country-map-caption3 {
.infobox .mergedtoprow th,
position: relative;
.infobox .mergedtoprow td {
top: 0.3em;
  border-top: 2px solid #888;
  padding-top: 0.5em;
}
}


/* 合并的底部行 */
.ib-country-fn {
.infobox .mergedbottomrow th,
text-align: left;
.infobox .mergedbottomrow td {
margin: 0 auto;
  border-bottom: 2px solid #888;
  padding-bottom: 0.5em;
}
}


/* 链接和文字颜色 */
.ib-country-fn-alpha {
.infobox a {
list-style-type: lower-alpha;
  color: #0645ad;
margin-left: 1em;
  text-decoration: none;
}
}


.infobox a:hover {
.ib-country-fn-num {
  text-decoration: underline;
margin-left: 1em;
}
}

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

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

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

/* {{pp-template|small=yes}} */
.ib-country {
	border-collapse: collapse;
	line-height: 1.2em;
}

/* TODO split definitions to appropriate class names when live from HTML element */
.ib-country td,
.ib-country th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.4em 0.6em;
}

.ib-country .mergedtoprow .infobox-header,
.ib-country .mergedtoprow .infobox-label,
.ib-country .mergedtoprow .infobox-data,
.ib-country .mergedtoprow .infobox-full-data,
.ib-country .mergedtoprow .infobox-below {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.2em 0.6em;
}

.ib-country .mergedrow .infobox-label,
.ib-country .mergedrow .infobox-data,
.ib-country .mergedrow .infobox-full-data {
	border: 0;
	padding: 0 0.6em 0.2em 0.6em;
}

.ib-country .mergedbottomrow .infobox-label,
.ib-country .mergedbottomrow .infobox-data,
.ib-country .mergedbottomrow .infobox-full-data {
	border-top: 0;
	border-bottom: 1px solid #a2a9b1;
	padding: 0 0.6em 0.4em 0.6em;
}

.ib-country .infobox-header {
	text-align: left;
}

.ib-country .infobox-above {
	font-size: 125%;
	line-height: 1.2;
}

.ib-country-names {
	padding-top: 0.25em;
	font-weight: normal;
}

.ib-country-name-style {
	display: inline;
}

.ib-country .infobox-image {
	padding: 0.5em 0;
}

.ib-country-anthem {
	border-top: 1px solid #a2a9b1;
	padding-top: 0.5em;
	margin-top: 0.5em;
}

.ib-country-map-caption {
	position: relative;
	top: 0.3em;
}

.ib-country-largest,
.ib-country-lang {
	font-weight: normal;
}

.ib-country-ethnic,
.ib-country-religion,
.ib-country-sovereignty {
	font-weight: normal;
	display: inline;
}

.ib-country-fake-li {
	text-indent: -0.9em;
	margin-left: 1.2em;
	font-weight: normal;
}

.ib-country-fake-li2 {
	text-indent: 0.5em;
	margin-left: 1em;
	font-weight: normal;
}

.ib-country-website {
	line-height: 11pt;
}

.ib-country-map-caption3 {
	position: relative;
	top: 0.3em;
}

.ib-country-fn {
	text-align: left;
	margin: 0 auto;
}

.ib-country-fn-alpha {
	list-style-type: lower-alpha;
	margin-left: 1em;
}

.ib-country-fn-num {
	margin-left: 1em;
}