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

RIA Wiki 已更新到 1.41!部分 CSS 在新版本下可能有不同的表现,请编辑者注意检查和修改。 目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

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

来自RIA | Wiki
Aunst留言 | 贡献
尝试适配Citizen
Aunst留言 | 贡献
无编辑摘要
第1行: 第1行:
/* Infobox template styles
* Infobox模板样式
*/
/* Common styles
* 通用样式 */
.infobox {
.infobox {
   float: right;
   border: 1px solid rgb(162, 169, 177);
   clear: right;
   border-spacing: 3px;
  max-width: 22em;
   width: 100%;
   width: 100%;
  overflow-x: auto;
   padding: 0.2rem;
  margin: 0.5em 0 0.5em 1em;
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
   padding: 0.2em;
  background-color: #f8f9fa;
   font-size: 0.875em;
   font-size: 0.875em;
   line-height: 1.5em;}
   line-height: 1.5;
}


.infobox-header,
.infobox-header,
第32行: 第20行:
}
}


.infobox-above,
.infobox-label, .infobox-data {
.infobox-title {
  text-align: left;
}
 
.infobox-header, .infobox-subheader, .infobox-image, .infobox-full-data, .infobox-below {
  text-align: center;
}
 
.infobox-above, .infobox-title {
   text-align: center;
   text-align: center;
   font-size: 1.25em;
   font-size: 1.25em;
第41行: 第36行:
.infobox-title {
.infobox-title {
   padding: 0.2em;
   padding: 0.2em;
}
.infobox-header,
.infobox-subheader,
.infobox-image,
.infobox-full-data,
.infobox-below {
  text-align: center;
}
.infobox-label,
.infobox-data {
  text-align: left;
}
}


第60行: 第42行:
}
}


/*
.infobox .navbar {
* 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;
   font-size: 1em;
  background-color: transparent;
}
}


/* Minerva Neue skin styles
@media (min-width: 720px) {
* Minerva Neue皮肤样式 */
  .infobox {
    margin: 0.5em 1em 0.5em 0;
    width: 22rem;
    float: right;
    clear: right;
  }
}
 
@media screen {
  .infobox {
    background-color: rgb(248, 249, 250);
  }


body.skin-minerva .infobox {
  html.skin-theme-clientpref-night .infobox {
  display: flex;
    background-color: rgb(32, 33, 34);
  flex-flow: column nowrap;
    border-color: rgb(84, 89, 93);
  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 {
body.skin-minerva .infobox > caption {
  position: relative;
   display: flex;
   display: flex;
  flex: 1 1 100%;
   flex-flow: column nowrap;
   flex-flow: column nowrap;
}
   margin-bottom: 2rem;
body.skin-minerva .infobox > tbody > tr {
   display: flex;
  flex-flow: row nowrap;
  width: 100%;
}
}


body.skin-minerva .infobox-above,
body.skin-minerva .infobox caption {
body.skin-minerva .infobox-title {
  font-size: 1em;
}
 
body.skin-minerva .infobox-title {
   padding: 10px 10px 0;
   padding: 10px 10px 0;
   text-align: center;
   text-align: center;
}
}


body.skin-minerva .infobox-header,
body.skin-minerva .infobox th,
body.skin-minerva .infobox-label,
body.skin-minerva .infobox td {
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: none;
   border-bottom: 1px solid #eaecf0;
   border-bottom: 1px solid rgb(162, 169, 177);
   padding: 7px 10px;
   padding: 7px 10px;
   vertical-align: top;
   vertical-align: top;
}
}


body.skin-minerva .infobox tr:last-child td,
body.skin-minerva .infobox tbody > tr > td,
body.skin-minerva .infobox tr:last-child th {
body.skin-minerva .infobox tbody > tr > th {
   border-bottom: none;
   flex: 1 0;
}
}


/* Citizen skin styles
body.skin-minerva .infobox td:only-child,
* Citizen皮肤样式 */
body.skin-minerva .infobox th:only-child {
  width: 100%;
}


body.skin-citizen .infobox {
body.skin-minerva .infobox tr:last-child th,
body.skin-minerva .infobox tr:last-child td {
   border: none;
   border: none;
  box-shadow: rgba(0,0,0,0.08) 0 0 0 1px; /* 更新至1.42后替换: var(--border-radius-medium) */
  border-radius: 0.5em; /* 更新至1.42后替换: var(--border-radius-medium) */
  background-color: initial;
}
}


body.skin-citizen .infobox tr:first-of-type th:first-child,
body.skin-minerva .infobox > tbody, body.skin-minerva .infobox > caption {
body.skin-citizen .infobox tr:first-of-type td:first-child  {
   display: flex;
   border-top-left-radius: 0.5em;
   flex-flow: column nowrap;
   border-left-width: 0;
}
}
 
body.skin-minerva .infobox > tbody > tr {
body.skin-citizen .infobox tr:first-of-type th:last-child,
   display: flex;
body.skin-citizen .infobox tr:first-of-type td:last-child  {
   flex-flow: row nowrap;
   border-top-right-radius: 0.5em;
   min-width: 100%;
   border-right-width: 0;
}
 
body.skin-citizen .infobox tr:last-of-type th:first-child,
body.skin-citizen .infobox tr:last-of-type td:first-child  {
   border-bottom-left-radius: 0.5em;
  border-left-width: 0;
}
}


body.skin-citizen .infobox tr:last-of-type th:last-child,
@media screen {
body.skin-citizen .infobox tr:last-of-type td:last-child  {
  html.skin-theme-clientpref-night body.skin-minerva .infobox th,
   border-bottom-right-radius: 0.5em;
   html.skin-theme-clientpref-night body.skin-minerva .infobox td {
  border-right-width: 0;
     border-bottom-color: rgb(84, 89, 93);
}
 
/* Resposive styles
* 响应式样式 */
 
@media screen and (max-width: 767px) {
  .infobox {
     float: none;
    max-width: inherit;
    margin-left: 0;
   }
   }
}
}

2024年10月27日 (日) 21:25的版本

.infobox {
  border: 1px solid rgb(162, 169, 177);
  border-spacing: 3px;
  width: 100%;
  padding: 0.2rem;
  font-size: 0.875em;
  line-height: 1.5;
}

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

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

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

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

.infobox-title {
  padding: 0.2em;
}

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

.infobox .navbar {
  font-size: 1em;
}

@media (min-width: 720px) {
  .infobox {
    margin: 0.5em 1em 0.5em 0;
    width: 22rem;
    float: right;
    clear: right;
  }
}

@media screen {
  .infobox {
    background-color: rgb(248, 249, 250);
  }

  html.skin-theme-clientpref-night .infobox {
    background-color: rgb(32, 33, 34);
    border-color: rgb(84, 89, 93);
  }
}

body.skin-minerva .infobox {
  position: relative;
  display: flex;
  flex: 1 1 100%;
  flex-flow: column nowrap;
  margin-bottom: 2rem;
}

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

body.skin-minerva .infobox th,
body.skin-minerva .infobox td {
  border: none;
  border-bottom: 1px solid rgb(162, 169, 177);
  padding: 7px 10px;
  vertical-align: top;
}

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: none;
}

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;
  min-width: 100%;
}

@media screen {
  html.skin-theme-clientpref-night body.skin-minerva .infobox th,
  html.skin-theme-clientpref-night body.skin-minerva .infobox td {
    border-bottom-color: rgb(84, 89, 93);
  }
}