Skip to content

Commit 8ced84c

Browse files
committed
style: styling fixes for letter-spacing, line-height, text color and icon sizing
1 parent 2a2c715 commit 8ced84c

22 files changed

Lines changed: 52 additions & 47 deletions

core/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,8 +1724,9 @@ def get_context_data(self, **kwargs):
17241724
{"label": "Visit the FAQ", "url": "https://www.example.com"},
17251725
],
17261726
"url": "https://www.example.com",
1727-
"label": "Learn more about Boost",
1728-
"image_src": "/static/img/v3/examples/Learn Card Image.png",
1727+
"label": "Get started with Boost",
1728+
"image_src": f"{settings.STATIC_URL}img/v3/examples/Learn_Card_Image.png",
1729+
"mobile_image_src": f"{settings.STATIC_URL}img/v3/examples/Cheetah_Mobile.png",
17291730
}
17301731

17311732
context["testimonial_data"] = {

static/css/v3/card.css

Lines changed: 8 additions & 5 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 {

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 & 8 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,18 +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: 600;
141-
font-family: var(--font-display);
142-
color: var(--color-text-primary);
143141
}
144142

145143
.code-block-card__description {
146144
padding: var(--space-card) var(--space-card) var(--space-default)
147145
var(--space-card);
148146
margin: 0 0 var(--space-medium);
149147
font-size: var(--font-size-medium);
150-
line-height: var(--line-height-relaxed);
148+
line-height: var(--line-height-default);
149+
letter-spacing: var(--letter-spacing-tight);
151150
color: var(--color-text-secondary);
152151
}
153152

@@ -162,12 +161,14 @@ html.dark .code-block-card--grey {
162161
white-space: pre;
163162
min-height: 1em;
164163
overflow: hidden;
164+
font-size: inherit;
165+
line-height: inherit;
165166
}
166167

167168
.code-block__copy {
168169
position: absolute;
169-
top: var(--space-default);
170-
right: var(--space-default);
170+
top: var(--space-card);
171+
right: var(--space-card);
171172
width: var(--code-block-copy-icon-size);
172173
height: var(--code-block-copy-icon-size);
173174
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
}

static/css/v3/forms.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
font-family: var(--font-sans);
1616
font-size: var(--font-size-xs);
1717
font-weight: var(--font-weight-medium);
18-
line-height: var(--line-height-relaxed);
18+
line-height: var(--line-height-default);
1919
letter-spacing: var(--letter-spacing-tight);
2020
color: var(--color-text-primary);
2121
}

static/css/v3/learn-cards.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
.learn-card__link-column {
18-
gap: var(--space-s);
18+
gap: var(--space-default);
1919
}
2020

2121
@media (max-width: 1280px) {
@@ -44,7 +44,6 @@
4444

4545
.learn-card__title {
4646
color: var(--color-text-primary);
47-
4847
font-family: var(--font-display);
4948
font-size: var(--font-size-large);
5049
font-weight: var(--font-weight-medium);
@@ -53,11 +52,8 @@
5352
}
5453

5554
.learn-card__text {
56-
color: var(--color-text-secondary);
57-
5855
font-family: var(--font-sans);
5956
font-size: var(--font-size-base);
60-
font-weight: var(--font-weight-medium);
6157
letter-spacing: -0.16px;
6258
}
6359

@@ -90,7 +86,12 @@
9086
text-decoration-skip-ink: auto;
9187
text-decoration-thickness: 7.5%;
9288
text-underline-offset: 15.2%;
93-
text-underline-position: from-font;
89+
text-underline-position: auto;
90+
color: var(--color-text-primary);
91+
}
92+
93+
.learn-card__link:hover {
94+
color: var(--color-text-link-accent);
9495
}
9596

9697

static/css/v3/library-intro-card.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
color: var(--color-text-primary, #050816);
4343
}
4444

45+
.library-intro-card__description {
46+
color: var(--color-text-secondary);
47+
}
48+
4549
.library-intro-card__title-pill {
4650
display: inline-flex;
4751
align-items: center;

0 commit comments

Comments
 (0)