|
|
第1行: |
第1行: |
| .infobox {
| | {| class="wikitable" |
| overflow: visible;
| | !变量 |
| width: 100%;
| | !对应内容 |
| max-width: 400px;
| | !是否必填 |
| margin-top: 0;
| | !可选值 |
| margin-bottom: 1.6rem!important;
| | !输出结果 |
| background: var(--color-surface-2);
| | !备注 |
| border-radius: 8px;
| | |- |
| border-spacing: 0;
| | |Picture |
| box-shadow: var(--box-shadow-card);
| | |图片 |
| font-size: 0.875rem;
| | |否 |
| text-align: left;
| | | |
| }
| | | |
| | | |例:MetroNebulaeWorld.png |
| .infobox tbody {
| | |- |
| display: flex;
| | |Description |
| flex-wrap: wrap;
| | |图片下的介绍 |
| }
| | |否 |
| | | | |
| .infobox tr { | | | |
| display: flex;
| | |仅在“Picture”有指定值时生效 |
| box-sizing: border-box;
| | |- |
| flex-direction: column;
| | |Logo |
| padding: 0 10px;
| | |运营方Logo |
| margin-top: 10px;
| | |否 |
| }
| | | |
| | | | |
| .infobox th,
| | |无需填写“文件:” |
| .infobox td {
| | 无指定值则显示为中国国铁标志 |
| padding: 0 5px;
| | |- |
| }
| | |Name |
| | | |线路名 |
| .infobox .infobox-nocol {
| | |是 |
| width: 100%;
| | | |
| flex-direction: row;
| | | |
| }
| | |例:星云轨道交通星云世界线 |
| | | |- |
| .infobox .infobox-nocol th {
| | |Location |
| width: 30%;
| | |运营地点 |
| }
| | |是 |
| | | | |
| .infobox .infobox-nocol td {
| | | |
| width: 70%;
| | |例:星云市 |
| }
| | |- |
| | | |Type |
| .infobox .infobox-col1 {
| | |服务类型 |
| width: 100%;
| | |是 |
| }
| | | |
| | | | |
| .infobox .infobox-col2 {
| | |例:通勤铁路 |
| width: 50%;
| | |- |
| }
| | |System |
| | | |所属系统 |
| .infobox .infobox-col3 {
| | |是 |
| width: calc( 100% / 3 );
| | | |
| }
| | | |
| | | |例:星云市域铁路 |
| .infobox .infobox-col4 {
| | |- |
| width: 25%;
| | |Situation |
| }
| | |目前状况 |
| | | |是 |
| .infobox-data {
| | | |
| min-width: 25%;
| | | |
| }
| | |例:建设中 |
| | | |- |
| .infobox .infobox-image {
| | |Start |
| overflow: hidden;
| | |起点站 |
| padding: 0;
| | |是 |
| margin-top: 0;
| | | |
| border-radius: 8px 8px 0 0;
| | | |
| }
| | | |
| | | |- |
| .infobox-image td {
| | |End |
| padding: 0;
| | |终点站 |
| }
| | |是 |
| | | | |
| .infobox-image th{
| | | |
| padding: 0;
| | | |
| }
| | |- |
| | | |English |
| .infobox-image--light .image {
| | |英文代号 |
| background: #eaecf0;
| | |是 |
| }
| | | |
| | | | |
| .infobox-image--dark .image {
| | | |
| background: #2b2f36;
| | |- |
| }
| | |Structure |
| | | |线路结构 |
| .infobox-image .image:hover img {
| | |是 |
| transform: scale( 1.1 );
| | | |
| }
| | | |
| | | |例:地下、高架 |
| .infobox-image .image img {
| | |- |
| display: block;
| | |Length |
| max-width: 100%;
| | |线路长度 |
| background: var( --background-color-quiet--hover );
| | |是 |
| }
| | | |
| | | | |
| .infobox-image .image img[ src$='.svg' ] {
| | |例:0.00km (0.00mi) |
| background: #eaecf0;
| | |- |
| }
| | |Speed |
| | | |最高速度 |
| .infobox .infobox-title {
| | |是 |
| width: 100%;
| | | |
| margin-top: 20px;
| | | |
| margin-bottom: 5px;
| | |例:120千米/小时 |
| color: var( --color-base--emphasized );
| | |- |
| font-size: 1.4rem;
| | |Lines |
| line-height: 1.4;
| | |正线数目 |
| }
| | |是 |
| | | | |
| .infobox .infobox-title span img {
| | | |
| position: relative;
| | |例:2条 |
| margin-top: -4px;
| | |- |
| margin-right: 4px;
| | |Stations |
| }
| | |车站数目 |
| | | |是 |
| .infobox .infobox-indicator { | | | |
| margin-top: 0;
| | | |
| padding: 0;
| | |例:4个 |
| }
| | |- |
| | | |Gauge |
| .infobox .infobox-subtitle { | | |轨距 |
| margin-top: -5px;
| | |是 |
| margin-bottom: 5px;
| | | |
| }
| | | |
| | | |例:1,435毫米(准轨) |
| .infobox .infobox-indicator th,
| | |- |
| .infobox .infobox-subtitle th {
| | |Electrification |
| display: none;
| | |电气化方式 |
| }
| | |是 |
| | | | |
| .infobox .infobox-header {
| | | |
| width: 100%;
| | |例:AC 2.5kV 接触网供电 |
| padding-top: 15px;
| | |- |
| border-top: 1px solid;
| | |Formation |
| border-color: var( --border-color-base );
| | |列车编组 |
| margin-top: 15px;
| | |是 |
| color: var( --color-base--emphasized );
| | | |
| font-size: 1rem;
| | | |
| }
| | |例:4节/8节地铁D型车 |
| | | |- |
| .infobox-data th {
| | |Opening |
| color: var( --color-base--subtle );
| | |开通运营 |
| font-size: 0.8125rem;
| | |否 |
| font-weight: normal;
| | | |
| letter-spacing: 0.75px;
| | | |
| }
| | | |
| | | |- |
| .infobox-data td {
| | |Extending |
| font-weight: 600;
| | |最近延伸 |
| }
| | |否 |
| | | | |
| .infobox-data ul,
| | | |
| .infobox-data ol {
| | | |
| margin-top: 0;
| | |- |
| }
| | |Owner |
| | | |拥有者 |
| .infobox .infobox-button-bar {
| | |是 |
| width: 100%;
| | | |
| padding: 0;
| | | |
| margin-top: 25px;
| | |例:星云轨道交通集团有限公司 |
| text-align: center;
| | |- |
| }
| | |Operator |
| | | |运营者 |
| .infobox-button-bar th {
| | |是 |
| padding: 0;
| | | |
| }
| | | |
| | | |例:星云地铁第二运营有限公司 |
| .infobox tr:first-of-type .mw-collapsible-toggle {
| | |} |
| position: relative;
| |
| display: none;
| |
| float: none;
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text { | |
| position: absolute;
| |
| right: 0;
| |
| display: block;
| |
| padding: 5px 15px;
| |
| background: var( --color-destructive );
| |
| border-radius: 0 var( --border-radius--medium );
| |
| color: #fff;
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:hover {
| |
| background: var( --color-destructive--hover );
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:active {
| |
| background: var( --color-destructive--active );
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text {
| |
| background: var( --color-primary );
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text:hover {
| |
| background: var( --color-primary--hover );
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text:active {
| |
| background: var( --color-primary--active );
| |
| }
| |
| | |
| .infobox tr:first-of-type .mw-collapsible-toggle:before,
| |
| .infobox tr:first-of-type .mw-collapsible-toggle:after {
| |
| content: none;
| |
| }
| |
| | |
| @media only screen and ( max-width: 720px ) {
| |
| .infobox {
| |
| margin-right: auto;
| |
| margin-left: auto;
| |
| }
| |
|
| |
| .infobox tr:first-of-type .mw-collapsible-toggle {
| |
| display: block;
| |
| }
| |
| }
| |
| | |
| .floatright:disabled {
| |
| margin: 0;
| |
| }
| |
| | |
| .card-button a:hover {
| |
| text-decoration: unset!important;
| |
| } | |