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

来自Kyoshihira Encyclopedia
跳转到导航 跳转到搜索
Lhscogs​(留言 | 贡献)
无编辑摘要
标签:已被回退
Lhscogs​(留言 | 贡献)
无编辑摘要
标签:已被回退
第1行: 第1行:
/* {{pp-template|small=yes}} */
/* 信息框整体样式 */
.ib-country {
.infobox {
border-collapse: collapse;
  border: 1px solid #aaa;        /* 边框颜色和宽度 */
line-height: 1.2em;
  background-color: #f9f9f9;      /* 背景色 */
}
  width: 22em;                  /* 固定宽度 */
  font-size: 88%;               /* 字体大小 */
/* TODO split definitions to appropriate class names when live from HTML element */
  line-height: 1.3em;           /* 行高 */
.ib-country td,
  border-collapse: collapse;    /* 表格边框合并 */
.ib-country th {
  margin: 0.5em 0;              /* 上下外边距 */
border-top: 1px solid #a2a9b1;
  padding: 0;                   /* 表格本身无内边距 */
padding: 0.4em 0.6em 0.4em 0.6em;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* 轻微阴影,可选 */
}
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 字体样式 */
}
.ib-country .mergedtoprow .infobox-header,
 
.ib-country .mergedtoprow .infobox-label,
/* 单元格边框与内边距 */
.ib-country .mergedtoprow .infobox-data,
.infobox td,
.ib-country .mergedtoprow .infobox-full-data,
.infobox th {
.ib-country .mergedtoprow .infobox-below {
  border: 1px solid #ccc;       /* 单元格边框 */
border-top: 1px solid #a2a9b1;
  padding: 0.4em 0.6em;         /* 内边距 */
padding: 0.4em 0.6em 0.2em 0.6em;
  vertical-align: top;         /* 内容顶部对齐 */
}
}
 
.ib-country .mergedrow .infobox-label,
/* 表头样式 */
.ib-country .mergedrow .infobox-data,
.infobox th {
.ib-country .mergedrow .infobox-full-data {
  background-color: #ddd;       /* 表头背景色 */
border: 0;
  font-weight: bold;
padding: 0 0.6em 0.2em 0.6em;
  text-align: left;
}
}
 
.ib-country .mergedbottomrow .infobox-label,
/* 信息框标题 */
.ib-country .mergedbottomrow .infobox-data,
.infobox .infobox-header {
.ib-country .mergedbottomrow .infobox-full-data {
  font-size: 110%;
border-top: 0;
  font-weight: bold;
border-bottom: 1px solid #a2a9b1;
  padding: 0.6em 0.8em;
padding: 0 0.6em 0.4em 0.6em;
  background-color: #ccc;
}
  border-bottom: 1px solid #aaa;
}
.ib-country .infobox-header {
 
text-align: left;
/* 图片单元格调整 */
}
.infobox .infobox-image {
  padding: 0.5em;
.ib-country .infobox-above {
  text-align: center;
font-size: 125%;
}
line-height: 1.2;
 
}
/* 合并的顶部行 */
.infobox .mergedtoprow th,
.ib-country-names {
.infobox .mergedtoprow td {
padding-top: 0.25em;
  border-top: 2px solid #888;
font-weight: normal;
  padding-top: 0.5em;
}
}
 
.ib-country-name-style {
/* 合并的底部行 */
display: inline;
.infobox .mergedbottomrow th,
}
.infobox .mergedbottomrow td {
  border-bottom: 2px solid #888;
.ib-country .infobox-image {
  padding-bottom: 0.5em;
padding: 0.5em 0;
}
}
 
/* 链接和文字颜色 */
.ib-country-anthem {
.infobox a {
border-top: 1px solid #a2a9b1;
   color: #0645ad;
padding-top: 0.5em;
   text-decoration: none;
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;
}
/* 为 ib-country 添加边框及背景样式 */
.ib-country {
   border: 1px solid #aaa;
  background-color: #f9f9f9;
   width: 22em;
  font-size: 88%;
  line-height: 1.5em;
  padding: 0.4em;
  border-collapse: collapse; /* 让边框合并 */
}
}


/* 如果你的信息框也有 infobox 类,可以一起写 */
.infobox a:hover {
.infobox {
   text-decoration: underline;
   border: 1px solid #aaa;
  background-color: #f9f9f9;
  width: 22em;
  font-size: 88%;
  line-height: 1.5em;
  padding: 0.4em;
  border-collapse: collapse;
}
}

2025年6月28日 (六) 15:09的版本

/* 信息框整体样式 */
.infobox {
  border: 1px solid #aaa;         /* 边框颜色和宽度 */
  background-color: #f9f9f9;      /* 背景色 */
  width: 22em;                   /* 固定宽度 */
  font-size: 88%;                /* 字体大小 */
  line-height: 1.3em;            /* 行高 */
  border-collapse: collapse;    /* 表格边框合并 */
  margin: 0.5em 0;               /* 上下外边距 */
  padding: 0;                   /* 表格本身无内边距 */
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* 轻微阴影,可选 */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 字体样式 */
}

/* 单元格边框与内边距 */
.infobox td,
.infobox th {
  border: 1px solid #ccc;       /* 单元格边框 */
  padding: 0.4em 0.6em;         /* 内边距 */
  vertical-align: top;          /* 内容顶部对齐 */
}

/* 表头样式 */
.infobox th {
  background-color: #ddd;        /* 表头背景色 */
  font-weight: bold;
  text-align: left;
}

/* 信息框标题 */
.infobox .infobox-header {
  font-size: 110%;
  font-weight: bold;
  padding: 0.6em 0.8em;
  background-color: #ccc;
  border-bottom: 1px solid #aaa;
}

/* 图片单元格调整 */
.infobox .infobox-image {
  padding: 0.5em;
  text-align: center;
}

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

/* 合并的底部行 */
.infobox .mergedbottomrow th,
.infobox .mergedbottomrow td {
  border-bottom: 2px solid #888;
  padding-bottom: 0.5em;
}

/* 链接和文字颜色 */
.infobox a {
  color: #0645ad;
  text-decoration: none;
}

.infobox a:hover {
  text-decoration: underline;
}