Skip to content

Commit

Permalink
Shrink demo width utility text size to fit on one line each
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmbradford committed Nov 19, 2024
1 parent ea2e45b commit 5b80eaa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/variation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

// Gives 100% width to all tables
table {
@include u-w100pct;
width: 100%;
}

.a-live__code table {
Expand Down
36 changes: 22 additions & 14 deletions docs/pages/helper-classes-mixins.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,59 +121,67 @@ variation_groups:
<!--NOTE: Inline style properties for demonstration only.-->
<div class="u-w100pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w100pct" style="background: #f4edf3; margin-bottom: 1px; font-size:12px;">
<code>.u-w100pct</code>
</div>
<div class="u-w90pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w90pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w90pct</code>
</div>
<div class="u-w80pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w80pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w80pct</code>
</div>
<div class="u-w70pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w70pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w70pct</code>
</div>
<div class="u-w60pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w60pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w60pct</code>
</div>
<div class="u-w50pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w50pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w50pct</code>
</div>
<div class="u-w40pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w40pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w40pct</code>
</div>
<div class="u-w30pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w30pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w30pct</code>
</div>
<div class="u-w20pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w20pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w20pct</code>
</div>
<div class="u-w10pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w10pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w10pct</code>
</div>
<div class="u-w75pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w75pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w75pct</code>
</div>
<div class="u-w25pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w25pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w25pct</code>
</div>
<div class="u-w66pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w65pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w65pct</code>
</div>
<div class="u-w15pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w15pct</code>
</div>
<div class="u-w66pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w66pct</code>
</div>
<div class="u-w33pct" style="background: #f4edf3; margin-bottom: 1px;">
<div class="u-w33pct" style="background: #f4edf3; margin-bottom: 1px;font-size:12px;">
<code>.u-w33pct</code>
</div>
variation_description: Set the `width` of an element in percentages.
Expand Down
6 changes: 1 addition & 5 deletions packages/cfpb-design-system/src/utilities/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,8 @@ $ba: Link underline active color.
// Width utilities
//

@mixin u-w100pct() {
width: 100%;
}

.u-w100pct {
@include u-w100pct;
width: 100%;
}

.u-w90pct {
Expand Down

0 comments on commit 5b80eaa

Please sign in to comment.