diff --git a/docs/assets/scss/_styles_project.scss b/docs/assets/scss/_styles_project.scss index 163fadc268a..f14c9a220e9 100644 --- a/docs/assets/scss/_styles_project.scss +++ b/docs/assets/scss/_styles_project.scss @@ -1,4 +1,5 @@ @import "button"; +@import "community-banner"; @import "home"; @import "header"; @import "footer"; diff --git a/docs/assets/scss/community-banner.scss b/docs/assets/scss/community-banner.scss new file mode 100644 index 00000000000..29f2cc6a329 --- /dev/null +++ b/docs/assets/scss/community-banner.scss @@ -0,0 +1,47 @@ +.td-community-banner { + font-size: 14px; + text-align: center; + + a { + display: flex; + align-items: center; + justify-content: center; + padding: 9px 14px; + color: #253737; + background-color: #E2F7F7; + border-bottom: 1px solid #42D7D74F; + + + &:hover, + &:focus-visible { + background-color: #B0EDED80; + } + + @media screen and (max-width: 767px) {} + } + + svg { + flex-shrink: 0; + } +} + +.td-community-banner__text { + max-width: calc(100% - 18px); + text-wrap: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + +.td-community-banner__main-text { + margin-left: 14px; + margin-right: 4px; + padding-left: 14px; + font-weight: 700; + letter-spacing: -0.28px; + border-left: 1px solid #253737A6; + + a:hover &, + a:focus-visible & { + color: #5C6D70; + } +} diff --git a/docs/assets/scss/header.scss b/docs/assets/scss/header.scss index 01fa1ec78f8..0c4f0eb2fbf 100644 --- a/docs/assets/scss/header.scss +++ b/docs/assets/scss/header.scss @@ -1,3 +1,9 @@ +.td-home header { + position: sticky; + top: 0; + z-index: 32; +} + .td-navbar { height: 64px; padding: 20px 0; @@ -5,6 +11,7 @@ border-bottom: 1px solid #E5E7E7; .td-home & { + position: static; font-family: "Manrope", sans-serif; background-color: #f7fdfd; border-bottom-color: #f7fdfd; diff --git a/docs/assets/scss/home.scss b/docs/assets/scss/home.scss index 121359e86ca..8028c6990c4 100644 --- a/docs/assets/scss/home.scss +++ b/docs/assets/scss/home.scss @@ -15,9 +15,6 @@ @import "home/presentation"; .home { - // dirty hack that should be changed if we change the size of the navbar - margin-top: 64px; - margin-left: auto; margin-right: auto; max-width: 1216px; @@ -63,4 +60,3 @@ list-style: none; } } - diff --git a/docs/content/en/_index.html b/docs/content/en/_index.html index c87f144d313..d306ac18646 100644 --- a/docs/content/en/_index.html +++ b/docs/content/en/_index.html @@ -241,53 +241,6 @@
We've created a slide deck for talks, presentations, and demos on - Tetragon. Feel free to use it as-is or customize it to fit your specific needs.
- - See presentation - - -We've created a slide deck for talks, presentations, and demos on + Tetragon. Feel free to use it as-is or customize it to fit your specific needs.
+ + See presentation + + +