Template:WikiProject banner shell/styles.css
外观
.wpbs .wpb-header td:nth-child(2), .wpbs .wpb-header td:nth-child(3) {
width: 50%;
}/* 專題橫幅展開時的標題寬度照舊,左50%、右50% */
.wpbs .wpb.collapsed .wpb-header td:nth-child(2) {
width: unset;
}/* 專題橫幅收合時的標題寬度根據其評級標誌排列不設寬度 */
.wpbs .wpb .wpb-header-icon div {
max-height: 40px;
overflow: hidden;
}/* 專題橫幅收合時展示專題圖示 */
.wpbs .wpb .wpb-header .metadata {
display: none;
}/* 隱藏專題橫幅元數據 */
.wpbs .wpb .wpb-nonexist {
display: none;
}/* 隱藏套娃式的不存在專題 */
.wpbs .wpb .wpb-header {
display: table-row;
}
.wpbs .wpb:not(.collapsed) .wpb-header-icon {
display: none;
} /* 專題橫幅展開時隱藏專題圖示 hide the header icon when banner expanded */
.wpbs .wpb:not(.collapsed) .wpb-header-icon + .mbox-empty-cell {
display: none;
} /* 專題橫幅展開時隱藏專題圖示 */
.wpbs:not(.collapsed) .wpb-display-when-collapsed {
display: none;
}
.wpbs.collapsed .wpb-hide-when-collapsed {
display: none;
}
.wpbs .wpbs-empty-notice {
text-align: center;
} /* 不存在之專題的警告 */
.wpb.collapsed .header-assessments-text {
display: none;
} /* 專題橫幅收合時,標題不顯示多餘文字 */
.wpb.collapsed .assess, .wpb.collapsed .import, .wpb.collapsed .duplicate-notice{
border-radius: .5em;
padding: 0 .3em;
margin-left: 0.5em;
white-space: nowrap;
font-weight: normal;
border: .05em solid rgb(192, 192, 127);
} /* 重複的專題橫幅添加提示 */
.wpb .header-assessments-text {
background-color: var(--background-color-content-removed,#f8eaba);
color: inherit;
}
body.skin-minerva .oo-ui-window-body .wpb .header-assessments-text {
background-color: var(--background-color-warning-subtle,#fffaef);
color: inherit;
}
.wpbs .wpb-nonexist .wpb-header-icon {
width: 40px;
background-size: 2em;
background-repeat: no-repeat;
background-position: center;
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Template-X.svg/48px-Template-X.svg.png');
} /* 不存在的專題橫幅添加提示圖示 */
.wpbs .wpbs-inner > p {
margin: 2px 0 0 0;
padding-top: .3em;
width: calc(100% - 1.5px);
min-height: 2em;
text-align: center;
border-collapse: collapse;
border: 1px solid #c0c090;
background: var(--background-color-content-removed,#f8eaba);
color: inherit;
} /* 不存在的模板或展開失敗模板添加提示 */
.wpbs .wpbs-inner > p:before {
content: ' ';
background-size: 2em;
background-repeat: no-repeat;
background-position: center;
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Template-X.svg/48px-Template-X.svg.png');
float: left;
} /* 不存在的模板或展開失敗模板添加提示圖示 */
.wpbs .wpbs-inner > p:after {
content: '模板故障';
border-radius: .5em;
padding: 0 .3em;
margin-left: 0.5em;
white-space: nowrap;
font-weight: normal;
border: .05em solid rgb(192, 192, 127);
background: var(--background-color-error,red);
color: inherit;
} /* 不存在的模板或展開失敗模板添加提示 */
_addText {
content: '{{Doc}}[[en:Template:WikiProject banner shell/styles.css]]';
} /* 本頁的wikitext */