Skip to content

Commit

Permalink
Update header
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Jan 3, 2025
1 parent c83ed08 commit 52fd3bc
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 22 deletions.
4 changes: 2 additions & 2 deletions assets/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/scss/_sidebar-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

.td-sidebar {
@include media-breakpoint-up(md) {
padding-top: 4rem;
padding-top: 6rem;
background-color: $td-sidebar-bg-color;
padding-right: 1rem;
border-right: 1px solid $td-sidebar-border-color;
Expand Down
84 changes: 75 additions & 9 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ a.footnote-ref::after {
/* START Adjust Heading sizes*/

.td-navbar {
background-color: rgb(19,20,20) !important;
background-color: white !important;
}

/* This ensures there is no padding added to the top logo bar */
Expand All @@ -40,10 +40,14 @@ a.footnote-ref::after {
text-transform: uppercase;
white-space: nowrap;
a {
color: white;
color: black;
}
}

.navbar-dark .navbar-brand, {
color: black;
}

.td-navbar .navbar-brand svg {
height: 16px;
margin: 0;
Expand Down Expand Up @@ -245,17 +249,25 @@ p, li {

// START FOOTER STYLING

footer {
border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer a {
color: #fff !important;
}

/* sets the footer to black. */
.bg-dark {
background-color: black !important;
background-color: white !important;
}

footer * small {
color: white;
color: black;
}

.text-white, footer a {
color: black !important;
}

/* START no whitespace beneath footer */
Expand Down Expand Up @@ -366,8 +378,8 @@ END MARKETING CSS
}
}

.alert * ul:last-child, .alert * p:last-child {
margin-bottom: 0;
.alert > ul:last-child, .alert > p:last-child {
margin-bottom: 0 !important;
}

.td-content .alert:not(:first-child) {
Expand Down Expand Up @@ -2622,9 +2634,16 @@ nav {
flex-direction: column;
}

.navbar {
padding: 0;
}

.navcontainer {
min-width: 100%;
display: flex;
padding: 0.25rem 1rem;
min-height: 50px;
background-color: white;
}

.td-topbar-sections {
Expand All @@ -2637,7 +2656,7 @@ nav {
padding: 0;
padding-left: 1.25rem;
margin: 0.25rem 0 0 0;
border-left: 1px solid white;
border-left: 1px solid black;
}

.td-topbar-sections > ul > li {
Expand All @@ -2650,7 +2669,7 @@ nav {
}

.td-topbar-sections > ul > li > a {
color: white;
color: black;
padding-bottom: 8px;
padding-top: 8px;
}
Expand All @@ -2659,12 +2678,59 @@ nav {
text-decoration: none;
}

.second-nav {
background-color: rgb(239,239,242);
min-width: 100%;
padding: 0.25rem 1rem;
}

.second-nav > ul {
padding: 0;
padding-left: 0.25rem;
margin: 0.25rem 0 0 0;
}

.second-nav > ul > li {
padding-right: 3rem;
display: inline-block;
text-transform: uppercase;
font-family: Roboto Mono Variable,Roboto Mono,ui-monospace,monospace;
font-size: .875rem;
line-height: 1.25rem;
}

.second-nav > ul > li > a {
color: #333;
padding-bottom: 8px;
padding-top: 8px;
}

.second-nav > ul > li > a:hover {
text-decoration: none;
}

.second-nav * .active-path {
font-weight: 600;
}

@media (min-width: 768px) {
.td-main main {
padding-top: 7.5rem;
}
}

.td-navbar {
min-height: 3.5rem;
}

@media (max-width: 768px) {
.second-nav {
display: none;
}
}

.navsectiontop.active-path {
border-bottom: 1px solid white;
border-bottom: 1px solid black;
}

#navsearch {
Expand Down
28 changes: 18 additions & 10 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@
</a>
</span>
<div class="td-navbar-nav-scroll ml-md-auto td-topbar-sections" id="main_navbar">
{{- $currentPage := .Page -}}
{{ $s := .Page.Section -}}
{{ with .Site.GetPage "/" }}
<ul>
{{- range .Pages -}}
{{- $activePath := or ($currentPage.IsDescendant .) (eq $currentPage .) -}}
{{- if not (eq .LinkTitle "Tutorials") -}}
<li><a href="{{.RelPermalink}}" title="{{ .Title }}" class="navsectiontop{{ if $activePath}} active-path{{ end }}">{{ .LinkTitle }}</a></li>
{{- end -}}
{{- end -}}
<li><a href="https://app.viam.com/fleet/" title="Fleet" class="navsectiontop">Fleet</a></li>
<li><a href="https://app.viam.com/data/view/" title="Data" class="navsectiontop">Data</a></li>
<li><a href="https://app.viam.com/registry/" title="Registry" class="navsectiontop">Registry</a></li>
<li><a href="{{ .Site.BaseURL }}" title="Docs" class="navsectiontop active-path">Docs</a></li>
</ul>
{{- end -}}
{{- $currentPage := .Page -}}
{{ $s := .Page.Section -}}
<ul class="navbar-nav mt-2 mt-lg-0">
{{ $p := . -}}
{{ range .Site.Menus.main -}}
Expand Down Expand Up @@ -73,4 +69,16 @@
{{ partial "search-input.html" . }}
</div>
</div>
<div class="second-nav">
<ul>
{{ with .Site.GetPage "/" }}
{{- range .Pages -}}
{{- $activePath := or ($currentPage.IsDescendant .) (eq $currentPage .) -}}
{{- if not (eq .LinkTitle "Tutorials") -}}
<li><a href="{{.RelPermalink}}" title="{{ .Title }}" class="{{ if $activePath}} active-path{{ end }}">{{ .LinkTitle }}</a></li>
{{- end -}}
{{- end -}}
{{- end -}}
</ul>
</div>
</nav>

0 comments on commit 52fd3bc

Please sign in to comment.