Skip to content

Commit 4760571

Browse files
Maria Rita Iglesiasmalfet
Maria Rita Iglesias
authored andcommitted
updating navbar
1 parent 471ce92 commit 4760571

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

_includes/main_menu.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
<li class="main-menu-item">
88
<div id="dropdownMenuButton" data-toggle="resources-dropdown" class="resources-dropdown">
9-
<a class="resource-option {% if current[1] == {{ site.baseurl }} %}with-down-white-arrow{% else %}with-down-arrow{% endif %}" href="{{ site.baseurl }}/ecosystem">
10-
Ecosystem
9+
<a class="resource-option {% if (current[1] == {{ site.baseurl }} or current[1] == 'pytorch-foundation') %}with-down-white-arrow{% else %}with-down-arrow{% endif %}" href="{{ site.baseurl }}/ecosystem">
10+
Ecosystem
1111
</a>
1212
<div class="resources-dropdown-menu">
1313
<a class="nav-dropdown-item" href="{{ site.baseurl}}/ecosystem">
@@ -40,7 +40,7 @@
4040

4141
<li class="main-menu-item">
4242
<div id="docsDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
43-
<a class="doc-option {% if current[1] == {{ site.baseurl }} %}with-down-white-arrow{% else %}with-down-arrow{% endif %}">
43+
<a class="doc-option {% if current[1] == {{ site.baseurl }} or current[1] == 'pytorch-foundation' %}with-down-white-arrow{% else %}with-down-arrow{% endif %}">
4444
Docs
4545
</a>
4646
<div class="resources-dropdown-menu">
@@ -89,7 +89,7 @@
8989
<li class="main-menu-item {% if resources contains current[1] %}active resources-active{% endif %}">
9090

9191
<div id="resourcesDropdownButton" data-toggle="resources-dropdown" class="resources-dropdown">
92-
<a class="resource-option {% if current[1] == {{ site.baseurl }} %}with-down-white-arrow{% else %}with-down-arrow{% endif %}">
92+
<a class="resource-option {% if current[1] == {{ site.baseurl }} or current[1] == 'pytorch-foundation' %}with-down-white-arrow{% else %}with-down-arrow{% endif %}">
9393
Resources
9494
</a>
9595
<div class="resources-dropdown-menu">

_sass/announcement.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.announcement {
22
.announcement-header {
3-
background-color: $white;
3+
background-color: rgba(0, 0, 0, 0.165);
44
}
55
.main-menu ul li a {
6-
color: $black;
6+
color: $white;
77
}
88

99
.hero-content {

_sass/navigation.scss

-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
&.get-started-header,
2323
&.features-header,
2424
&.ecosystem-header,
25-
&.announcement-header,
2625
&.hub-header,
2726
&.mobile-header {
2827
background-color: $white;
@@ -230,7 +229,6 @@
230229
}
231230
}
232231

233-
.announcement-header,
234232
.blog-header,
235233
.blog-detail-header,
236234
.resources-header,

0 commit comments

Comments
 (0)