Skip to content

Commit af1e186

Browse files
Docs: replaced deprecated .display-5 with .fs-4xl .fw-light
Spotted in #42487
1 parent 33c19fd commit af1e186

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

site/src/assets/examples/blog/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
106106
</h3>
107107

108108
<article class="blog-post">
109-
<h2 class="display-5 fg-emphasis-inverse mb-1">Sample blog post</h2>
109+
<h2 class="fs-4xl fw-light fg-emphasis-inverse mb-1">Sample blog post</h2>
110110
<p class="blog-post-meta">January 1, 2021 by <a href="#">Mark</a></p>
111111

112112
<p>This blog post shows a few different types of content that’s supported and styled with Bootstrap. Basic typography, lists, tables, images, code, and more are all supported as expected.</p>
@@ -160,7 +160,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
160160
</article>
161161

162162
<article class="blog-post">
163-
<h2 class="display-5 fg-emphasis-inverse mb-1">Another blog post</h2>
163+
<h2 class="fs-4xl fw-light fg-emphasis-inverse mb-1">Another blog post</h2>
164164
<p class="blog-post-meta">December 23, 2020 by <a href="#">Jacob</a></p>
165165

166166
<p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>
@@ -208,7 +208,7 @@ import Placeholder from "@shortcodes/Placeholder.astro"
208208
</article>
209209

210210
<article class="blog-post">
211-
<h2 class="display-5 fg-emphasis-inverse mb-1">New feature</h2>
211+
<h2 class="fs-4xl fw-light fg-emphasis-inverse mb-1">New feature</h2>
212212
<p class="blog-post-meta">December 14, 2020 by <a href="#">Chris</a></p>
213213

214214
<p>This is some additional paragraph placeholder content. It has been written to fill the available space and show how a longer snippet of text affects the surrounding content. We'll repeat it often to keep the demonstration flowing, so be on the lookout for this exact same string of text.</p>

site/src/assets/examples/heroes/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const extra_css = ['heroes.css']
1010

1111
<div class="px-4 py-5 my-5 text-center">
1212
<img class="d-block mx-auto mb-4" src={getVersionedDocsPath('/assets/brand/bootstrap-logo.svg')} alt="" width="72" height="57">
13-
<h1 class="display-5 fw-bold text-body-emphasis">Centered hero</h1>
13+
<h1 class="fs-4xl fw-bold text-body-emphasis">Centered hero</h1>
1414
<div class="lg:col-6 mx-auto">
1515
<p class="fs-lg fw-light mb-4">Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.</p>
1616
<div class="d-grid gap-2 sm:d-flex sm:justify-content-center">
@@ -46,7 +46,7 @@ export const extra_css = ['heroes.css']
4646
<img src="bootstrap-themes.png" class="d-block lg:mx-auto img-fluid" alt="Bootstrap Themes" width="700" height="500" loading="lazy">
4747
</div>
4848
<div class="lg:col-6">
49-
<h1 class="display-5 fw-bold text-body-emphasis lh-1 mb-3">Responsive left-aligned hero with image</h1>
49+
<h1 class="fs-4xl fw-bold text-body-emphasis lh-1 mb-3">Responsive left-aligned hero with image</h1>
5050
<p class="fs-lg fw-light">Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.</p>
5151
<div class="d-grid gap-2 md:d-flex md:justify-content-start">
5252
<button type="button" class="btn-solid theme-primary btn-lg px-4 md:me-2">Primary</button>
@@ -108,7 +108,7 @@ export const extra_css = ['heroes.css']
108108

109109
<div class="bg-black fg-secondary px-4 py-5 text-center" data-bs-theme="dark">
110110
<div class="py-5">
111-
<h1 class="display-5 fw-bold fg-white">Dark color hero</h1>
111+
<h1 class="fs-4xl fw-bold fg-white">Dark color hero</h1>
112112
<div class="lg:col-6 mx-auto">
113113
<p class="mb-4">Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.</p>
114114
<div class="d-grid gap-2 sm:d-flex sm:justify-content-center">

0 commit comments

Comments
 (0)