Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cee0046

Browse files
committed
Use black for labels on lighter backgrounds
1 parent b163ac4 commit cee0046

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

_static/devguide_overrides.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,30 @@
4747
.release-cycle-chart .release-cycle-blob-label {
4848
/* white looks good on both light & dark */
4949
fill: white;
50-
filter:
51-
drop-shadow(1px 1px 0.5px rgba(0, 0, 0, 0.5))
52-
drop-shadow(-1px 1px 0.5px rgba(0, 0, 0, 0.5))
53-
drop-shadow(1px -1px 0.5px rgba(0, 0, 0, 0.5))
54-
drop-shadow(-1px -1px 0.5px rgba(0, 0, 0, 0.5))
55-
;
5650
}
5751

58-
.release-cycle-chart .release-cycle-blob-end-of-life {
52+
.release-cycle-chart .release-cycle-blob-label.release-cycle-blob-security,
53+
.release-cycle-chart .release-cycle-blob-label.release-cycle-blob-bugfix {
54+
/* but use black to improve contrast for lighter backgrounds */
55+
fill: black;
56+
}
57+
58+
.release-cycle-chart .release-cycle-blob.release-cycle-blob-end-of-life {
5959
fill: #DD2200;
6060
stroke: #FF8888;
6161
}
6262

63-
.release-cycle-chart .release-cycle-blob-security {
63+
.release-cycle-chart .release-cycle-blob.release-cycle-blob-security {
6464
fill: #FFDD44;
6565
stroke: #FF8800;
6666
}
6767

68-
.release-cycle-chart .release-cycle-blob-bugfix {
68+
.release-cycle-chart .release-cycle-blob.release-cycle-blob-bugfix {
6969
fill: #00DD22;
7070
stroke: #008844;
7171
}
7272

73-
.release-cycle-chart .release-cycle-blob-feature {
73+
.release-cycle-chart .release-cycle-blob.release-cycle-blob-feature {
7474
fill: #2222EE;
7575
stroke: #008888;
7676
}

_tools/release_cycle_template.svg.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
ry="0.25em"
6868
/>
6969
<text
70-
class="release-cycle-blob-label"
70+
class="release-cycle-blob-label release-cycle-blob-{{version.status}}"
7171
x="{{mid_x * SCALE}}"
7272
y="{{(y - 0.1) * SCALE}}"
7373
font-size="{{SCALE * 0.75}}"

include/release-cycle.svg

Lines changed: 15 additions & 15 deletions
Loading

0 commit comments

Comments
 (0)