Skip to content

Commit 70a2fe5

Browse files
encukounedbat
authored andcommitted
Remove the "shade" rectangle, keep left+right+border or a single rect
1 parent 6ae8f9f commit 70a2fe5

File tree

2 files changed

+36
-39
lines changed

2 files changed

+36
-39
lines changed

_static/devguide_overrides.css

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
}
6262

6363
.release-cycle-chart .release-cycle-status-end-of-life {
64-
--status-bg-color: #DD2200;
65-
--status-border-color: #FF8888;
64+
--status-bg-color: #FF8888;
65+
--status-border-color: #DD2200;
6666
}
6767

6868
.release-cycle-chart .release-cycle-status-security {
@@ -90,24 +90,15 @@
9090
stroke: transparent;
9191
}
9292

93-
.release-cycle-chart .release-cycle-border {
94-
fill: transparent;
93+
.release-cycle-chart .release-cycle-blob-full {
94+
fill: var(--status-bg-color);
9595
stroke: var(--status-border-color);
96-
stroke-width: 1.6px;
9796
}
9897

99-
.release-cycle-chart .release-cycle-shade {
98+
.release-cycle-chart .release-cycle-border {
10099
fill: transparent;
101-
stroke: transparent;
102-
103-
&.release-cycle-status-end-of-life {
104-
fill: #DD2200;
105-
stroke: #FF8888;
106-
}
107-
&.release-cycle-status-feature {
108-
fill: var(--color-background-primary);
109-
opacity: 50%;
110-
}
100+
stroke: var(--status-border-color);
101+
stroke-width: 1.6px;
111102
}
112103

113104
.good pre {

_tools/release_cycle_template.svg.jinja

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -127,27 +127,33 @@
127127
Z {#- left -#}
128128
"
129129
/>
130+
<!-- Add a common border -->
131+
<rect
132+
class="release-cycle-border release-cycle-status-{{ version.status }}"
133+
x="{{ start_x }}"
134+
y="{{ top_y }}"
135+
width="{{ (end_x - start_x) }}"
136+
height="{{ height }}"
137+
rx="0.25em"
138+
ry="0.25em"
139+
mask="url(#release-cycle-mask-{{ id_key }})"
140+
/>
141+
{% else %}
142+
<!-- For EOL releases, use a single rounded rectangle -->
143+
<rect
144+
class="release-cycle-blob release-cycle-blob-full
145+
release-cycle-status-{{ version.status }}"
146+
x="{{ start_x }}"
147+
y="{{ top_y }}"
148+
width="{{ (end_x - start_x) }}"
149+
height="{{ height }}"
150+
rx="0.25em"
151+
ry="0.25em"
152+
mask="url(#release-cycle-mask-{{ id_key }})"
153+
/>
130154
{% endif %}
131-
<rect
132-
class="release-cycle-shade release-cycle-status-{{ version.status }}"
133-
x="{{ start_x }}"
134-
y="{{ top_y }}"
135-
width="{{ (end_x - start_x) }}"
136-
height="{{ height }}"
137-
rx="0.25em"
138-
ry="0.25em"
139-
mask="url(#release-cycle-mask-{{ id_key }})"
140-
/>
141-
<rect
142-
class="release-cycle-border release-cycle-status-{{ version.status }}"
143-
x="{{ start_x }}"
144-
y="{{ top_y }}"
145-
width="{{ (end_x - start_x) }}"
146-
height="{{ height }}"
147-
rx="0.25em"
148-
ry="0.25em"
149-
mask="url(#release-cycle-mask-{{ id_key }})"
150-
/>
155+
156+
<!-- Add text before/after/inside the blob -->
151157
<text
152158
class="release-cycle-blob-label release-cycle-status-{{ version.status }}"
153159
font-size="{{ SCALE * 0.75 }}"
@@ -165,9 +171,9 @@
165171
x="{{ start_x - (0.5 * SCALE) }}"
166172
text-anchor="end"
167173
{% endif %}
168-
>
169-
{{ version.status }}
170-
</text>
174+
>
175+
{{ version.status }}
176+
</text>
171177

172178
<!-- Legend on the left -->
173179
<text

0 commit comments

Comments
 (0)