Visitar URL original
Generate the release cycle chart directly as SVG by encukou · Pull Request #1034 · python/devguide · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use black for labels on lighter backgrounds
  • Loading branch information
hugovk committed Jan 22, 2023
commit cee0046d155b390abdb57ba2d83fb97430a774d4
20 changes: 10 additions & 10 deletions _static/devguide_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,30 +47,30 @@
.release-cycle-chart .release-cycle-blob-label {
/* white looks good on both light & dark */
fill: white;
filter:
drop-shadow(1px 1px 0.5px rgba(0, 0, 0, 0.5))
drop-shadow(-1px 1px 0.5px rgba(0, 0, 0, 0.5))
drop-shadow(1px -1px 0.5px rgba(0, 0, 0, 0.5))
drop-shadow(-1px -1px 0.5px rgba(0, 0, 0, 0.5))
;
}

.release-cycle-chart .release-cycle-blob-end-of-life {
.release-cycle-chart .release-cycle-blob-label.release-cycle-blob-security,
.release-cycle-chart .release-cycle-blob-label.release-cycle-blob-bugfix {
/* but use black to improve contrast for lighter backgrounds */
fill: black;
}

.release-cycle-chart .release-cycle-blob.release-cycle-blob-end-of-life {
fill: #DD2200;
stroke: #FF8888;
}

.release-cycle-chart .release-cycle-blob-security {
.release-cycle-chart .release-cycle-blob.release-cycle-blob-security {
fill: #FFDD44;
stroke: #FF8800;
}

.release-cycle-chart .release-cycle-blob-bugfix {
.release-cycle-chart .release-cycle-blob.release-cycle-blob-bugfix {
fill: #00DD22;
stroke: #008844;
}

.release-cycle-chart .release-cycle-blob-feature {
.release-cycle-chart .release-cycle-blob.release-cycle-blob-feature {
fill: #2222EE;
stroke: #008888;
}
2 changes: 1 addition & 1 deletion _tools/release_cycle_template.svg.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
ry="0.25em"
/>
<text
class="release-cycle-blob-label"
class="release-cycle-blob-label release-cycle-blob-{{version.status}}"
x="{{mid_x * SCALE}}"
y="{{(y - 0.1) * SCALE}}"
font-size="{{SCALE * 0.75}}"
Expand Down
30 changes: 15 additions & 15 deletions include/release-cycle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.