Skip to content

Commit

Permalink
change features list style to match modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Nov 4, 2024
1 parent 8a284f5 commit 5565a34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
8 changes: 5 additions & 3 deletions _includes/download/board.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ <h3>CircuitPython {{ version.version }}</h3>
{% endif %}
{% if page.features %}
<p>Features:
{% for feature in page.features %}
<span class="feature-span">{{feature}}</span>
{% endfor %}
<span class="features-list">
{% for feature in page.features %}
<a class="library-link" href="/downloads?features={{ feature }}">{{feature}}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
</p>
{% endif %}
</div>
Expand Down
14 changes: 2 additions & 12 deletions assets/sass/pages/_download.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
background-color: $purple;
}

.download-modules {
.download-modules, .features-list {
color: $purple;
}
}
Expand All @@ -135,7 +135,7 @@
a.download-button:hover, a.download-button-unrecommended:hover {
background-color: $purple;
}
.download-modules {
.download-modules, .features-list {
color: $purple;
}
}
Expand Down Expand Up @@ -184,16 +184,6 @@
}
}
}
.feature-span {
padding: 2px 4px 2px 4px;
margin-left: 3px;
margin-bottom: 3px;
display: inline-block;
background-color: $purple;
color: #fff;
border-radius: 5px;
font-size: 14px;
}
}

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

0 comments on commit 5565a34

Please sign in to comment.