Skip to content

Commit

Permalink
Merge pull request #75 from stuartmaxwell/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell authored Jun 20, 2024
2 parents 65a0bc6 + 04738a5 commit 1647f71
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,28 @@
}
}

@media (max-width: 768px) {
.hide-at-s {
display: none;
}
}

.highlight pre {
background-color: #2e3440;
}

span[role="group"] {
width: auto;
}

/* Tighter margins in the navbar when really small */
@media (max-width: 400px) {
nav ul li {
padding: var(--pico-nav-element-spacing-vertical) 0.25em;
}
}

/* Prevent going smaller than 360px */
body {
min-width: 320px;
}
2 changes: 1 addition & 1 deletion static/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions templates/snippets/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
{% if user.is_authenticated %}
<li>
<a role="button" class="outline" href="{% url 'admin:index' %}">
{% include "svg/house-gear.svg" %} Admin</a>
{% include "svg/house-gear.svg" %}<span class="hide-at-s"> Admin</span></a>
</li>
{% endif %}
<li>
<a rel="me" role="button" class="outline" href="https://fosstodon.org/@stuartm">
{% include "svg/mastodon.svg" %} @stuartm</a>
{% include "svg/mastodon.svg" %}<span class="hide-at-s"> @stuartm</span></a>
</li>
<li>
<a role="button" class="outline" href="{% url 'djpress:rss_feed' %}">
{% include "svg/rss-fill.svg" %} RSS</a>
{% include "svg/rss-fill.svg" %}<span class="hide-at-s"> RSS</span></a>
</li>
</ul>

Expand Down

0 comments on commit 1647f71

Please sign in to comment.