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
2 changes: 1 addition & 1 deletion apps/downloads/templates/downloads/supernav.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Download supernav from templates/downloads/supernav.html - Last updated at {{ last_updated }} -->
<li class="tier-2 super-navigation">
{% for data in python_files %}
<div class="download-os-{{ data.os.slug }}" style="display: none;">
<div class="download-os-{{ data.os.slug }}">
{% if data.os.slug == 'source' %}
<h3>Python Source</h3>
{% else %}
Expand Down
4 changes: 4 additions & 0 deletions static/css/mq.css
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,10 @@ html[xmlns] .slides { display: block; }
.with-supernav .super-navigation {
display: none; }

/* Box sanitization strips inline styles; OS detection reveals the matching panel. */
.super-navigation [class^="download-os-"] {
display: none; }

/*
* This is super cool. Uses two arrays to spit out a bunch of repetitive rulesets.
* Associative array example borrowed from https://github.com/nex3/sass/issues/132#issuecomment-4335097
Expand Down
Loading