Skip to content

Commit 681aa11

Browse files
fix: scope footer stat styles
1 parent 847e007 commit 681aa11

3 files changed

Lines changed: 28 additions & 22 deletions

File tree

src/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ html {
13511351
[data-theme="dark"] .enhanced-footer .footer-main,
13521352
[data-theme="dark"] .enhanced-footer .footer-stats,
13531353
[data-theme="dark"] .enhanced-footer .footer-bottom,
1354-
[data-theme="dark"] .enhanced-footer .stat-item {
1354+
[data-theme="dark"] .enhanced-footer .footer-stat-item {
13551355
background: #191919 !important;
13561356
background-image: none !important;
13571357
}

src/theme/Footer/Layout/enhanced-footer.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
background: var(--footer-canvas);
219219
}
220220

221-
.stat-item {
221+
.footer-stat-item {
222222
display: flex;
223223
align-items: baseline;
224224
justify-content: center;
@@ -230,11 +230,11 @@
230230
border-right: 1px solid var(--footer-hairline);
231231
}
232232

233-
.stat-item:last-child {
233+
.footer-stat-item:last-child {
234234
border-right: 0;
235235
}
236236

237-
.stat-number {
237+
.footer-stat-number {
238238
color: var(--footer-steel);
239239
background: none !important;
240240
-webkit-background-clip: border-box !important;
@@ -246,7 +246,7 @@
246246
text-shadow: none !important;
247247
}
248248

249-
.stat-number > div {
249+
.footer-stat-number > div {
250250
display: inline;
251251
color: inherit;
252252
background: none !important;
@@ -256,7 +256,7 @@
256256
text-shadow: none !important;
257257
}
258258

259-
.stat-label {
259+
.footer-stat-label {
260260
color: var(--footer-stone);
261261
background: none !important;
262262
-webkit-background-clip: border-box !important;
@@ -385,7 +385,7 @@
385385
.enhanced-footer.dark-theme .footer-main,
386386
.enhanced-footer.dark-theme .footer-stats,
387387
.enhanced-footer.dark-theme .footer-bottom,
388-
.enhanced-footer.dark-theme .stat-item {
388+
.enhanced-footer.dark-theme .footer-stat-item {
389389
background: var(--footer-canvas) !important;
390390
background-image: none !important;
391391
}
@@ -460,7 +460,7 @@
460460
grid-template-columns: repeat(2, minmax(0, 1fr));
461461
}
462462

463-
.stat-item:nth-child(2n) {
463+
.footer-stat-item:nth-child(2n) {
464464
border-right: 0;
465465
}
466466

@@ -525,14 +525,14 @@
525525
grid-template-columns: 1fr;
526526
}
527527

528-
.stat-item {
528+
.footer-stat-item {
529529
justify-content: space-between;
530530
text-align: left;
531531
border-right: 0;
532532
border-bottom: 1px solid var(--footer-hairline);
533533
}
534534

535-
.stat-item:last-child {
535+
.footer-stat-item:last-child {
536536
border-bottom: 0;
537537
}
538538

src/theme/Footer/Layout/index.tsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,32 +261,38 @@ export default function FooterLayout(): ReactNode {
261261

262262
<div className="footer-stats" aria-label="Community statistics">
263263
<div
264-
className="stat-item"
264+
className="footer-stat-item"
265265
title="Growing community of active learners"
266266
>
267-
<div className="stat-number">
267+
<div className="footer-stat-number">
268268
<Counter value={parseInt(stats.activeUsers)} suffix="K+" />
269269
</div>
270-
<div className="stat-label">Active Learners</div>
270+
<div className="footer-stat-label">Active Learners</div>
271271
</div>
272272
<div
273-
className="stat-item"
273+
className="footer-stat-item"
274274
title="Comprehensive tutorials and courses"
275275
>
276-
<div className="stat-number">
276+
<div className="footer-stat-number">
277277
<Counter value={parseInt(stats.tutorials)} suffix="+" />
278278
</div>
279-
<div className="stat-label">Tutorials</div>
279+
<div className="footer-stat-label">Tutorials</div>
280280
</div>
281-
<div className="stat-item" title="People sponsored by the community">
282-
<div className="stat-number">
281+
<div
282+
className="footer-stat-item"
283+
title="People sponsored by the community"
284+
>
285+
<div className="footer-stat-number">
283286
<Counter value={parseInt(stats.peopleSponsored)} suffix="+" />
284287
</div>
285-
<div className="stat-label">People Sponsored</div>
288+
<div className="footer-stat-label">People Sponsored</div>
286289
</div>
287-
<div className="stat-item" title="Round-the-clock community support">
288-
<div className="stat-number">{stats.supportHours}</div>
289-
<div className="stat-label">Support</div>
290+
<div
291+
className="footer-stat-item"
292+
title="Round-the-clock community support"
293+
>
294+
<div className="footer-stat-number">{stats.supportHours}</div>
295+
<div className="footer-stat-label">Support</div>
290296
</div>
291297
</div>
292298

0 commit comments

Comments
 (0)