Skip to content

Commit 85025f5

Browse files
authored
Merge pull request #383 from DEFRA/update-theme-v0.0.22
Update theme v0.0.22 and fix vulnerabilities
2 parents 5584277 + d4adecb commit 85025f5

4 files changed

Lines changed: 199 additions & 867 deletions

File tree

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
border-bottom: 1px solid #8eb8dc;
99
}
1010

11+
// stylelint-disable-next-line selector-not-notation
1112
.app-prose-scope .app-section--features p:not(.app-no-prose *) {
1213
margin-bottom: 0;
1314
}
@@ -22,23 +23,32 @@
2223
}
2324
}
2425

26+
// Override prose-scope h2 size to govuk-heading-l for homepage sections.
27+
@import "govuk-frontend/dist/govuk/base";
28+
29+
.govuk-template .app-prose-scope .app-section h2 {
30+
@include govuk-font($size: 36, $weight: bold);
31+
@include govuk-responsive-margin(6, "bottom");
32+
}
2533

2634
.govuk-template--rebranded .govuk-header__link--homepage:not(:focus),
2735
.govuk-template--rebranded .govuk-header,
2836
.govuk-template--rebranded .govuk-service-navigation.govuk-service-navigation--inverse,
2937
.govuk-template--rebranded .app-masthead {
38+
// stylelint-disable-next-line declaration-no-important
3039
background-color: #008531 !important;
3140
}
3241

3342
.govuk-template--rebranded .app-homepage .govuk-service-navigation--inverse .govuk-width-container {
34-
border-color: #66B683 !important;
43+
// stylelint-disable-next-line declaration-no-important
44+
border-color: #66b683 !important;
3545
}
3646

3747
.govuk-template__body.app-homepage .govuk-template__body-inner {
3848
background-color: #f4f8fb;
3949
}
4050

41-
.govuk-template__body.app-homepage #main-content {
51+
.govuk-template__body.app-homepage main {
4252
background-color: #ffffff;
4353
}
4454

@@ -48,7 +58,7 @@
4858
}
4959

5060
.govuk-template--rebranded .app-masthead .govuk-grid-column-one-third-from-desktop {
51-
background-image: url('../../../static/assets/images/form-input-screenshot.png');
61+
background-image: url("../../../static/assets/images/form-input-screenshot.png");
5262
background-repeat: no-repeat;
5363
background-position: center bottom;
5464
background-size: 220px;

docusaurus.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const config = {
4141
return {
4242
name: 'custom-css',
4343
getClientModules() {
44-
return [require.resolve('./docs/assets/css/docusaurus.css')]
44+
return [require.resolve('./docs/assets/css/docusaurus.scss')]
4545
}
4646
}
4747
},

0 commit comments

Comments
 (0)