Skip to content

Commit 07dece2

Browse files
committed
Move release highlights styling to boostlook
Add the boostlook class to the description, drop the component bold rule, and re-vendor boostlook-v3.css.
1 parent a00d791 commit 07dece2

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

static/css/v3/boostlook-v3.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5838,3 +5838,14 @@ html.v3 .boostlook {
58385838
color: var(--color-text-primary);
58395839
font-weight: var(--font-weight-medium);
58405840
}
5841+
5842+
/* Release highlights card (what's-new descriptions via inline_markdown) — #2491.
5843+
The description's layout and base type (secondary color, size, spacing) stay in
5844+
release-highlights-card.css; the only rich-text spans inline_markdown can emit
5845+
are <strong> and <code>. Bold uses the site's medium weight (the non-doc rule
5846+
above already drops boostlook's condensed axis). Inline code has no override, so
5847+
it inherits boostlook's code treatment — matching the release notes markdown card
5848+
on the same page. */
5849+
.boostlook.release-highlight__description strong {
5850+
font-weight: var(--font-weight-medium);
5851+
}

static/css/v3/release-highlights-card.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
color: var(--color-text-secondary);
5252
}
5353

54-
.release-highlight__description strong {
55-
font-weight: var(--font-weight-medium);
56-
}
54+
/* Rich-text rendering (bold/inline-code from inline_markdown) is handled by
55+
Boostlook via `.boostlook.release-highlight__description` in
56+
17-site-components.css; the description carries the `boostlook` class. */
5757

5858
.release-highlight__placeholder {
5959
padding: 0 var(--space-card);

templates/v3/includes/_release_highlights_card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<article class="release-highlight">
4141
<h3 class="release-highlight__title">{{ item.title }}</h3>
4242
{% if item.description %}
43-
<p class="release-highlight__description">{{ item.description|inline_markdown }}</p>
43+
<p class="release-highlight__description boostlook">{{ item.description|inline_markdown }}</p>
4444
{% endif %}
4545
</article>
4646
</li>

0 commit comments

Comments
 (0)