Skip to content

Commit bed2a5e

Browse files
MartijnCuppensXhmikosR
authored andcommitted
Switch percentage font-sizes to em and change some font sizes for consistency
1 parent 4db520b commit bed2a5e

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

scss/_reboot.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ small {
213213
sub,
214214
sup {
215215
position: relative;
216-
@include font-size(75%);
216+
@include font-size($sub-sup-font-size);
217217
line-height: 0;
218218
vertical-align: baseline;
219219
}
@@ -298,7 +298,7 @@ kbd {
298298

299299
kbd {
300300
padding: 0;
301-
@include font-size(100%);
301+
@include font-size(1em);
302302
font-weight: $nested-kbd-font-weight;
303303
}
304304
}

scss/_type.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
// Builds on `abbr`
9393
.initialism {
94-
@include font-size(90%);
94+
@include font-size($initialism-font-size);
9595
text-transform: uppercase;
9696
}
9797

scss/_variables.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,14 @@ $display-line-height: $headings-line-height !default;
332332
$lead-font-size: $font-size-base * 1.25 !default;
333333
$lead-font-weight: 300 !default;
334334

335-
$small-font-size: 80% !default;
335+
$small-font-size: .875em !default;
336+
337+
$sub-sup-font-size: .75em !default;
336338

337339
$text-muted: $gray-600 !default;
338340

341+
$initialism-font-size: $small-font-size !default;
342+
339343
$blockquote-small-color: $gray-600 !default;
340344
$blockquote-small-font-size: $small-font-size !default;
341345
$blockquote-font-size: $font-size-base * 1.25 !default;
@@ -923,7 +927,7 @@ $toast-header-border-color: rgba(0, 0, 0, .05) !default;
923927

924928
// Badges
925929

926-
$badge-font-size: 75% !default;
930+
$badge-font-size: .75em !default;
927931
$badge-font-weight: $font-weight-bold !default;
928932
$badge-color: $white !default;
929933
$badge-padding-y: .25em !default;
@@ -1040,7 +1044,7 @@ $thumbnail-box-shadow: $box-shadow-sm !default;
10401044

10411045
// Figures
10421046

1043-
$figure-caption-font-size: 90% !default;
1047+
$figure-caption-font-size: $small-font-size !default;
10441048
$figure-caption-color: $gray-600 !default;
10451049

10461050

@@ -1108,7 +1112,7 @@ $close-text-shadow: 0 1px 0 $white !default;
11081112

11091113
// Code
11101114

1111-
$code-font-size: 87.5% !default;
1115+
$code-font-size: $small-font-size !default;
11121116
$code-color: $pink !default;
11131117

11141118
$kbd-padding-y: .2rem !default;

0 commit comments

Comments
 (0)