「MediaWiki:Common.css」の版間の差分
(ページの作成:「→ここに記述したCSSはすべての外装に反映されます: →Default style for navigation boxes: .navbox { →Navbox container style: box-sizing: border-box; border: 1px solid #a2a9b1; width: 100%; margin: auto; clear: both; font-size: 88%; text-align: center; padding: 1px; } .navbox + .navbox { margin-top: -1px; →Single pixel border between adjacent navboxes: } .navbox-inner, .navbox-subgroup { width: 1…」) |
編集の要約なし |
||
1行目: | 1行目: | ||
/* Default style for navigation boxes */ | /* Default style for navigation boxes */ | ||
.navbox { /* Navbox container style */ | .navbox { /* Navbox container style */ | ||
42行目: | 41行目: | ||
.navbox-list { | .navbox-list { | ||
border-color: #fdfdfd; /* Must match background color */ | border-color: #fdfdfd; /* Must match background color */ | ||
} | |||
/* cell spacing for navbox cells */ | |||
tr + tr > .navbox-abovebelow, | |||
tr + tr > .navbox-group, | |||
tr + tr > .navbox-image, | |||
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */ | |||
border-top: 2px solid #fdfdfd; /* Must match background color */ | |||
} | |||
.navbox th, | |||
.navbox-title { | |||
background-color: #ccccff; /* Level 1 color */ | |||
} | |||
.navbox-abovebelow, | |||
th.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: #f7f7f7; /* Even row striping */ | |||
} | |||
.navbox-odd { | |||
background-color: transparent; /* Odd row striping */ | |||
} | } |
2023年4月19日 (水) 20:15時点における版
/* Default style for navigation boxes */
.navbox { /* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
.navbox + .navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-title,
.navbox-abovebelow,
.navbox th {
text-align: center; /* Title, group and above/below styles */
padding-left: 1em;
padding-right: 1em;
}
th.navbox-group { /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,
.navbox-subgroup {
background-color: #fdfdfd; /* Background color */
}
.navbox-list {
border-color: #fdfdfd; /* Must match background color */
}
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
background-color: #ccccff; /* Level 1 color */
}
.navbox-abovebelow,
th.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: #f7f7f7; /* Even row striping */
}
.navbox-odd {
background-color: transparent; /* Odd row striping */
}