Skip to content

Commit 27d3518

Browse files
authored
Normalise monospace fonts (#1652)
1 parent a109820 commit 27d3518

File tree

30 files changed

+44
-70
lines changed

30 files changed

+44
-70
lines changed

common-content/en/module/js3/fetch-films/filterFilms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
--gap: 1ch;
1111
}
1212
body {
13-
font-family: Monaco, monospace;
13+
font-family: "Monaco", "Menlo", monospace;
1414
background: linear-gradient(var(--paper), var(--paper-light)) no-repeat;
1515
min-height: 100vh;
1616
padding: 5rem 3rem;

common-docs/assets/custom-theme/02-variables/fonts.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

common-docs/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ require (
66
github.com/CodeYourFuture/CYF-PD v1.0.1-0.20240721130916-d70fc853a278 // indirect
77
github.com/CodeYourFuture/CYF-Projects/micro-front-end v0.0.0-20240817190624-149d97c26abe // indirect
88
github.com/CodeYourFuture/CYF-Workshops/micro-front-end v0.0.0-20240802103453-e77217be1596 // indirect
9-
github.com/CodeYourFuture/curriculum/common-content v0.0.0-20240818070728-e8702788f7cb // indirect
10-
github.com/CodeYourFuture/curriculum/common-theme v0.0.0-20240818070728-e8702788f7cb // indirect
9+
github.com/CodeYourFuture/curriculum/common-content v0.0.0-20241008095008-281a5517463f // indirect
10+
github.com/CodeYourFuture/curriculum/common-theme v0.0.0-20241008095008-281a5517463f // indirect
1111
github.com/CodeYourFuture/curriculum/org-cyf-guides v0.0.0-20240730234110-686ee61f166f // indirect
1212
)
1313

common-docs/hugo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ title = "The longed for documentation"
4444
url = "https://codeyourfuture.io/donate"
4545

4646
[params]
47-
googleFonts="https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Oswald:wght@400;700&display=swap"
47+
googleFonts="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap"
4848
description = "A free and open source technical curriculum platform."
4949
main_website = "https://curriculum.codeyourfuture.io/"
5050
main_org_name = "Code Your Future"
@@ -79,4 +79,4 @@ theme = "common-theme"
7979
# because of this 'unexpected behaviour' https://gohugo.io/methods/page/nextinsection/
8080
[page]
8181
nextPrevInSectionSortOrder = 'asc'
82-
nextPrevSortOrder = 'asc'
82+
nextPrevSortOrder = 'asc'
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
:root {
2-
--theme-font--display: "Space Grotesk", serif;
3-
--theme-font--copy: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
4-
"Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
5-
sans-serif;
6-
--theme-font--system: 100 100%/2 "Monaco", "Menlo", "Space Grotesk", monospace;
7-
--theme-font--emoji: "Fluent UI Emoji", Apple Color Emoji, "Noto Color Emoji",
8-
"Segoe UI Emoji", "EmojiOne Color", "Twemoji Mozilla";
2+
--theme-font--headings: 700 100%/1.5 Raleway, sans-serif;
3+
--theme-font--ui: 400 100%/1.5 Raleway, sans-serif;
4+
--theme-font--copy: 400 100%/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
5+
--theme-font--code: 100 100%/2 Monaco, Menlo, monospace;
96
}

common-theme/assets/styles/03-elements/base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44
body,
55
html {
6-
font-family: var(--theme-font--copy);
6+
font: var(--theme-font--copy);
77
font-size: 100%;
88
background-color: var(--theme-color--paper);
99
color: var(--theme-color--ink);

common-theme/assets/styles/03-elements/buttons.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.e-button {
22
// reset
33
appearance: none;
4-
font: 600 var(--theme-type-size--6) var(--theme-font--display), system-ui;
4+
font: var(--theme-font--ui);
5+
font-size: var(--theme-type-size--6);
56
text-decoration: none;
67
text-align: center;
78
white-space: nowrap;

common-theme/assets/styles/03-elements/forms.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ main input:not([type="radio"]):not([type="checkbox"]) {
3434
}
3535

3636
legend {
37-
font: var(--theme-type-size--4) var(--theme-font--display);
37+
font: var(--theme-font--copy);
38+
font-size: var(--theme-type-size--4);
3839
// float legend in a fieldset of display grid to artificially recreate a box
3940
float: left;
4041
padding: var(--theme-spacing--1) 0;
4142
}
4243
label,
4344
input::placeholder {
44-
font: var(--theme-type-size--3) var(--theme-font--system);
45+
font: var(--theme-font--copy);
46+
font-size: var(--theme-type-size--6);
4547
}
4648

4749
[type="submit"] {

common-theme/assets/styles/03-elements/headings.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $heading__levels: 1, 2, 3, 4, 5, 6;
22
@each $h in $heading__levels {
33
h#{$h},
44
.e-heading__#{$h} {
5-
font-family: var(--theme-font--display);
5+
font: var(--theme-font--headings);
66
font-size: var(--theme-type-size--#{$h});
77
font-weight: 300;
88
margin: 0;

common-theme/assets/styles/03-elements/images.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ svg {
22
height: 100%;
33
width: auto;
44
min-width: var(--theme-spacing--touchtarget);
5-
font: var(--theme-font--system);
5+
font: var(--theme-font--ui);
66
}
77

88
img {
@@ -32,6 +32,6 @@ figure img {
3232

3333
figcaption {
3434
padding: var(--theme-spacing--gutter);
35-
font-family: var(--theme-font--display);
35+
font: var(--theme-font--ui);
3636
border-bottom: var(--theme-border);
3737
}

0 commit comments

Comments
 (0)