Skip to content

Commit 54759a9

Browse files
authored
Typography Fixes (#2401)
1 parent eaa49b3 commit 54759a9

34 files changed

Lines changed: 83 additions & 115 deletions

core/views.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,8 +1773,9 @@ def get_context_data(self, **kwargs):
17731773
{"label": "Visit the FAQ", "url": "https://www.example.com"},
17741774
],
17751775
"url": "https://www.example.com",
1776-
"label": "Learn more about Boost",
1777-
"image_src": "/static/img/v3/examples/Learn Card Image.png",
1776+
"label": "Get started with Boost",
1777+
"image_src": f"{settings.STATIC_URL}img/v3/examples/Learn_Card_Image.png",
1778+
"mobile_image_src": f"{settings.STATIC_URL}img/v3/examples/Cheetah_Mobile.png",
17781779
}
17791780

17801781
context["testimonial_data"] = {
@@ -1998,7 +1999,7 @@ def get_context_data(self, **kwargs):
19981999
deps = lv.dependencies.order_by("name")
19992000
context["dependencies_card_data"] = [
20002001
{
2001-
"name": dep.display_name_short,
2002+
"name": dep.name,
20022003
"url": reverse(
20032004
"library-detail",
20042005
kwargs={

static/css/v3/account-connections.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
.account-connections__platform-name {
49-
font-family: var(--font-sans, 'Mona Sans VF'), sans-serif;
49+
font-family: var(--font-sans);
5050
font-size: var(--font-size-base, 16px);
5151
font-weight: var(--font-weight-medium, 500);
5252
line-height: var(--line-height-default, 1.2);
@@ -57,7 +57,7 @@
5757

5858
.account-connections__status {
5959
flex: 1 1 0;
60-
font-family: var(--font-sans, 'Mona Sans VF'), sans-serif;
60+
font-family: var(--font-sans);
6161
font-size: var(--font-size-base, 16px);
6262
font-weight: var(--font-weight-regular, 400);
6363
line-height: var(--line-height-default, 1.2);

static/css/v3/banner.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
color: var(--color-text-on-accent, #050816);
1515

1616
/* Sans/Desktop/Regular/XS/Tight */
17-
font-family: var(--font-sans, "Mona Sans VF");
17+
font-family: var(--font-sans);
1818
font-size: var(--font-size-xs, 12px);
1919
font-weight: var(--font-weight-regular);
2020
line-height: var(--line-height-tight);

static/css/v3/calendar.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
color: var(--color-text-primary, #050816);
1313

1414
/* Sans/Desktop/Regular/2XL */
15-
font-family: var(--font-sans, "Mona Sans VF");
15+
font-family: var(--font-sans);
1616
font-size: var(--font-size-2xl, 40px);
1717
font-style: normal;
1818
font-weight: var(--font-weight-regular);
@@ -26,7 +26,7 @@
2626
color: var(--color-text-secondary, #585A64);
2727

2828
/* Sans/Desktop/Regular/M */
29-
font-family: var(--font-sans, "Mona Sans VF");
29+
font-family: var(--font-sans);
3030
font-size: var(--font-size-medium, 18px);
3131
font-style: normal;
3232
font-weight: var(--font-weight-regular);

static/css/v3/card.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@
5252
}
5353

5454
.card__column {
55-
display: flex;
56-
flex-direction: column;
57-
align-items: flex-start;
58-
gap: var(--space-large);
59-
width: 100%;
55+
display: flex;
56+
flex-direction: column;
57+
align-items: flex-start;
58+
gap: var(--space-large);
59+
width: 100%;
60+
color: var(--color-text-secondary);
61+
font-size: var(--font-size-medium);
62+
letter-spacing: var(--letter-spacing-tight);
6063
}
6164

6265
.card__header {
@@ -126,7 +129,7 @@
126129
flex: 1 0 0;
127130
padding: 0;
128131
color: var(--color-text-secondary, #585a64);
129-
font-family: var(--font-sans, 'Mona Sans VF'), sans-serif;
132+
font-family: var(--font-sans);
130133
font-size: var(--font-size-base, 16px);
131134
font-weight: var(--font-weight-regular, 400);
132135
line-height: var(--line-height-default, 1.2);

static/css/v3/carousel-buttons.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
}
2727

2828
.carousel-buttons .btn-carousel .btn-icon {
29-
width: 12px;
30-
height: 12px;
29+
width: 16px;
30+
height: 16px;
3131
}
3232

3333
.carousel-buttons .btn-carousel .btn-icon svg {
34-
width: 12px;
35-
height: 12px;
34+
width: 16px;
35+
height: 16px;
3636
}
3737

3838
.carousel-buttons .btn-carousel:hover:not(:disabled) {

static/css/v3/category-tags.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
font-family: var(--font-sans);
66
font-size: var(--font-size-xs);
77
line-height: var(--line-height-tight);
8+
letter-spacing: var(--letter-spacing-tight);
89
font-weight: var(--font-weight-regular);
910
border-radius: var(--border-radius-s);
1011
text-decoration: none;

static/css/v3/code-block.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
border-radius: var(--border-radius-l);
4040
overflow: auto;
4141
font-family: var(--font-code);
42-
font-size: var(--font-size-small);
42+
font-size: var(--font-size-xs);
4343
line-height: var(--line-height-code);
4444
color: var(--code-block-text);
4545
box-sizing: border-box;
@@ -68,6 +68,8 @@
6868
font-weight: 500;
6969
color: var(--color-syntax-cpp-text) !important;
7070
white-space: break-spaces !important;
71+
font-size: inherit;
72+
line-height: var(--line-height-code);
7173
}
7274

7375
/* CTA button in card */
@@ -136,19 +138,15 @@ html.dark .code-block-card--grey {
136138
.code-block-card__heading {
137139
margin: 0;
138140
padding: 0 var(--space-card) var(--space-card) var(--space-card);
139-
font-size: var(--font-size-large);
140-
font-weight: var(--font-weight-medium);
141-
line-height: var(--line-height-tight);
142-
font-family: var(--font-display);
143-
color: var(--color-text-primary);
144141
}
145142

146143
.code-block-card__description {
147144
padding: var(--space-card) var(--space-card) var(--space-default)
148145
var(--space-card);
149146
margin: 0 0 var(--space-medium);
150147
font-size: var(--font-size-medium);
151-
line-height: var(--line-height-relaxed);
148+
line-height: var(--line-height-default);
149+
letter-spacing: var(--letter-spacing-tight);
152150
color: var(--color-text-secondary);
153151
}
154152

@@ -163,12 +161,14 @@ html.dark .code-block-card--grey {
163161
white-space: pre;
164162
min-height: 1em;
165163
overflow: hidden;
164+
font-size: inherit;
165+
line-height: inherit;
166166
}
167167

168168
.code-block__copy {
169169
position: absolute;
170-
top: var(--space-default);
171-
right: var(--space-default);
170+
top: var(--space-card);
171+
right: var(--space-card);
172172
width: var(--code-block-copy-icon-size);
173173
height: var(--code-block-copy-icon-size);
174174
padding: 0;

static/css/v3/content.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ a:hover .content-detail-icon:not(.content-detail-icon--contained) {
8383
margin: 0;
8484
font-size: var(--font-size-small);
8585
line-height: var(--line-height-relaxed);
86+
letter-spacing: var(--letter-spacing-tight);
8687
color: var(--color-text-secondary);
8788
padding: 0;
8889
}

static/css/v3/dialog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
font-size: var(--font-size-large);
100100
font-weight: var(--font-weight-medium);
101101
line-height: var(--line-height-tight);
102-
letter-spacing: var(--letter-spacing-display-regular);
102+
letter-spacing: var(--letter-spacing-tight);
103103
color: var(--color-text-primary);
104104
display: block !important;
105105
}

0 commit comments

Comments
 (0)