Skip to content

Commit

Permalink
adjust padding top of main section
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonjbarnette committed Jan 13, 2025
1 parent 831feaf commit 0a6b497
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This template is for a single page that does not have a date associated with it. For example, an about page.
{% endcomment %}

<div class="usa-section">
<div class="usa-section gsa-usa-section">
<div class="grid-container">
<div class="grid-row grid-gap flex-align-start">
{% assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/pagegraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
This template is for a single page that does not have a date associated with it. For example, an about page.
{% endcomment %}

<div class="usa-section">
<div class="usa-section gsa-usa-section">
<div class="grid-container">
<div class="grid-row grid-gap flex-align-start">
{% assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav %}
{% if sidenav %}
<div class="usa-layout-docs__sidenav desktop:grid-col-3{% if page.sticky_sidenav %} usa-sticky-sidenav{% endif %}">
<div class="usa-layout-docs__sidenav desktop:grid-col-3{% if page.sticky_sidenav %} usa-sticky-sidenav{% endif %} gsa-mobile">
{% include sidenav.html links=sidenav %}
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/pagewide.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This template is for a single page that does not have a date associated with it. For example, an about page.
{% endcomment %}

<div class="usa-section">
<div class="usa-section gsa-usa-section">
<div class="grid-container maxw-widescreen margin-left-0">
<div class="grid-row grid-gap flex-align-start">
{% assign sidenav = site.data.navigation[page.sidenav] | default: page.sidenav %}
Expand Down
9 changes: 7 additions & 2 deletions assets/css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@
background-color: #cdcbcb;
}

.gsa-usa-section {
// adjust padding for top of main section - CJB
padding-top: 32px;
}

.search-link {
overflow: hidden;
text-overflow: ellipsis;
Expand Down Expand Up @@ -398,7 +403,7 @@
font-size: 0.9rem;
}

// attempt to fix mobile after update of uswds 3.11.0
// attempt to fix mobile after update of uswds 3.11.0 - CJB
.gsa-mobile {
display: none;
}
Expand All @@ -425,7 +430,7 @@
font-size: 0.9rem;
}

// attempt to fix mobile after update of uswds 3.11.0
// attempt to fix mobile after update of uswds 3.11.0 - CJB
.gsa-mobile {
display: none;
}
Expand Down

0 comments on commit 0a6b497

Please sign in to comment.