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

Skip to content

Commit 7be9287

Browse files
authored
Show release cycle charts on downloads page (#2837)
1 parent 4582e0b commit 7be9287

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

static/sass/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,6 +2589,13 @@ p.quote-by-organization {
25892589
font-size: 0.875em; }
25902590
.active-release-list-widget .list-row-container {
25912591
margin-bottom: .5em; }
2592+
.active-release-list-widget .release-cycle-chart img {
2593+
display: block;
2594+
margin: 0 auto;
2595+
width: 80%; }
2596+
@media screen and (max-width: 860px) {
2597+
.active-release-list-widget .release-cycle-chart img {
2598+
width: 100%; } }
25922599

25932600
.download-list-widget {
25942601
/*modernizr*/ }

static/sass/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,14 @@ $colors: $blue, $psf, $yellow, $green, $purple, $red;
16961696

16971697
.list-row-container { margin-bottom: .5em; }
16981698

1699+
.release-cycle-chart img {
1700+
display: block;
1701+
margin: 0 auto;
1702+
width: 80%;
1703+
@media screen and (max-width: 860px) {
1704+
width: 100%;
1705+
}
1706+
}
16991707
}
17001708

17011709
.download-list-widget {

templates/downloads/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ <h1 class="call-to-action">Download the latest version of Python</h1>
5353
<h2 class="widget-title">Active Python releases</h2>
5454
<p class="success-quote"><a href="https://devguide.python.org/versions/#versions">For more information visit the Python Developer's Guide</a>.</p>
5555

56+
<p class="release-cycle-chart"><img src="https://devguide.python.org/_static/release-cycle.svg" alt="Python release cycle"></p>
57+
5658
{% box 'downloads-active-releases' %}
5759
</div>
5860

@@ -89,9 +91,9 @@ <h2 class="widget-title">Looking for a specific release?</h2>
8991
</div>
9092
</div>
9193

92-
<div class="row">
94+
<div class="row">
9395

94-
<div class="small-widget download-widget1">
96+
<div class="small-widget download-widget1">
9597
{% box 'download-widget1' %}
9698

9799
</div>
@@ -101,7 +103,7 @@ <h2 class="widget-title">Looking for a specific release?</h2>
101103

102104
</div>
103105

104-
<div class="small-widget download-widget3">
106+
<div class="small-widget download-widget3">
105107
{% box 'download-widget3' %}
106108

107109
</div>

0 commit comments

Comments
 (0)