Skip to content

Commit

Permalink
Merge pull request #3981 from alphagov/font-changes
Browse files Browse the repository at this point in the history
Font changes ahead of apps being made compatible with govuk-frontend v5
  • Loading branch information
matthillco authored Apr 22, 2024
2 parents 621b5f7 + 4905819 commit f84c891
Show file tree
Hide file tree
Showing 51 changed files with 36 additions and 67 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Add the hidden attribute to mobile menu button ([PR #3975](https://github.com/alphagov/govuk_publishing_components/pull/3975))
* Add tool_name to GA4 feedback component tracking ([PR #3984](https://github.com/alphagov/govuk_publishing_components/pull/3984))
* Update script snippet in view templates ([PR #3986](https://github.com/alphagov/govuk_publishing_components/pull/3986))
* Font changes ahead of apps being made compatible with govuk-frontend v5 ([PR #3981](https://github.com/alphagov/govuk_publishing_components/pull/3981))

## 38.0.1

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/component_guide/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ $gem-guide-border-width: 1px;
}

&::before {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
content: attr(data-content);
position: absolute;
top: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

@include govuk-media-query($media-type: print) {
.gem-c-button {
@include govuk-font(14);
@include govuk-font(16);
display: inline-block;
padding: govuk-spacing(1);
border: solid 1px govuk-colour("black");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
table.financial-data {
.numeric {
text-align: right;
@include govuk-font(14, $weight: regular, $tabular: true);
@include govuk-font(16, $weight: regular, $tabular: true);
}

// make all elements inside thead look the same
Expand All @@ -82,10 +82,10 @@

thead th,
thead td {
@include govuk-font(14, $weight: bold, $tabular: true);
@include govuk-font(16, $weight: bold, $tabular: true);

&.numeric {
@include govuk-font(14, $weight: bold, $tabular: true);
@include govuk-font(16, $weight: bold, $tabular: true);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

.accessibility-warning {
h2 {
@include govuk-font(14);
@include govuk-font(16);
}

.toggler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
padding: 2px 5px 0;
margin-left: 3px;
vertical-align: middle;
@include govuk-font($size: 14, $weight: "bold");
@include govuk-font($size: 16, $weight: "bold");
}

.gem-c-environment-tag--production {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
}

.gem-c-option-select__selected-counter {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
color: $govuk-text-colour;
margin-top: 3px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@

// Default logo corresponds with the "medium stacked" Whitehall equivalent
.gem-c-organisation-logo {
font-size: 13px;
@include govuk-font($size: 19);
font-weight: 400;
line-height: 1.35;
// When this is a heading the margin needs to be set to stop it from
// inheriting the browser's default margin:
margin: 0;

@include govuk-media-query($from: tablet) {
font-size: 18px;
}
}

.gem-c-organisation-logo__container {
Expand Down Expand Up @@ -39,13 +35,8 @@
.gem-c-organisation-logo__crest {
// Default brand colour
border-left: 2px solid govuk-colour("black");
padding-top: 23px;
padding-left: 6px;

@include govuk-media-query($from: tablet) {
padding-top: 28px;
padding-left: 7px;
}
padding-top: 35px;
padding-left: 8px;

.brand--executive-office & {
border-left-width: 0;
Expand Down Expand Up @@ -81,80 +72,62 @@
}
}

@mixin crest($crest) {
background: url("govuk_publishing_components/crests/#{$crest}_13px.png") no-repeat 5px 0;
background-size: auto 20px;

@include govuk-device-pixel-ratio {
background-image: url("govuk_publishing_components/crests/#{$crest}_13px_x2.png");
}

@include govuk-media-query($from: tablet) {
background: url("govuk_publishing_components/crests/#{$crest}_18px.png") no-repeat 6px 0;
background-size: auto 26px;

@include govuk-device-pixel-ratio {
background-image: url("govuk_publishing_components/crests/#{$crest}_18px_x2.png");
}
}
@mixin crest($crest, $xpos:0, $ypos:0) {
background: url("govuk_publishing_components/crests/#{$crest}_18px_x2.png") no-repeat $xpos $ypos;
background-size: auto 32px;
}

@mixin tall-crest {
padding-top: 25px;
background-size: auto 25px;

@include govuk-media-query($from: tablet) {
padding-top: 35px;
background-size: auto 34px;
}
padding-top: 39px;
background-size: auto 34px;
}

.gem-c-organisation-logo__crest--dbt {
@include crest("dbt_crest");
@include crest($crest: "dbt_crest", $xpos: 9px);
}

.gem-c-organisation-logo__crest--bis {
@include crest("bis_crest");
@include crest($crest: "bis_crest", $xpos: 9px);
}

.gem-c-organisation-logo__crest--hmrc {
@include crest("hmrc_crest");
@include crest($crest: "hmrc_crest", $xpos: 8px);
}

.gem-c-organisation-logo__crest--ho {
@include crest("ho_crest");
@include crest($crest: "ho_crest", $xpos: 9px);
@include tall-crest;
}

.gem-c-organisation-logo__crest--mod {
@include crest("mod_crest");
@include crest($crest: "mod_crest", $xpos: 9px);
@include tall-crest;
}

.gem-c-organisation-logo__crest--single-identity,
.gem-c-organisation-logo__crest--eo,
.gem-c-organisation-logo__crest--org {
@include crest("org_crest");
@include crest($crest: "org_crest", $xpos: 8px);
}

.gem-c-organisation-logo__crest--portcullis {
@include crest("portcullis");
@include crest($crest: "portcullis", $xpos: 9px);
}

.gem-c-organisation-logo__crest--so {
@include crest("so_crest");
@include crest($crest: "so_crest", $xpos: 9px);
}

.gem-c-organisation-logo__crest--ukaea {
@include crest("ukaea_crest");
@include crest($crest: "ukaea_crest", $xpos: 9px);
}

.gem-c-organisation-logo__crest--ukho {
@include crest("ukho");
@include crest($crest: "ukho", $xpos: 8px);
@include tall-crest;
}

.gem-c-organisation-logo__crest--wales {
@include crest("wales_crest");
@include crest($crest: "wales_crest", $xpos: 9px);
@include tall-crest;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
.gem-c-step-nav-related__heading {
@include govuk-font(19, $weight: bold, $line-height: 1.4);
margin-top: govuk-spacing(4);

@include govuk-media-query($until: tablet) {
font-size: 19px;
}
}

.gem-c-step-nav-related__pretitle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@
.gem-c-subscription-links__item--button {
cursor: pointer;
display: none;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
@include govuk-font(19, $weight: bold);
padding: govuk-spacing(2);
border: 1px solid $gem-quiet-button-colour;
background-color: $gem-secondary-button-background-colour;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

.metadata {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
}

.url {
Expand Down Expand Up @@ -93,12 +93,12 @@
}

.opendocument-help {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
}

.accessibility-warning {
h2 {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
margin: 0;
}
word-break: break-word;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.fraction {
sup,
sub {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
}

img {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

figcaption {
@include govuk-font($size: 14);
@include govuk-font($size: 16);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
}

td small {
font-size: 1em;
font-size: 19px;
font-size: govuk-px-to-rem(19);
}

.cell-text-left {
Expand Down

0 comments on commit f84c891

Please sign in to comment.