Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
23 changes: 0 additions & 23 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ td[data-label="warnings"], td[data-label="lint"] {
}

.legend dt {
justify-self: end;
font-weight: normal;
line-height: 1.5;
}

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

/* Mimicking the card progress bars. */
.legend-bar {
--bs-badge-font-size: 0.875rem;
--bs-badge-font-weight: normal;
--bs-badge-padding-y: 0;
--bs-badge-padding-x: 0.5em;
min-width: 6.5rem;
line-height: 20px;
background-color: #4caf50;
}

/* White on the lighter green would not be readable at this size. */
.legend-bar-change {
--bs-badge-color: #15141A;
background: linear-gradient(to left, #94cf96 60%, #4caf50 60%);
text-align: right;
}

@media screen and (max-width: 575px) {
.legend {
grid-template-columns: 1fr;
row-gap: 0.25rem;
}
.legend dt {
justify-self: start;
}
.legend dd {
margin-bottom: 0.5rem;
}
Expand Down
29 changes: 12 additions & 17 deletions templates/index.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,25 @@
<footer class="page-footer mt-4 pt-3 border-top">
<div class="footer-inner mx-auto">
<h2 class="visually-hidden">Legend</h2>
<p>Each language card has two bars:</p>
<dl class="legend">
<dt>
<span class="badge legend-bar">core</span>
</dt>
<dt>core</dt>
<dd>
The <a href="https://docs.python.org/3/tutorial/">Tutorial</a>,
<a href="https://docs.python.org/3/builtins/functions.html">Built-in Functions</a> and
<a href="https://docs.python.org/3/bugs.html">Dealing with Bugs</a>,
which are required before a translation is added to the language
Translation completion for the <a href="https://docs.python.org/3/tutorial/">Tutorial</a>,
<a href="https://docs.python.org/3/builtins/functions.html">Built-in Functions</a>, and
<a href="https://docs.python.org/3/bugs.html">Dealing with Bugs</a>.
These parts must be fully translated before the language is added to the language
switcher on docs.python.org.
</dd>
<dt>
<span class="badge legend-bar">overall</span>
</dt>
<dt>overall</dt>
<dd>
The entire documentation.
</dd>
<dt>
<span class="badge legend-bar legend-bar-change">+0.00%</span>
</dt>
<dd>
Progress over the last 30 days.
Translation completion for the entire documentation.
</dd>
</dl>
<p class="mb-5">
The percentages show how much of the documentation is translated.
Numbers in parentheses show the increase in completion over the last 30 days, in percentage points.
</p>
<p class="small text-body-secondary text-center mb-0">
Measured against the Python {{ python_version }} documentation ({{ release_cycle_status }}).
Last updated {{ generation_time.strftime("on %A %-d %B %Y at %-H:%M:%S %Z") }} (in {{ duration // 60 }} minutes and
Expand Down
Loading