This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hero panel and homepage converted to GOV.UK frontend
- Homepage blue hero panel moved 1 pixel up to hide the phase banner's lower grey border - Hero panel bespoke CSS removed and rejigged - Started removal of Frontend Toolkit from homepage - Search in hero panel now uses component from Publishing Components gem - Line height on paragraph text increased to avoid focus state overlap
- Loading branch information
Showing
4 changed files
with
63 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,26 @@ | ||
.hero { | ||
background-color: $govuk-blue; | ||
color: $white; | ||
|
||
margin-bottom: $gutter-half; | ||
.app-c-hero { | ||
background-color: $govuk-brand-colour; | ||
color: govuk-colour("white"); | ||
margin-bottom: govuk-spacing(3); | ||
position: relative; | ||
top: -1px; | ||
|
||
@include media(tablet) { | ||
margin-bottom: $gutter; | ||
margin-bottom: govuk-spacing(6); | ||
} | ||
|
||
a:link, | ||
a:visited { | ||
font-weight: bold; | ||
color: $white; | ||
} | ||
|
||
a:hover, | ||
a:active { | ||
color: $light-blue-25; | ||
} | ||
|
||
&__content { | ||
$border-top-width: 10px; | ||
|
||
@extend %site-width-container; | ||
|
||
padding: ($gutter-half + $border-top-width) 0 $gutter-half; | ||
|
||
@include media(tablet) { | ||
padding: ($gutter + $border-top-width) 0 $gutter; | ||
} | ||
} | ||
|
||
&__title { | ||
@include core-48; | ||
margin-bottom: $gutter; | ||
color: govuk-colour("white"); | ||
font-weight: bold; | ||
} | ||
} | ||
|
||
&__description { | ||
@include core-24; | ||
} | ||
|
||
&__feedback-link { | ||
@include core-16; | ||
line-height: 1.25; | ||
margin-top: $gutter; | ||
|
||
@include media(tablet) { | ||
margin-top: 0; | ||
} | ||
} | ||
.app-c-hero-lead { | ||
line-height: 1.35; | ||
} | ||
|
||
&__search { | ||
margin-bottom: $gutter-half; | ||
} | ||
.app-c-heading--inverse, | ||
.app-c-body--inverse { | ||
color: govuk-colour("white"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
.panel { | ||
margin-top: $gutter-half; | ||
padding-top: $gutter-half; | ||
|
||
border-top: 1px solid $grey-2; | ||
|
||
@include media(desktop) { | ||
margin-top: $gutter; | ||
} | ||
|
||
&__title { | ||
@include bold-24; | ||
margin-bottom: $gutter-half; | ||
} | ||
|
||
&__description { | ||
@include core-19; | ||
} | ||
border-top: 1px solid $govuk-border-colour; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
// Text | ||
p { | ||
margin-top: em(5, 16); | ||
margin-bottom: em(20, 16); | ||
|
||
@include media(tablet) { | ||
margin-top: em(5); | ||
margin-bottom: em(20); | ||
} | ||
|
||
.app-c-body, | ||
.app-c-body-s { | ||
line-height: 1.45; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters