Skip to content

Commit

Permalink
Fix links and fix menu padding (#13355)
Browse files Browse the repository at this point in the history
* Remove comment

* Update nojs-nav links

* Format-python
  • Loading branch information
petesfrench authored Nov 28, 2023
1 parent a80daa9 commit fd61bcb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions static/sass/_global-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ $color-mid-x-light: #e5e5e5;
$font-use-subset-latin: true;
$font-allow-cyrillic-greek-latin: true;
$font-display-option: fallback;
$breakpoint-navigation-threshold: 1250px;
$threshold-6-12-col: $breakpoint-navigation-threshold;
$breakpoint-navigation-threshold: $viewport-threshold;
$theme-default-nav: dark;
$grid-max-width: 80rem;
6 changes: 5 additions & 1 deletion static/sass/_pattern_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ $meganav-height: 3rem;
}

@media (max-width: $breakpoint-navigation-threshold) {
.row {
display: unset;
}

.p-navigation__nav {
margin-left: 0;
overflow-y: auto;
Expand Down Expand Up @@ -413,7 +417,6 @@ $meganav-height: 3rem;
.p-navigation__item {
.p-navigation__link {
color: $color-mid-light;
padding: 0.5rem 2rem 0.5rem 0;
}
}

Expand Down Expand Up @@ -579,6 +582,7 @@ $meganav-height: 3rem;
}

.row {
display: unset;
padding-left: 0;
padding-right: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/templates/meganav/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<ul class="p-list">
{% for link in links_section.links %}
<li class="p-list__item">
<a href="{{ link.url }}">{{ link.title }}</a>
<a class="dropdown-window__side-panel-link" href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions templates/templates/meganav/navigation-nojs.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h3 class="p-heading--2 u-no-padding--left">{{side_nav_section.title}}</h3>
<ul class="p-list">
{% for link in links_section.links %}
<li class="p-list__item">
<a href="{{ link.url }}">{{ link.title }}</a>
<a class="dropdown-window__side-panel-link" href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
Expand Down Expand Up @@ -190,7 +190,7 @@ <h3 class="p-heading--2 u-no-padding--left">{{side_nav_section.title}}</h3>
<ul class="p-list">
{% for link in links_section.links %}
<li class="p-list__item">
<a href="{{ link.url }}">{{ link.title }}</a>
<a class="dropdown-window__side-panel-link" href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
Expand Down
1 change: 0 additions & 1 deletion webapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@
subscription_centre,
thank_you,
unlisted_engage_page,
build_engage_pages_sitemap,
navigation_nojs,
)

Expand Down

0 comments on commit fd61bcb

Please sign in to comment.