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
10 changes: 6 additions & 4 deletions _brand/includes/navigation/top.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
<nav lang="en" class="arka__navbar navbar navbar-expand-md border-top border-bottom border-dark-subtle"
aria-label="Main navigation">
<div class="container">
<a href="{{ site.baseurl }}" class="navbar-brand d-md-none">
<svg class="text-brand icon-lg arka__logo">
<title>{{ site.title }}</title>
<a href="{{ site.baseurl }}/" class="navbar-brand arka__navbar-brand d-md-none">
<svg class="text-brand icon-lg arka__logo" aria-hidden="true">
<use href="#icon-ark"></use>
</svg>
{{ site.title }}
<span class="arka__navbar-brand-text">
<span class="arka__navbar-brand-title">{{ site.title }}</span>
<span class="arka__tagline arka__navbar-brand-tagline">{{ site.tagline_short }}</span>
</span>
</a>
<button class="navbar-toggler"
type="button"
Expand Down
30 changes: 30 additions & 0 deletions _brand/sass/ark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,36 @@
text-transform: uppercase;
}

/* mobile brand: logo beside the title, with the short tagline beneath */
&__navbar-brand {
align-items: center;
display: flex;
flex-wrap: wrap;
max-width: 100%;
white-space: normal;
}

&__navbar-brand-text {
display: flex;
flex-direction: column;
}

&__navbar-brand-title {
line-height: 1.2;
}

&__navbar-brand-tagline {
color: var(--bs-secondary-color);
font-size: 0.7em;
line-height: 1.3;
margin-top: 0.2em;
text-transform: none;
text-wrap: balance;
/* wrap within the title's width instead of widening the brand */
min-width: 100%;
width: 0;
}

&__navbar .nav-item {
padding-left: 0.4rem;
padding-right: 0.4rem;
Expand Down
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ title: ARK Alliance
email: info@arks.org
tagline: >-
Home of the Archival Resource Key (ARK)
# Shown beneath the site title in the mobile navigation bar.
tagline_short: Home of Archival Resource Keys
description: >-
ARKs are reliable, persistent identifiers (PIDs) for information objects,
functioning as stable web addresses that avoid 404 errors. Welcome to the
Expand Down
Loading