Skip to content

Commit 651a7a7

Browse files
author
Andrzej Maciurzyński
committed
Merge pull request #604 from brainly/feature/update-text-bits
Feature/update text bits
2 parents 5779712 + c121c72 commit 651a7a7

2 files changed

Lines changed: 10 additions & 17 deletions

File tree

src/components/text/_text-bits.scss

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ $textBitAltColor: $blueSecondary;
44
$textBitWarningColor: $peachPrimary;
55
$textBitLightColor: $white;
66
$textBitDarkColor: $black;
7-
$textBitLargeFontSize: fontSize(large);
8-
$textBitLargerTabletFontSize: fontSize(xlarge);
9-
$textBitLargerDesktopFontSize: fontSize(xxlarge);
107

118
$includeHtml: false !default;
129

@@ -22,7 +19,7 @@ $includeHtml: false !default;
2219

2320
@include mintBreakpoint(medium-up) {
2421
&:not(.mint-text-bit--not-responsive) {
25-
font-size: $textBitLargeFontSize;
22+
font-size: fontSize(large);
2623
}
2724
}
2825

@@ -56,24 +53,20 @@ $includeHtml: false !default;
5653
}
5754

5855
&--large {
59-
font-size: $textBitLargeFontSize;
56+
font-size: fontSize(large);
6057
}
6158

6259
&--xlarge {
63-
@include typeVariant(xxlarge, 3);
64-
}
65-
66-
&--to-larger:not(.mint-text-bit--not-responsive) {
67-
@include mintBreakpoint(medium-up) {
68-
font-size: $textBitLargerTabletFontSize;
69-
line-height: rhythm(3);
70-
}
60+
@include typeVariant(large, 2);
61+
width: 100%;
7162

7263
@include mintBreakpoint(large-only) {
73-
font-size: $textBitLargerDesktopFontSize;
74-
line-height: rhythm(3);
64+
@include typeVariant(xxlarge, 3);
7565
}
7666
}
77-
}
7867

68+
&--xxlarge {
69+
@include typeVariant(xxlarge, 3);
70+
}
71+
}
7972
}

src/components/text/text-bit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1 class="mint-text-bit mint-text-bit--large mint-text-bit--alt">
1212
<h1 class="mint-text-bit mint-text-bit--not-responsive mint-text-bit--warning">
1313
WHAT DO YOU NEED TO KNOW?
1414
</h1>
15-
<h1 class="mint-text-bit mint-text-bit--to-larger mint-text-bit--dark">
15+
<h1 class="mint-text-bit mint-text-bit--not-responsive mint-text-bit--xxlarge mint-text-bit--dark">
1616
WHAT DO YOU NEED TO KNOW?
1717
</h1>
1818
<div class="docs-block__contrast-box">

0 commit comments

Comments
 (0)