Skip to content

Commit 5565a34

Browse files
committed
change features list style to match modules.
1 parent 8a284f5 commit 5565a34

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

_includes/download/board.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ <h3>CircuitPython {{ version.version }}</h3>
178178
{% endif %}
179179
{% if page.features %}
180180
<p>Features:
181-
{% for feature in page.features %}
182-
<span class="feature-span">{{feature}}</span>
183-
{% endfor %}
181+
<span class="features-list">
182+
{% for feature in page.features %}
183+
<a class="library-link" href="/downloads?features={{ feature }}">{{feature}}</a>{% unless forloop.last %}, {% endunless %}
184+
{% endfor %}
185+
</span>
184186
</p>
185187
{% endif %}
186188
</div>

assets/sass/pages/_download.scss

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
background-color: $purple;
117117
}
118118

119-
.download-modules {
119+
.download-modules, .features-list {
120120
color: $purple;
121121
}
122122
}
@@ -135,7 +135,7 @@
135135
a.download-button:hover, a.download-button-unrecommended:hover {
136136
background-color: $purple;
137137
}
138-
.download-modules {
138+
.download-modules, .features-list {
139139
color: $purple;
140140
}
141141
}
@@ -184,16 +184,6 @@
184184
}
185185
}
186186
}
187-
.feature-span {
188-
padding: 2px 4px 2px 4px;
189-
margin-left: 3px;
190-
margin-bottom: 3px;
191-
display: inline-block;
192-
background-color: $purple;
193-
color: #fff;
194-
border-radius: 5px;
195-
font-size: 14px;
196-
}
197187
}
198188

199189
@media (max-width: $screen-lg) {

0 commit comments

Comments
 (0)