Skip to content

Commit 2926a88

Browse files
committed
Show EOL ones as red
1 parent 0f24453 commit 2926a88

File tree

2 files changed

+81
-77
lines changed

2 files changed

+81
-77
lines changed

_static/devguide_overrides.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
.release-cycle-chart .release-cycle-blob-label {
4747
/* white looks good on both light & dark */
48-
fill: var(--color-foreground-primary);
48+
fill: white;
4949
}
5050

5151
.release-cycle-chart .release-cycle-blob-label.release-cycle-status-security,
@@ -54,6 +54,11 @@
5454
fill: black;
5555
}
5656

57+
.release-cycle-chart .release-cycle-blob-label.release-cycle-status-feature {
58+
/* and FG when it's not in a pill */
59+
fill: var(--color-foreground-primary);
60+
}
61+
5762
.release-cycle-chart .release-cycle-status-end-of-life {
5863
--status-bg-color: #DD2200;
5964
--status-border-color: #FF8888;
@@ -93,11 +98,14 @@
9398
.release-cycle-chart .release-cycle-shade {
9499
fill: transparent;
95100
stroke: transparent;
96-
opacity: 50%;
97101

98-
&.release-cycle-status-end-of-life,
102+
&.release-cycle-status-end-of-life {
103+
fill: #DD2200;
104+
stroke: #FF8888;
105+
}
99106
&.release-cycle-status-feature {
100107
fill: var(--color-background-primary);
108+
opacity: 50%;
101109
}
102110
}
103111

_tools/release_cycle_template.svg.jinja

Lines changed: 70 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -73,83 +73,33 @@
7373
{% set recty = (y - 1) * SCALE %}
7474
{% set radius_value = 0.25 * SCALE %}
7575

76-
<path
77-
class="release-cycle-blob release-cycle-status-bugfix"
78-
d="
79-
M{{ left_x + radius_value }},{{ recty }}
80-
q{{ -radius_value }},0 {{ -radius_value }},{{ radius_value }}
81-
v{{ height - 2*radius_value }}
82-
Q{{ left_x }},{{ recty + height }} {{ left_x + radius_value }},{{ recty + height }}
83-
H{{ middle_x }}
84-
V{{ recty }}
85-
Z
86-
"
87-
/>
88-
89-
{% if version.key != "3.0" %}
90-
<path
91-
class="release-cycle-blob release-cycle-status-security"
92-
d="
93-
M{{ right_x }},{{ recty }}
94-
H{{ right_x + right_width - radius_value }}
95-
Q{{ right_x + right_width }},{{ recty }} {{ right_x + right_width }},{{ recty + radius_value }}
96-
V{{ recty + height - radius_value }}
97-
Q{{ right_x + right_width }},{{ recty + height }} {{ right_x + right_width - radius_value }},{{ recty + height }}
76+
{% if version.status != "end-of-life" %}
77+
<!-- Split the pill -->
78+
<path
79+
class="release-cycle-blob release-cycle-status-bugfix"
80+
d="
81+
M{{ left_x + radius_value }},{{ recty }}
82+
q{{ -radius_value }},0 {{ -radius_value }},{{ radius_value }}
83+
v{{ height - 2*radius_value }}
84+
Q{{ left_x }},{{ recty + height }} {{ left_x + radius_value }},{{ recty + height }}
9885
H{{ middle_x }}
9986
V{{ recty }}
10087
Z
101-
"
102-
/>
103-
{% endif %}
104-
<rect
105-
class="release-cycle-border release-cycle-status-{{ version.status }}"
106-
x="{{ start_x * SCALE }}"
107-
y="{{ (y - 1) * SCALE }}"
108-
width="{{ (end_x - start_x) * SCALE }}"
109-
height="{{ 1.25 * SCALE }}"
110-
rx="0.25em"
111-
ry="0.25em"
112-
/>
113-
{% if version.status == "bugfix" %}
114-
<text
115-
class="release-cycle-blob-label release-cycle-status-bugfix"
116-
x="{{ (start_x + half_x) / 2 * SCALE }}"
117-
y="{{ (y - 0.1) * SCALE }}"
118-
font-size="{{ SCALE * 0.75 }}"
119-
text-anchor="middle"
120-
>
121-
bugfix
122-
</text>
123-
{% elif version.status == "security" %}
124-
<text
125-
class="release-cycle-blob-label release-cycle-status-security"
126-
x="{{ (half_x + end_x) / 2 * SCALE }}"
127-
y="{{ (y - 0.1) * SCALE }}"
128-
font-size="{{ SCALE * 0.75 }}"
129-
text-anchor="middle"
130-
>
131-
security
132-
</text>
133-
{% elif version.status == "end-of-life" %}
134-
<text
135-
class="release-cycle-blob-label release-cycle-status-end-of-life"
136-
x="{{ (end_x + 0.5) * SCALE }}"
137-
y="{{ (y - 0.1) * SCALE }}"
138-
font-size="{{ SCALE * 0.75 }}"
139-
text-anchor="start"
140-
>
141-
end-of-life
142-
</text>
143-
{% elif version.status == "feature" %}
144-
<text
145-
class="release-cycle-blob-label release-cycle-status-feature"
146-
x="{{ (start_x - 0.5) * SCALE }}"
147-
y="{{ (y - 0.1) * SCALE }}"
148-
font-size="{{ SCALE * 0.75 }}"
149-
text-anchor="end"
150-
>
151-
feature
152-
</text>
88+
"
89+
/>
90+
<path
91+
class="release-cycle-blob release-cycle-status-security"
92+
d="
93+
M{{ right_x }},{{ recty }}
94+
H{{ right_x + right_width - radius_value }}
95+
Q{{ right_x + right_width }},{{ recty }} {{ right_x + right_width }},{{ recty + radius_value }}
96+
V{{ recty + height - radius_value }}
97+
Q{{ right_x + right_width }},{{ recty + height }} {{ right_x + right_width - radius_value }},{{ recty + height }}
98+
H{{ middle_x }}
99+
V{{ recty }}
100+
Z
101+
"
102+
/>
153103
{% endif %}
154104
<rect
155105
class="release-cycle-shade release-cycle-status-{{ version.status }}"
@@ -169,6 +119,52 @@
169119
rx="0.25em"
170120
ry="0.25em"
171121
/>
122+
{% if version.status == "bugfix" %}
123+
<text
124+
class="release-cycle-blob-label release-cycle-status-bugfix"
125+
x="{{ (start_x + half_x) / 2 * SCALE }}"
126+
y="{{ (y - 0.1) * SCALE }}"
127+
font-size="{{ SCALE * 0.75 }}"
128+
text-anchor="middle"
129+
>
130+
bugfix
131+
</text>
132+
{% elif version.status == "security" %}
133+
<text
134+
class="release-cycle-blob-label release-cycle-status-security"
135+
x="{{ (half_x + end_x) / 2 * SCALE }}"
136+
y="{{ (y - 0.1) * SCALE }}"
137+
font-size="{{ SCALE * 0.75 }}"
138+
text-anchor="middle"
139+
>
140+
security
141+
</text>
142+
{% elif version.status == "end-of-life" %}
143+
<text
144+
class="release-cycle-blob-label release-cycle-status-end-of-life"
145+
{% if version.key != "3.0" %}
146+
x="{{ (start_x + end_x) / 2 * SCALE }}"
147+
text-anchor="middle"
148+
{% else %}
149+
x="{{ (end_x + 0.25) * SCALE }}"
150+
text-anchor="start"
151+
{% endif %}
152+
y="{{ (y - 0.1) * SCALE }}"
153+
font-size="{{ SCALE * 0.75 }}"
154+
>
155+
end-of-life
156+
</text>
157+
{% elif version.status == "feature" %}
158+
<text
159+
class="release-cycle-blob-label release-cycle-status-feature"
160+
x="{{ (start_x - 0.5) * SCALE }}"
161+
y="{{ (y - 0.1) * SCALE }}"
162+
font-size="{{ SCALE * 0.75 }}"
163+
text-anchor="end"
164+
>
165+
feature
166+
</text>
167+
{% endif %}
172168
{% endfor %}
173169

174170
<!-- A line for today -->

0 commit comments

Comments
 (0)