模块:Navbox/styles.css:修订间差异
来自RIA | Wiki
更多操作
更新 |
更新 |
||
| 第1行: | 第1行: | ||
/* Navbox styles | |||
* 导航盒样式 | |||
* | |||
* @source https://en.wikipedia.org/wiki/Module:Navbox/styles.css | |||
* @revision 2021-12-21 | |||
* | |||
* 为了在移动版显示导航框, 所有的 .navbox 类都被替换为 .navbox_alt。 | |||
* 之后应该找技术组改下配置, 使移动版不移除 .navbox 类。 | |||
*/ | |||
.navbox_alt { | |||
box-sizing: border-box; | box-sizing: border-box; | ||
clear: both; | |||
width: 100%; | |||
margin: 1em auto 0; | |||
/* Prevent preceding content from clinging to navboxes */ | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
padding: 1px; | |||
text-align: center; | text-align: center; | ||
font-size: 0.875em; | |||
} | } | ||
. | .navbox_alt .navbox_alt { | ||
margin-top: 0; /* No top margin for nested navboxes */ | margin-top: 0; | ||
/* No top margin for nested navboxes */ | |||
} | } | ||
. | .navbox_alt + .navbox, | ||
. | .navbox_alt + .component-template_styles + .navbox_alt { | ||
margin-top: -1px; /* Single pixel border between adjacent navboxes */ | margin-top: -1px; | ||
/* Single pixel border between adjacent navboxes */ | |||
} | } | ||
. | .navbox-inner, | ||
. | .navbox-subgroup { | ||
width: 100%; | width: 100%; | ||
} | } | ||
. | .navbox-group, | ||
. | .navbox-title, | ||
. | .navbox-abovebelow { | ||
padding: 0.25em 1em; | padding: 0.25em 1em; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
| 第32行: | 第44行: | ||
} | } | ||
. | .navbox-group { | ||
white-space: nowrap; | white-space: nowrap; | ||
text-align: right; | text-align: right; | ||
} | } | ||
. | .navbox_alt, | ||
. | .navbox-subgroup { | ||
background-color: #fdfdfd; | background-color: #fdfdfd; | ||
} | } | ||
. | .navbox-list { | ||
line-height: 1.5em; | line-height: 1.5em; | ||
border-color: #fdfdfd; /* Must match background color */ | border-color: #fdfdfd; | ||
/* Must match background color */ | |||
} | } | ||
. | .navbox-list-with-group { | ||
text-align: left; | text-align: left; | ||
border-left-width: 2px; | border-left-width: 2px; | ||
| 第58行: | 第70行: | ||
/* TODO: figure out how to replace tr as structure; | /* TODO: figure out how to replace tr as structure; | ||
* with div structure it should be just a matter of first-child */ | * with div structure it should be just a matter of first-child */ | ||
tr + tr > . | tr + tr > .navbox-abovebelow, | ||
tr + tr > . | tr + tr > .navbox-group, | ||
tr + tr > . | tr + tr > .navbox-image, | ||
tr + tr > . | tr + tr > .navbox-list { | ||
border-top: 2px solid #fdfdfd; /* Must match background color */ | border-top: 2px solid #fdfdfd; | ||
/* Must match background color */ | |||
} | } | ||
. | .navbox-title { | ||
background-color: # | background-color: #ccccff; | ||
/* Level 1 color */ | |||
} | } | ||
. | .navbox-abovebelow, | ||
. | .navbox-group, | ||
. | .navbox-subgroup .navbox-title { | ||
background-color: # | background-color: #ddddff; | ||
/* Level 2 color */ | |||
} | } | ||
. | .navbox-subgroup .navbox-group, | ||
. | .navbox-subgroup .navbox-abovebelow { | ||
background-color: #e6e6ff; /* Level 3 color */ | background-color: #e6e6ff; | ||
/* Level 3 color */ | |||
} | } | ||
. | .navbox-even { | ||
background-color: # | background-color: #fdfdfd; | ||
} | } | ||
. | .navbox-odd { | ||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
/* TODO: figure out how to remove reliance on td as structure */ | /* TODO: figure out how to remove reliance on td as structure */ | ||
. | .navbox_alt .hlist td dl, | ||
. | .navbox_alt .hlist td ol, | ||
. | .navbox_alt .hlist td ul, | ||
. | .navbox_alt td.hlist dl, | ||
. | .navbox_alt td.hlist ol, | ||
. | .navbox_alt td.hlist ul { | ||
padding: 0.125em 0; | padding: 0.125em 0; | ||
} | } | ||
. | .navbox_alt .navbar { | ||
display: block; | display: block; | ||
font-size: 100%; | font-size: 100%; | ||
} | } | ||
. | .navbox-title .navbar { | ||
float: left; | float: left; | ||
text-align: left; | text-align: left; | ||
margin-right: 0.5em; | margin-right: 0.5em; | ||
} | } | ||
body.skin-minerva . | /* Minerva Neue skin styles | ||
* Minerva Neue 皮肤样式 */ | |||
body.skin-minerva .navbox_alt > table { | |||
margin: 0; | margin: 0; | ||
} | } | ||
2022年6月9日 (四) 14:57的版本
/* Navbox styles
* 导航盒样式
*
* @source https://en.wikipedia.org/wiki/Module:Navbox/styles.css
* @revision 2021-12-21
*
* 为了在移动版显示导航框, 所有的 .navbox 类都被替换为 .navbox_alt。
* 之后应该找技术组改下配置, 使移动版不移除 .navbox 类。
*/
.navbox_alt {
box-sizing: border-box;
clear: both;
width: 100%;
margin: 1em auto 0;
/* Prevent preceding content from clinging to navboxes */
border: 1px solid #a2a9b1;
padding: 1px;
text-align: center;
font-size: 0.875em;
}
.navbox_alt .navbox_alt {
margin-top: 0;
/* No top margin for nested navboxes */
}
.navbox_alt + .navbox,
.navbox_alt + .component-template_styles + .navbox_alt {
margin-top: -1px;
/* Single pixel border between adjacent navboxes */
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em;
line-height: 1.5em;
text-align: center;
}
.navbox-group {
white-space: nowrap;
text-align: right;
}
.navbox_alt,
.navbox-subgroup {
background-color: #fdfdfd;
}
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd;
/* Must match background color */
}
.navbox-list-with-group {
text-align: left;
border-left-width: 2px;
border-left-style: solid;
}
/* cell spacing for navbox cells */
/* Borders above 2nd, 3rd, etc. rows */
/* TODO: figure out how to replace tr as structure;
* with div structure it should be just a matter of first-child */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {
border-top: 2px solid #fdfdfd;
/* Must match background color */
}
.navbox-title {
background-color: #ccccff;
/* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #ddddff;
/* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background-color: #e6e6ff;
/* Level 3 color */
}
.navbox-even {
background-color: #fdfdfd;
}
.navbox-odd {
background-color: transparent;
}
/* TODO: figure out how to remove reliance on td as structure */
.navbox_alt .hlist td dl,
.navbox_alt .hlist td ol,
.navbox_alt .hlist td ul,
.navbox_alt td.hlist dl,
.navbox_alt td.hlist ol,
.navbox_alt td.hlist ul {
padding: 0.125em 0;
}
.navbox_alt .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
float: left;
text-align: left;
margin-right: 0.5em;
}
/* Minerva Neue skin styles
* Minerva Neue 皮肤样式 */
body.skin-minerva .navbox_alt > table {
margin: 0;
}