diff --git a/assets/scss/_sidebar-tree.scss b/assets/scss/_sidebar-tree.scss index 1b917ca175..6cd2996d26 100644 --- a/assets/scss/_sidebar-tree.scss +++ b/assets/scss/_sidebar-tree.scss @@ -144,9 +144,9 @@ @include media-breakpoint-up(md) { @supports (position: sticky) { position: sticky; - top: 4rem; + top: 5rem; z-index: 10; - height: calc(100vh - 4rem); + height: calc(100vh - 5rem); } } diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 78ba349840..0dbe231fa7 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -201,7 +201,9 @@ h7, .h7 { } .td-sidebar-toc { + top: 6rem; border-left: unset; + height: calc(100vh - 10rem); } // Breadcrumb styling @@ -271,10 +273,19 @@ p, li { } } +.td-content.tutorials { + max-width: 1200px; +} + +footer.tutorials { + max-width: 1200px; +} + // START FOOTER STYLING footer { border-top: 1px solid rgba(0, 0, 0, 0.1); + max-width: 1000px; } footer a { @@ -1261,6 +1272,12 @@ td > ul, td > ol { animation: linear 2s wiggle 2s 2; } +@media (min-width: 992px) { + #scrollButton { + margin-right: 10%; + } +} + #chatButtonContent { display: flex; justify-content: space-evenly; @@ -1399,7 +1416,7 @@ img.frame { // This ensures the gray sidebar covers the area where the sticky buttons are rendered. @media (min-width: 768px) { .td-sidebar { - padding-bottom: 76px; + // padding-bottom: 76px; margin-bottom: -76px; } } @@ -2027,7 +2044,7 @@ a.ais-Pagination-link:hover { // ensure tutorials page is 100% of height .row.flex-xl-nowrap { - min-height: 90%; + min-height: 100%; } @@ -3327,4 +3344,30 @@ div.tablestep > table td, div.tablestep table td { margin-top: 1rem; } -// Numbered list styling END +footer.py-5 { + padding-bottom: 0 !important; + padding-top: 1rem !important; + margin-bottom: -2rem !important; +} + +.td-main main { + padding-bottom: 0rem !important; +} + +footer { + min-height: 30px !important; +}// Numbered list styling END + +.center-main-landing { + justify-content: center; +} + +.center-main-landing > .pl-md-5, .center-main-landing > .px-md-5 { + padding-left: 0rem !important; + padding-right: 0rem !important; +} + +.center-main-landing .col.hover-card { + margin-left: 0rem !important; + margin-right: 0rem !important; +} \ No newline at end of file diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 4a72b7b483..cc14f7adac 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -21,8 +21,13 @@ {{ if .Params.noToc }} {{ else }} + {{ end }} -
+
{{ partial "version-banner.html" . }} {{ if ne .Params.noedit true }} {{ partial "edit-on-github.html" . }} @@ -34,17 +39,7 @@
{{ $img := resources.GetMatch "/icons/learn-viam-robot-icon-ai.svg" }} - - - {{ partial "footer.html" . }} {{ partial "scripts.html" . }} diff --git a/layouts/docs/changelog.html b/layouts/docs/changelog.html index 03354067b6..d5b3f51c19 100644 --- a/layouts/docs/changelog.html +++ b/layouts/docs/changelog.html @@ -41,10 +41,20 @@

{{ .Title }}

{{ .Content }} + + + + {{ partial "footer.html" . }}
- {{ partial "footer.html" . }} {{ $jsChangelog := resources.Get "js/changelog.js" }} {{ $jsChangelog := $jsChangelog | minify }} diff --git a/layouts/docs/content.html b/layouts/docs/content.html index a262672b6e..9b25dcfbf5 100644 --- a/layouts/docs/content.html +++ b/layouts/docs/content.html @@ -47,6 +47,16 @@

DRAFT

{{ .Content }} + + + {{ if ne .Params.no_list true}} {{ $pages := union .Sections .Pages }}
@@ -90,4 +100,6 @@

DRAFT

{{ partial "feedback.html" . }}
{{ end }}{{- end -}} -
\ No newline at end of file + + +{{ partial "footer.html" . }} diff --git a/layouts/docs/glossary.html b/layouts/docs/glossary.html index 093ba73698..9c24ff0bf0 100644 --- a/layouts/docs/glossary.html +++ b/layouts/docs/glossary.html @@ -44,7 +44,19 @@

{{ .Title }} {{ end }} {{ end }} - + + + + + {{ partial "footer.html" . }} + {{ $img := resources.GetMatch "/icons/learn-viam-robot-icon-ai.svg" }} - {{ partial "footer.html" . }} {{ partial "scripts.html" . }} diff --git a/layouts/docs/landing.html b/layouts/docs/landing.html index 17daa9c9bf..8336f5dd61 100644 --- a/layouts/docs/landing.html +++ b/layouts/docs/landing.html @@ -15,25 +15,15 @@
-
- -
+
+
{{ .Render "content" }}
- {{ $img := resources.GetMatch "/icons/learn-viam-robot-icon-ai.svg" }} - -
- {{ partial "footer.html" . }}
+
+ {{ partial "scripts.html" . }} diff --git a/layouts/docs/search.html b/layouts/docs/search.html deleted file mode 100644 index 1f95c9a2ed..0000000000 --- a/layouts/docs/search.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - {{ partial "head.html" . }} - - - {{- if hugo.IsProduction -}}{{- if .Site.Config.Services.GoogleAnalytics.ID -}} - - - - {{- end -}}{{- end -}} -
- {{ partial "navbar.html" . }} -
-
-
-
- -
- {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} -
-

{{ .Title }}

- -
- -
-
-
-
- - -
-
-
-
- {{ $img := resources.GetMatch "/icons/learn-viam-robot-icon-ai.svg" }} - -
- {{ partial "footer.html" . }} -
- - {{ partial "scripts.html" . }} - - - - - - - diff --git a/layouts/docs/tutorials.html b/layouts/docs/tutorials.html index 91c6d7084c..0252c8d593 100644 --- a/layouts/docs/tutorials.html +++ b/layouts/docs/tutorials.html @@ -26,7 +26,7 @@ {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} -
+

{{ .Title }}

Tutorials provide instructions to build small projects while teaching you new skills. @@ -98,17 +98,21 @@

Javascript

Find more examples of how Viam is being used in the world by reviewing Customer Stories, tutorials, or blog posts.

+ + + + + {{ partial "footer.html" . "tutorials" }}
- {{ $img := resources.GetMatch "/icons/learn-viam-robot-icon-ai.svg" }} - - {{ partial "footer.html" . }} {{ partial "scripts.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 71a2936125..4d8cd3b553 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,22 +1,22 @@ {{ $links := .Site.Params.links }} -