Skip to content

Commit 21ef7f6

Browse files
committed
move install instructions button next to release notes link
1 parent be389c6 commit 21ef7f6

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

_includes/download/board.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ <h3>CircuitPython {{ version.version }}</h3>
4545
Older bootloaders cannot load the firmware. See <i>Update UF2 Bootloader</i> below.</b>
4646
</p>
4747
{% endif %}
48-
<p>
49-
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
50-
</p>
48+
<div class="release-details">
49+
<p>
50+
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
51+
</p>
52+
{% if page.download_instructions != nil and page.download_instructions != "" %}
53+
<a class="download-button install-instructions-button" target="_blank" href="{{ page.download_instructions }}">INSTALL INSTRUCTIONS<i class="fas fa-arrow-circle-right" aria-hidden="true"></i></a>
54+
{% endif %}
55+
</div>
5156
<div class="download-details">
5257
{% comment %}
5358
Create a list of language codes and names so it can be sorted.
@@ -142,12 +147,6 @@ <h3>CircuitPython {{ version.version }}</h3>
142147
version="{{ version.version }}"
143148
>OPEN INSTALLER <i class="fas fa-magic" aria-hidden="true"></i></button>
144149
{% endif %}
145-
{% if page.download_instructions != nil and page.download_instructions != "" %}
146-
<div>
147-
<a class="download-button" href="{{ page.download_instructions }}">INSTALLATION INSTRUCTIONS<i class="fas fa-arrow-circle-right" aria-hidden="true"></i></a>
148-
<div class="clear"></div>
149-
</div>
150-
{% endif %}
151150
</div>
152151
</div>
153152
{% if version.modules %}

assets/sass/pages/_download.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@
5858
}
5959
}
6060

61-
.download-details {
61+
.install-instructions-button{
62+
width: 100%;
63+
margin-bottom: 1em;
64+
}
65+
66+
.download-details, .release-details {
6267
display: grid;
6368
grid-template-columns: repeat(2, 1fr);
6469
}
@@ -192,7 +197,7 @@
192197
grid-template-columns: 1fr 1fr;
193198

194199
.download {
195-
.download-details {
200+
.download-details, .release-details {
196201
grid-template-columns: repeat(1, 1fr);
197202
}
198203

0 commit comments

Comments
 (0)