Skip to content

Commit

Permalink
💄 adjust sizing, spacing; make .text-container purely layout-related
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Jul 22, 2024
1 parent 3d5a688 commit 9c2fad9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="blog-header-meta">
<div class="container-lg py-5">
<h1>
<span class="d-block fw-normal fs-base mb-2">{{ article.kicker }}</span>
<span class="d-block fw-normal fs-5 mb-2">{{ article.kicker }}</span>
<span>{% render_model article "title" %}</span>
</h1>
{% if article.teaser %}
Expand Down Expand Up @@ -70,11 +70,11 @@ <h1>
{% endif %}
{% endblock article_content %}
{% block article_footer %}
<footer>
<footer class="mb-3">
<section>
{% block article_author_bios %}
<div class="container-lg">
<h3>
<h3 class="small text-secondary">
{% blocktrans count counter=article.get_authors|length %}
About the author
{% plural %}
Expand Down Expand Up @@ -120,7 +120,7 @@ <h4 class="h6">{{ author.get_full_name }}</h4>
{% if previous_articles %}
<section>
<div class="container-lg">
<h3>
<h3 class="small text-secondary">
{% blocktranslate count counter=previous_articles|length %}
Previous article:
{% plural %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article class="blog-article-item row position-relative"
{% if counter %}id="article-{{ counter }}"{% endif %}>
<div class="col col-12 col-md-4">
<div class="col col-12 col-md-4 mb-3 mb-md-0">
{% if article.image %}
<div class="shadow">
<a href="{{ article.get_absolute_url }}">
Expand Down
22 changes: 8 additions & 14 deletions frontend/styles/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ $blog-standout-width: 72rem;
> ul,
> ol,
> p,
.text-container,
> details,
> hr {
font-family: $font-family-serif;
Expand All @@ -81,10 +80,13 @@ $blog-standout-width: 72rem;
margin-bottom: 0.75rem;
}

> .text-container {
@include blog-width();
}

> p,
> ul,
> ol,
.text-container,
> details {
font-size: 1.225rem;
line-height: 1.5;
Expand Down Expand Up @@ -135,18 +137,10 @@ $blog-standout-width: 72rem;
}
}

.blog-article footer {
h3 {
font-size: $font-size-sm;
color: var(--#{$prefix}secondary-color);
margin-bottom: $spacer * 1.5;
}

> section {
border-top: 1px var(--#{$prefix}border-color) solid;
margin-top: $spacer * 1.5;
padding-top: $spacer * 1.5;
}
.blog-article footer > section {
border-top: 1px var(--#{$prefix}border-color) solid;
margin-top: $spacer * 1.5;
padding-top: $spacer * 1.5;
}

aside.article-banner {
Expand Down

0 comments on commit 9c2fad9

Please sign in to comment.