Skip to content

Commit

Permalink
Add relative font-sizes for code elements
Browse files Browse the repository at this point in the history
This means when users change their font size that these elements
will scale alongside the rest of the text.

We leave the pixel font sizes as fallbacks for older browsers.

Fixes #127
  • Loading branch information
NickColley committed Oct 18, 2019
1 parent bdf4d34 commit 2fea563
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/assets/stylesheets/modules/_technical-documentation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@

font-family: monaco, Consolas, "Lucida Console", monospace;
font-size: 15px;
font-size: 0.9375rem;
color: $code-0E;

@include govuk-media-query(tablet) {
font-size: 16px;
font-size: 1rem;
}

// Handle long strings (URLs, long variable names, etc) by allowing them
Expand Down

0 comments on commit 2fea563

Please sign in to comment.