Skip to content

Commit

Permalink
Fix links & menu padding
Browse files Browse the repository at this point in the history
  • Loading branch information
petesfrench committed Nov 22, 2023
1 parent 183814e commit c262b98
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 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;
7 changes: 6 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,7 @@ $meganav-height: 3rem;
.p-navigation__item {
.p-navigation__link {
color: $color-mid-light;
padding: 0.5rem 2rem 0.5rem 0;
// padding: 0.5rem 2rem 0.5rem 0;
}
}

Expand Down Expand Up @@ -579,6 +583,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

0 comments on commit c262b98

Please sign in to comment.