Skip to content

Commit 57671ae

Browse files
committed
modules section
1 parent 5fb6bb7 commit 57671ae

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

_includes/download/board.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,19 @@ <h3>CircuitPython {{ version.version }}</h3>
148148
<a class="install-instructions" target="_blank" href="{{ page.download_instructions }}">Learn how to install CircuitPython on this board <i class="fas fa-external-link-alt" aria-hidden="true"></i></a>
149149
{% endif %}
150150
{% if version.modules %}
151-
<p>
152-
Built-in modules available:
151+
<details>
152+
<summary>Modules included in this download</summary>
153153
<span class="download-modules {% if version.stable %}stable{% else %}unstable{% endif %}">
154154
{% for module_name in version.modules %}
155155
{% if module_name contains "." %}
156156
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name | split: '.' | first }}/#{{ module_name }}">
157157
{% else %}
158158
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name }}">
159159
{% endif %}
160-
{{ module_name }}</a>{% unless forloop.last %}, {% endunless %}
160+
{{ module_name }}</a>
161161
{% endfor %}
162162
</span>
163-
</p>
163+
</details>
164164
{% endif %}
165165
{% if version.frozen_libraries and version.frozen_libraries.size != 0 %}
166166
<p>

assets/sass/pages/_download.scss

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@
8080
.install-instructions {
8181
display: block;
8282
width: 100%;
83-
padding: 0 0 10px 0;
8483
text-align: center;
85-
margin-bottom: 1em;
84+
margin: 1.5em 0;
8685
}
8786

8887
.download-details {
@@ -128,6 +127,24 @@
128127
box-sizing: border-box;
129128
}
130129

130+
details {
131+
summary {
132+
color: #fff;
133+
margin-top: 1em;
134+
padding: 1em;
135+
border-radius: 10px;
136+
background-color: variables.$gray;
137+
cursor: pointer;
138+
}
139+
140+
.download-modules {
141+
// three column grid
142+
display: grid;
143+
font-size: 12px;
144+
grid-template-columns: repeat(3, 1fr);
145+
}
146+
}
147+
131148
.stable {
132149
.language-select {
133150
border-color: variables.$purple;
@@ -139,11 +156,6 @@
139156
a.download-button-unrecommended {
140157
background-color: variables.$purple;
141158
}
142-
143-
.download-modules,
144-
.features-list {
145-
color: variables.$purple;
146-
}
147159
}
148160

149161
.unstable {
@@ -162,10 +174,6 @@
162174
a.download-button-unrecommended:hover {
163175
background-color: variables.$purple;
164176
}
165-
.download-modules,
166-
.features-list {
167-
color: variables.$purple;
168-
}
169177
}
170178

171179
.unrecommended {

0 commit comments

Comments
 (0)