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
8 changes: 4 additions & 4 deletions _layouts/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3>CircuitPython {{ version.version }}</h3>
Unstable builds have the latest features but are more likely to have critical bugs.
{% endif %}
</p>
<div>
<div class="download-details">
<label class="language-select">
<select>
{% for file in version.files %}
Expand Down Expand Up @@ -61,12 +61,12 @@ <h3>CircuitPython {{ version.version }}</h3>
{% endfor %}
</select>
</label>
<div class="download-buttons">
{% for file in version.files['en_US'] %}
<a class="download-button-{{stable}}" href="{{ file }}">DOWNLOAD {{ file | slice: -4, 4 | upcase }} NOW <i class="fas fa-download"></i></a>
{% endfor %}
<div class="clear"></div>

</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
Expand Down
64 changes: 47 additions & 17 deletions assets/sass/pages/_download.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
background-color: #fff;
border-radius: 5px;
padding: 20px;
margin-bottom: 1em;
}

.details {
Expand All @@ -43,24 +44,41 @@
}

.download {
a {
display: inline-block;
width: auto;
padding: 15px 30px 15px 30px;
color: #fff;
border-radius: 5px;
border: none;

i {
padding-left: 10px;
}
}

.download-details {
display: grid;
grid-template-columns: repeat(2, 1fr);
}

.language-select {
float: left;
margin-right: 10px;
margin-right: 1em;
border-radius: 5px;
border: 2px solid $gray;
overflow: hidden;
height: 45px;
width: 200px;
position: relative;
display: block;
}

select{
height: 45px;
width: 100%;
padding: 5px;
border: 0;
font-size: 16px;
width: 200px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
Expand Down Expand Up @@ -118,15 +136,18 @@
}
}

a {
float: left;
padding: 15px 37px 15px 37px;
color: #fff;
border-radius: 5px;
border: none;

i {
padding-left: 10px;
.download-buttons {
a {
width: 100%;
height: 49px;
padding: 0;
text-align: center;
line-height: 49px;
margin-bottom: 1em;

&:last-child {
margin-bottom: 0;
}
}
}
}
Expand All @@ -140,12 +161,21 @@
}

@media (max-width: $screen-md) {
#download-page .download-section {
grid-template-columns: 1fr 1fr;
}
#download-page {
.download-section {
grid-template-columns: 1fr 1fr;

.download {
.download-details {
grid-template-columns: repeat(1, 1fr);
}

.language-select {
margin-bottom: 10px;
.language-select {
margin-right: 0;
margin-bottom: 1em;
}
}
}
}
}

Expand Down