Make navbar handle longer descriptions better

This is achieved by using a smaller font and enabling hyphenation (where
possible) and justification.
This commit is contained in:
Simon Bruder 2021-11-30 20:29:40 +01:00
parent bf5565cd76
commit 4817f92495
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,7 @@ $navbar-breakpoint: 640px;
@import "../vendor/bulma/sass/grid/columns";
@import "../vendor/bulma/sass/helpers/color";
@import "../vendor/bulma/sass/helpers/spacing";
@import "../vendor/bulma/sass/helpers/typography";
@import "../vendor/bulma/sass/layout/footer";
#page-wrapper {
@ -29,6 +30,13 @@ $navbar-breakpoint: 640px;
padding: 2rem 7.6%;
}
#navbar-description {
// Better layout (small column)
// only works with Firefox, though
hyphens: auto;
text-align: justify;
}
nav {
padding: 0 7.6%;
}

View file

@ -60,7 +60,7 @@
<aside class="column" aria-label="Sekundärer Inhalt">
<h3>{{ config.title }}</h3>
{{ macros::podlove_subscribe_button(size="big") }}
<p>{{ config.description }}</p>
<p id="navbar-description" class="is-size-7">{{ config.description }}</p>
</aside>
</div>
</div>