Skip to content

Commit

Permalink
Cleaned up SCSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Sep 15, 2023
1 parent 61f8dfd commit 96bb302
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 55 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/styles.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions layouts/partials/top-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- /* empty */ -}}
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,63 @@
}
}

.usa-in-page-nav__item {
a:not(.usa-button) {
// padding: units(0.5) units($sidenav-level-1-inset);
}
code {
@include typeset('mono', "2xs", 3);
}
}

.site-in-page-nav {
@extend .usa-in-page-nav;
max-height: 95vh;
overflow-y: hidden;

// @include generate-in-page-nav-nesting('usa-in-page-nav__list',0.90, 12);
}

.site-in-page-nav__link {
@extend .usa-in-page-nav__link !optional;
&__link {
@extend .usa-in-page-nav__link !optional;

&.h3 {
margin-left: units(1);
}
&.h3 {
margin-left: units(1);
}

&.h4 {
margin-left: units(2);
}
&.h4 {
margin-left: units(2);
}

&.h5 {
margin-left: units(3);
}
&.h5 {
margin-left: units(3);
}

&.h6 {
margin-left: units(4);
&.h6 {
margin-left: units(4);
}
}
}

.usa-in-page-nav__list {
/* revert background left border */
a:not(.usa-button) {
&:not(.usa-current) {
color: inherit;
&:visited {
.usa-in-page-nav {
&__item {
a:not(.usa-button) {
// padding: units(0.5) units($sidenav-level-1-inset);
}
code {
@include typeset('mono', "2xs", 3);
}
}
&__list {
/* revert background left border */
a:not(.usa-button) {
&:not(.usa-current) {
color: inherit;
&:visited {
color: inherit;
}
}
&.usa-current {
color: #005ea2;
font-weight: bold;
&::after {
background-color: inherit;
}
}
}

&.usa-current {
color: #005ea2;
font-weight: bold;
&::after {
background-color: inherit;
}
}
}

&.usa-current {
&::after {
background-color: inherit;
}
}
}
12 changes: 0 additions & 12 deletions sass/hugo-uswds/src/styles/site/custom-styles/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,3 @@ html {
margin-right: auto;
}
}

/*
.site-content-container {
margin-left: auto;
margin-right: auto;
max-width: 96em;
}
.usa-in-page-nav-container {
max-width: 96em;
}
*/
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ $site-secondary-nav-input-height: 38px;
}
}



.site-header {
@include typeset("lang");
margin-top: units(1);
Expand Down

0 comments on commit 96bb302

Please sign in to comment.