Skip to content

Commit ec0becc

Browse files
authored
Clarify the dashboard legend (#206)
1 parent d6065cc commit ec0becc

2 files changed

Lines changed: 12 additions & 40 deletions

File tree

‎src/style.css‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ td[data-label="warnings"], td[data-label="lint"] {
312312
}
313313

314314
.legend dt {
315-
justify-self: end;
316-
font-weight: normal;
317315
line-height: 1.5;
318316
}
319317

@@ -322,32 +320,11 @@ td[data-label="warnings"], td[data-label="lint"] {
322320
line-height: 1.5;
323321
}
324322

325-
/* Mimicking the card progress bars. */
326-
.legend-bar {
327-
--bs-badge-font-size: 0.875rem;
328-
--bs-badge-font-weight: normal;
329-
--bs-badge-padding-y: 0;
330-
--bs-badge-padding-x: 0.5em;
331-
min-width: 6.5rem;
332-
line-height: 20px;
333-
background-color: #4caf50;
334-
}
335-
336-
/* White on the lighter green would not be readable at this size. */
337-
.legend-bar-change {
338-
--bs-badge-color: #15141A;
339-
background: linear-gradient(to left, #94cf96 60%, #4caf50 60%);
340-
text-align: right;
341-
}
342-
343323
@media screen and (max-width: 575px) {
344324
.legend {
345325
grid-template-columns: 1fr;
346326
row-gap: 0.25rem;
347327
}
348-
.legend dt {
349-
justify-self: start;
350-
}
351328
.legend dd {
352329
margin-bottom: 0.5rem;
353330
}

‎templates/index.html.jinja‎

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,25 @@
6464
<footer class="page-footer mt-4 pt-3 border-top">
6565
<div class="footer-inner mx-auto">
6666
<h2 class="visually-hidden">Legend</h2>
67+
<p>Each language card has two bars:</p>
6768
<dl class="legend">
68-
<dt>
69-
<span class="badge legend-bar">core</span>
70-
</dt>
69+
<dt>core</dt>
7170
<dd>
72-
The <a href="https://docs.python.org/3/tutorial/">Tutorial</a>,
73-
<a href="https://docs.python.org/3/builtins/functions.html">Built-in Functions</a> and
74-
<a href="https://docs.python.org/3/bugs.html">Dealing with Bugs</a>,
75-
which are required before a translation is added to the language
71+
Translation completion for the <a href="https://docs.python.org/3/tutorial/">Tutorial</a>,
72+
<a href="https://docs.python.org/3/builtins/functions.html">Built-in Functions</a>, and
73+
<a href="https://docs.python.org/3/bugs.html">Dealing with Bugs</a>.
74+
These parts must be fully translated before the language is added to the language
7675
switcher on docs.python.org.
7776
</dd>
78-
<dt>
79-
<span class="badge legend-bar">overall</span>
80-
</dt>
77+
<dt>overall</dt>
8178
<dd>
82-
The entire documentation.
83-
</dd>
84-
<dt>
85-
<span class="badge legend-bar legend-bar-change">+0.00%</span>
86-
</dt>
87-
<dd>
88-
Progress over the last 30 days.
79+
Translation completion for the entire documentation.
8980
</dd>
9081
</dl>
82+
<p class="mb-5">
83+
The percentages show how much of the documentation is translated.
84+
Numbers in parentheses show the increase in completion over the last 30 days, in percentage points.
85+
</p>
9186
<p class="small text-body-secondary text-center mb-0">
9287
Measured against the Python {{ python_version }} documentation ({{ release_cycle_status }}).
9388
Last updated {{ generation_time.strftime("on %A %-d %B %Y at %-H:%M:%S %Z") }} (in {{ duration // 60 }} minutes and

0 commit comments

Comments
 (0)