From 69dcd29115768decc268fc429ade71aad27a8e2d Mon Sep 17 00:00:00 2001 From: Pat Mellon <16585245+patmellon@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:20:20 -0400 Subject: [PATCH 1/9] Update homepage nav opacity (#61) --- _includes/footer_scripts.html | 4 ++-- _sass/homepage.scss | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/_includes/footer_scripts.html b/_includes/footer_scripts.html index e494d4b1f4ab..742669b60ccd 100644 --- a/_includes/footer_scripts.html +++ b/_includes/footer_scripts.html @@ -24,8 +24,8 @@ var top = $(this).scrollTop(); var fullPosition = $(".main-background").height() - $(".header-holder").height(); - if (top === 0) { - $(".header-holder").css({"backgroundColor": "transparent"}); + if (top <= 40) { + $(".header-holder").css({"backgroundColor": "rgba(0, 0, 0, 0.165)"}); } else if (top >= fullPosition) { $(".header-holder").css({"backgroundColor": "#000000"}); } else { diff --git a/_sass/homepage.scss b/_sass/homepage.scss index 35c96c3311d2..6144b2746071 100644 --- a/_sass/homepage.scss +++ b/_sass/homepage.scss @@ -53,6 +53,10 @@ background-color: $light_grey; } } + + .homepage-header { + background-color: rgba(0, 0, 0, 0.165); + } } .homepage-feature-module { @@ -368,7 +372,7 @@ &:hover { color: $orange; } - } + } } .no-banner { From 1c7fe51735432294c11d4ef134769b3d2eaa7f44 Mon Sep 17 00:00:00 2001 From: Brandon Green <31549535+Bgreen23@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:56:32 -0400 Subject: [PATCH 2/9] Increase main nav font and search icon size * Increase main nav font and search icon size --- _sass/navigation.scss | 2 +- _sass/search.scss | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_sass/navigation.scss b/_sass/navigation.scss index 61eb26cf33bf..1c378b462577 100644 --- a/_sass/navigation.scss +++ b/_sass/navigation.scss @@ -118,7 +118,7 @@ ul li a { color: $white; - font-size: rem(18px); + font-size: 1.3rem; letter-spacing: 0; line-height: rem(34px); text-align: center; diff --git a/_sass/search.scss b/_sass/search.scss index 87496739441f..b3a2a09b23e9 100644 --- a/_sass/search.scss +++ b/_sass/search.scss @@ -321,9 +321,9 @@ input::placeholder { color: transparent; width: 25px; height: 25px; - background-size: 12px 15px; + background-size: 14px 16px; background-repeat: no-repeat; - background-position: 7px 5px; + background-position: 6px 5px; border-radius: 25px; cursor: pointer; &:hover { From f54860666572462b5ce0814d6ce69c43bc7e8560 Mon Sep 17 00:00:00 2001 From: Brandon Green <31549535+Bgreen23@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:57:58 -0400 Subject: [PATCH 3/9] Add arrow for main nav ecosystem and resources dropdown (#59) * Add arrows for main nav ecosystem and resources dropdown --- _includes/main_menu.html | 8 ++++---- _sass/navigation.scss | 26 ++++++++++++++++++++++++++ assets/images/chevron-down-white.svg | 17 +++++++++++++++++ assets/main-menu-dropdown.js | 6 ++++++ 4 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 assets/images/chevron-down-white.svg diff --git a/_includes/main_menu.html b/_includes/main_menu.html index cbd9f7934114..67454d862b7d 100644 --- a/_includes/main_menu.html +++ b/_includes/main_menu.html @@ -6,8 +6,8 @@ From fea583d6a5bf4cc16f1f5693faf27896e850ce30 Mon Sep 17 00:00:00 2001 From: Brandon Green <31549535+Bgreen23@users.noreply.github.com> Date: Mon, 10 Aug 2020 09:59:21 -0400 Subject: [PATCH 6/9] Add anchor to community module under Resources dropdown (#65) * Add anchor to community module under Resources dropdown --- _includes/main_menu.html | 4 ++++ index.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_includes/main_menu.html b/_includes/main_menu.html index 40dc27c03f64..402de4d3bc31 100644 --- a/_includes/main_menu.html +++ b/_includes/main_menu.html @@ -54,6 +54,10 @@ About

Learn about PyTorch’s features and capabilities

+ + Community +

Join the PyTorch developer community to contribute, learn, and get your questions answered.

+
Forums

A place to discuss PyTorch code, issues, install, research

diff --git a/index.html b/index.html index 8cfa6a316927..6d2cc8004773 100644 --- a/index.html +++ b/index.html @@ -98,7 +98,7 @@

{{ item.title }}

{% endfor %} -
+

Community

From 0b24e997c758874ca062cc198b4208c0431f9a18 Mon Sep 17 00:00:00 2001 From: Brandon Green <31549535+Bgreen23@users.noreply.github.com> Date: Thu, 13 Aug 2020 14:31:59 -0400 Subject: [PATCH 7/9] Move Hub link (#66) * wip move hub link to resources dropdown * remove css for active class * wip add resources option to array * Add resource dropdown options to array for readability * updates based on PR feedback Co-authored-by: Brandon Green --- _includes/main_menu.html | 22 +++++++++------------- assets/main-menu-dropdown.js | 5 ----- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/_includes/main_menu.html b/_includes/main_menu.html index 402de4d3bc31..288441eb842f 100644 --- a/_includes/main_menu.html +++ b/_includes/main_menu.html @@ -4,22 +4,12 @@
Get Started - @@ -39,7 +29,9 @@ Docs - -
  • - Features -
  • -
  • Ecosystem
  • @@ -39,10 +35,6 @@ Mobile -
  • - PyTorch Hub -
  • -
  • Blog
  • @@ -55,10 +47,32 @@ Docs -
  • - Resources +
  • + Resources
  • + + diff --git a/_sass/navigation.scss b/_sass/navigation.scss index 92757c022313..579ebf18cc45 100644 --- a/_sass/navigation.scss +++ b/_sass/navigation.scss @@ -168,7 +168,7 @@ padding: 0; } - ul li a { + ul li a, .resources-mobile-menu-title { font-size: rem(32px); color: $white; letter-spacing: 0; @@ -203,14 +203,14 @@ height: 100%; min-height: 100%; margin-top: -$mobile_header_height; - padding-top: 25%; + padding-top: 50%; + overflow-y: scroll; @media only screen and (max-width: 320px) { - padding-top: 50%; - overflow-y: scroll; + padding-top: 75%; } @include small-desktop { - padding-top: 0; + padding-top: 25%; } .navSearchWrapper { @@ -396,3 +396,11 @@ background-color: $orange; color: white; } + +.mobile-main-menu-links-container { + ul.resources-mobile-menu-items { + li { + padding-left: 15px; + } + } +}