Template talk:Deployment calendar event card/style.css
Appearance
Rendered with Parsoid
Latest comment: 3 years ago by Lucas Werkmeister (WMDE) in topic Marking backport windows with more than six changes
Marking backport windows with more than six changes
Draft CSS to point out when backport windows have too many changes in them:
.deploycal-item-changes {
counter-reset: changes;
}
.deploycal-item-changes li {
counter-increment: changes;
}
.deploycal-item-changes li::marker {
content: counter(changes, changes) "\a0";
}
@counter-style changes {
system: fixed;
symbols: "•" "•" "•" "•" "•" "•";
fallback: changes-bad;
}
@counter-style changes-bad {
system: cyclic;
symbols: "✘";
}
The first six list items get an ordinary bullet list marker, the other ones get a heavy cross.
Caveats:
- style is not currently limited to backport windows (but I’m assuming no other window type would have so many list items?)
- I’m not sure if
@counter-style
is allowed in TemplateStyles
Thoughts? (CC Krinkle, main editor of this CSS so far.) --Lucas Werkmeister (WMDE) (talk) 10:35, 12 April 2021 (UTC)