Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

725 update header styling #778

Merged
merged 6 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions assets/styles/theme/_uswds-theme-usagov.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,13 @@ h1.text-secondary {
color: #c61f0c;
}

.usa-header--extended .usa-nav {
border-top: 1px solid #c9c9c9;
border-bottom: 1px solid #c9c9c9;
}

.usa-nav__primary > .usa-nav__primary-item > a {
color: #154285;
color: #1a4480;
padding: 0.8rem;
}

Expand All @@ -214,10 +219,6 @@ h1.text-secondary {
background-color: #02bfe7;
}

.usa-search [type="submit"] {
@include u-padding-x(1);
}

.usa-accordion {
.usa-tag {
background-color: color("gray-cool-5");
Expand Down Expand Up @@ -267,10 +268,6 @@ h1.text-secondary {
@include u-margin-bottom("05");
}

.language-switcher-wrap {
@include u-margin-top(1);
}

.usa-menu-btn {
background-color: transparent;
background-repeat: no-repeat;
Expand All @@ -296,6 +293,10 @@ h1.text-secondary {
}
}

.language-switcher-wrap {
@include u-margin-top(1);
}

.language-switcher-language-url {
@include at-media-max("desktop") {
position: absolute;
Expand Down
24 changes: 18 additions & 6 deletions components/BetaUsaGovHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ export default {

// LANUAGE BUTTON
.language-switcher-language-url {
margin-right: auto;
margin: 0 auto;
max-width: 64rem;
margin-left: auto;
padding-left: 2rem;
padding-right: 2rem;
display: block;
Expand All @@ -224,21 +223,34 @@ export default {
margin-left: 0;
}
}

// specified for matching with usa.gov
@media screen and (max-width: 1024px) {
.language-switcher-language-url {
bottom: 18px;
}

.usa-search {
max-width: 200px;
}
}

.language-link {
color: #fff;
text-decoration: none;
padding: 10px 20px;
background-color: #112f4e;
font-size: .93rem;
font-weight: 700;
line-height: 1.1;
border-radius: 5px;

&:hover {
color: #fff;
background-color: #112f4e;
}
}

// nav
.usa-nav {
border-bottom: 1px solid #dfe1e2;
}
.usa-nav__secondary {
flex-direction: row;
align-items: flex-end;
Expand Down