Template:Bar chart/styles.css
外观
.bar-chart {
margin: 0.5em;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
border: 1px solid #a2a9b1;
}
.bar-chart caption {
font-weight: bold;
}
.bar-chart th,
.bar-chart td {
padding: 1px;
text-align: left;
}
.bar-chart th[scope="col"]:not(.bar-chart-label-type) {
width: 15em;
}
.bar-chart th[scope="row"]:not(.bar-chart-total) {
font-weight: normal;
}
.bar-chart-bar {
height: 1.25em;
width: 40em;
}
.bar-chart-bar-line {
background-color: #cedff2;
height: 1.25em;
margin: 0 0 0 0;
z-index: 0;
}
.bar-chart-bar-comment {
font-size: 90%;
padding-left: 1em;
}
.bar-chart-bar-numbers {
position: relative;
top: -1.4em;
height: 1.25em;
padding: 0 0 0 2em;
z-index: 10;
width: 40em;
}
.bar-chart-caption {
border-top: 1px solid #aaa;
}
@media (min-width: 720px) {
.bar-chart-left {
float: left;
clear: left;
margin: 0.5em 1em 0.5em 0;
}
.bar-chart-right {
float: right;
clear: right;
margin: 0.5em 0 0.5em 1em;
}
.bar-chart-center {
margin: 0.5em auto;
}
}
@media screen {
html.skin-theme-clientpref-night .bar-chart-bar-line {
background-color: #74497e;
}
}
@media screen and (prefers-color-scheme) {
html.skin-theme-clientpref-os .bar-chart-bar-line {
background-color: #74497e;
}
}