Skip to content

Commit

Permalink
Merge pull request #99 from stuartmaxwell/minor-style-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell authored Oct 1, 2024
2 parents 4ebd26b + b9c7dbe commit b1c09eb
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
21 changes: 20 additions & 1 deletion static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body {
/* Typography */
body,
html {
font-size: 18px;
font-size: 19px;
}
h1,
h2,
Expand Down Expand Up @@ -125,3 +125,22 @@ span[role="group"] {
body {
min-width: 320px;
}

/* More spacing between articles */
article {
margin-bottom: 4em;
}

/* Bigger, bolder font with italics for the brand class */
.brand {
font-size: 2em;
font-weight: bold;
font-style: italic;
}

/* Bigger, bolder font with italics for the nav-menu class */
.nav-menu {
font-size: 1.333em;
font-weight: bold;
font-style: italic;
}
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.

2 changes: 1 addition & 1 deletion templates/djpress/snippets/post_summary.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load djpress_tags %}

<article>
<h2>{% post_title_link %}</h2>
<h1>{% post_title_link %}</h1>
{{ post.truncated_content_markdown|safe }}
{% if post.is_truncated %}
<p><a href="{% url 'djpress:post_detail' post.permalink %}">Read more</a></p>
Expand Down
2 changes: 1 addition & 1 deletion templates/djpress/snippets/post_title.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load djpress_tags %}

<article>
<h2>{% post_title_link %}</h2>
<h1>{% post_title_link %}</h1>
<footer>
<p>Posted on {% post_date %} by {% post_author %}</p>
<p>
Expand Down
4 changes: 2 additions & 2 deletions templates/snippets/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<nav class="container">
<ul>
<li><strong>{% blog_title_link link_class="secondary" %}</strong></li>
<li class="brand"><strong>{% blog_title_link link_class="secondary" %}</strong></li>
</ul>

{% blog_pages outer="ul" %}
{% blog_pages outer="ul" link_class="nav-menu" %}

<ul style="margin-left: auto">
{% if user.is_authenticated %}
Expand Down
1 change: 1 addition & 0 deletions templates/snippets/navbar.min.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% load djpress_tags %}<nav class="container"><ul><li class="brand"><strong>{% blog_title_link link_class="secondary" %}</strong></li></ul>{% blog_pages outer="ul" %}<ul style="margin-left:auto">{% if user.is_authenticated %}<li class="nav-menu"><a role="button" class="outline" href="{% url 'admin:index' %}">{% include "svg/house-gear.svg" %}<span class="hide-at-s"> Admin</span></a></li>{% endif %}<li class="nav-menu"><a rel="me" role="button" class="outline" href="https://fosstodon.org/@stuartm">{% include "svg/mastodon.svg" %}<span class="hide-at-s"> @stuartm</span></a></li><li class="nav-menu"><a role="button" class="outline" href="{% url 'djpress:rss_feed' %}">{% include "svg/rss-fill.svg" %}<span class="hide-at-s"> RSS</span></a></li></ul></nav>

0 comments on commit b1c09eb

Please sign in to comment.