Skip to content

Commit

Permalink
Merge pull request #927 from chainguard-dev/add-nav-title
Browse files Browse the repository at this point in the history
Add navbar title
  • Loading branch information
ltagliaferri authored Aug 17, 2023
2 parents 08afd55 + 3bf539b commit b8de915
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions assets/scss/common/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,21 @@ h2[id^="chainctl"] {
color: var(--navbar-contact-color) !important;
}

.navbar-title {
font-weight: 600;
font-size: 16px;
height: 20px;
padding-top: 10px;
padding-left: 5px;
}

.navbar-title-padding {
padding-top: 10px;
padding-right: 10px;
padding-bottom: 32px;
padding-left: 1px;
}

.a--original {
color: var(--a-original-color);
}
Expand Down
11 changes: 11 additions & 0 deletions layouts/partials/sidebar/auto-collapsible-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@

{{ if $showFlexSearch -}}
<div class="search-container">
<div class="navbar-title-padding">
<svg class="index-logo" width="20" height="20" viewBox="0 0 72 72" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M36 0V33C36 34.6569 37.3431 36 39 36H72L36 0Z" fill="#F99AFB" />
<path d="M36 0L72 36V3C72 1.34315 70.6569 0 69 0H36Z" fill="currentColor" />
<path
d="M39 36H72V69C72 70.6569 70.6569 72 69 72H36C16.1177 72 -8.69081e-07 55.8822 0 36C8.69081e-07 16.1177 16.1178 -8.69081e-07 36 0L36 33C36 34.6569 37.3431 36 39 36Z"
fill="#3443F4" />
</svg>
<a class="navbar-title" href="/">Chainguard Academy</a>
</div>
<form class="doks-search position-relative flex-grow-1">
<input class="search form-control is-search" type="search" placeholder="Search" aria-label="Search" autocomplete="off">
</form>
Expand Down

0 comments on commit b8de915

Please sign in to comment.