Skip to content

Commit

Permalink
Fix nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Rita Iglesias authored and malfet committed Sep 12, 2022
1 parent 94c057d commit 471ce92
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
22 changes: 13 additions & 9 deletions _sass/announcement.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.announcement {
.announcement-header {
background-color: $white;
}
.main-menu ul li a {
color: $black;
}

.hero-content {
top: $mobile_header_height + 32px;
height: 100%;
Expand All @@ -10,7 +17,7 @@
margin-bottom: 190px;
}
@media screen and (min-width: 1000px) {
top: $mobile_header_height + 32px;
top: $mobile_header_height + 60px;
grid-template-rows: auto;
column-gap: 30px;
}
Expand All @@ -36,14 +43,6 @@
padding-bottom: 0;
}

.navbar-nav .nav-link {
color: $black;
}

.nav-logo {
background-image: url($baseurl + "/assets/images/logo-dark.svg");
}

.main-background {
height: 15.5%;
@media screen and (min-width: 420px) {
Expand All @@ -65,10 +64,15 @@
padding-top: 3rem;
.card {
border: none;
display: block;
a {
color: $black;
}
.card-body {
display: flex;
flex-direction: column;
height: 100%;
justify-content: space-between;
padding: 0;

img {
Expand Down
4 changes: 4 additions & 0 deletions _sass/base_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ a, .btn {
background-image: url("https://via.placeholder.com/2560x1280/262626/3a3a3a");
}

&.announcement-background {
background-image: url($baseurl + "/assets/images/features-background.jpg");
}

&.features-background {
background-image: url($baseurl + "/assets/images/features-background.jpg");
@include desktop {
Expand Down
2 changes: 2 additions & 0 deletions _sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
&.get-started-header,
&.features-header,
&.ecosystem-header,
&.announcement-header,
&.hub-header,
&.mobile-header {
background-color: $white;
Expand Down Expand Up @@ -229,6 +230,7 @@
}
}

.announcement-header,
.blog-header,
.blog-detail-header,
.resources-header,
Expand Down
5 changes: 2 additions & 3 deletions announcement.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: default
title: Announcement
permalink: /pytorch-foundation
body-class: announcement
background-class: features-background
background-class: announcement-background
permalink: /pytorch-foundation
---
{% assign cards = site.board_info %}

Expand Down Expand Up @@ -49,7 +49,6 @@ <h1>Members & Governing Board</h1>
<div class="card-body">
<h4>{{ card.title }}</h4>
<img src="{{ card.image }}"/>
<p class="card-summary">{{ card.summary }}</p>
</div>
</a>
</div>
Expand Down

0 comments on commit 471ce92

Please sign in to comment.