Skip to content

Commit

Permalink
Related to #1465 - fixed some secondary nav styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmavis committed May 4, 2018
1 parent ec7e143 commit 669edd5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 21 deletions.
1 change: 0 additions & 1 deletion network-api/networkapi/fellows/templates/fellows_home.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ <h1 class="h1-heading">Mozilla Fellowships</h1>
{% block mainContent %}
<div class="row mb-5">
<div class="col-12 mt-2 mb-5">
<hr class="hr-gradient mt-0">
<h2 class="h2-heading">What are Mozilla Fellowships?</h2>
</div>
<div class="col-12 mb-4">
Expand Down
5 changes: 4 additions & 1 deletion network-api/networkapi/templates/pages/fellowships.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@
<div id="fellowships-nav" class="hidden-sm-down my-4">
<div class="container">
<div class="row">
<div class="col">
<div class="col-12">
<div id="multipage-nav" class="d-flex flex-row align-items-center">
<div><a href="{% url 'fellowships-home' %}" class="{% fellowship_active_nav request 'fellowships-home fellowships-type' %}">Fellowships</a></div>
<div><a href="{% url 'fellowships-directory' %}" class="{% fellowship_active_nav request 'fellowships-directory fellowships-directory-archive' %}">Directory</a></div>
<div><a href="{% url 'fellowships-support' %}" class="{% fellowship_active_nav request 'fellowships-support' %}">Support the Program</a></div>
<div><a href="{% url 'fellowships-apply' %}" class="{% fellowship_active_nav request 'fellowships-apply' %}">Apply to be a Fellow</a></div>
</div>
</div>
<div class="col-12">
<hr class="hr-gradient mb-0">
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ <h1 class="h1-heading pb-5">{% if root.title %}{{ root.title }}{% elif page.head
{% primary_page_menu page %}
</div>
{% if singleton_page == False %}
<div class="pt-3">
<hr class="hr-gradient mt-0">
<div class="row mb-4">
<div class="col">
<hr class="hr-gradient mb-0">
</div>
</div>
{% endif %}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% if menu_pages %}
<div class="py-5 col-md-3 mb-3 hidden-sm-down">
<div class="multipage-nav" id="multipage-nav">
<div class="multipage-nav side-nav" id="multipage-nav">
{% for entry in menu_pages %}
<div>
<a class="multipage-link {% if current.title == entry.page.title %}multipage-link-active{% endif %}" href="{% pageurl entry.page %}">{% if entry.depth == 2 %}→ {% endif %}{{ entry.menu_title }}
Expand Down
9 changes: 6 additions & 3 deletions source/sass/type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ a {
line-height: 1.5;
}

@mixin yellow-underline-nav-link($active-class-name) {
@mixin secondary-nav-link($active-class-name) {
font-family: "Nunito Sans";
color: $black;

Expand Down Expand Up @@ -200,6 +200,9 @@ p,
}

.multipage-link {
@include yellow-underline-nav-link(".multipage-link-active");
@include scaleText(18px, 27px, 20px, 30px);
@include secondary-nav-link(".multipage-link-active");

@at-root .side-nav #{&} {
@include scaleText(17px, 17px*1.6);
}
}
2 changes: 1 addition & 1 deletion source/sass/views/fellowships/shared.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#fellowships-nav {
a {
@include yellow-underline-nav-link(".active");
@include secondary-nav-link(".active");
}
}

Expand Down
12 changes: 0 additions & 12 deletions source/sass/wagtail.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@
}
}

.primary-menu {
a.multipage-link {
&.multipage-link-active {
box-shadow: 0 2px black;
}

&:hover {
box-shadow: 0 2px black;
}
}
}

.homepage-feature p {
font-size: inherit;
line-height: inherit;
Expand Down

0 comments on commit 669edd5

Please sign in to comment.