Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
bed2a5ed
Commit
bed2a5ed
authored
5 years ago
by
Martijn Cuppens
Committed by
XhmikosR
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Switch percentage `font-size`s to `em` and change some font sizes for consistency
parent
4db520be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scss/_reboot.scss
+2
-2
scss/_reboot.scss
scss/_type.scss
+1
-1
scss/_type.scss
scss/_variables.scss
+8
-4
scss/_variables.scss
with
11 additions
and
7 deletions
+11
-7
scss/_reboot.scss
+
2
-
2
View file @
bed2a5ed
...
@@ -213,7 +213,7 @@ small {
...
@@ -213,7 +213,7 @@ small {
sub
,
sub
,
sup
{
sup
{
position
:
relative
;
position
:
relative
;
@include
font-size
(
75%
);
@include
font-size
(
$sub-sup-font-size
);
line-height
:
0
;
line-height
:
0
;
vertical-align
:
baseline
;
vertical-align
:
baseline
;
}
}
...
@@ -298,7 +298,7 @@ kbd {
...
@@ -298,7 +298,7 @@ kbd {
kbd
{
kbd
{
padding
:
0
;
padding
:
0
;
@include
font-size
(
1
00%
);
@include
font-size
(
1
em
);
font-weight
:
$nested-kbd-font-weight
;
font-weight
:
$nested-kbd-font-weight
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
scss/_type.scss
+
1
-
1
View file @
bed2a5ed
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
// Builds on `abbr`
// Builds on `abbr`
.initialism
{
.initialism
{
@include
font-size
(
90%
);
@include
font-size
(
$initialism-font-size
);
text-transform
:
uppercase
;
text-transform
:
uppercase
;
}
}
...
...
This diff is collapsed.
Click to expand it.
scss/_variables.scss
+
8
-
4
View file @
bed2a5ed
...
@@ -332,10 +332,14 @@ $display-line-height: $headings-line-height !default;
...
@@ -332,10 +332,14 @@ $display-line-height: $headings-line-height !default;
$lead-font-size
:
$font-size-base
*
1
.25
!
default
;
$lead-font-size
:
$font-size-base
*
1
.25
!
default
;
$lead-font-weight
:
300
!
default
;
$lead-font-weight
:
300
!
default
;
$small-font-size
:
80%
!
default
;
$small-font-size
:
.875em
!
default
;
$sub-sup-font-size
:
.75em
!
default
;
$text-muted
:
$gray-600
!
default
;
$text-muted
:
$gray-600
!
default
;
$initialism-font-size
:
$small-font-size
!
default
;
$blockquote-small-color
:
$gray-600
!
default
;
$blockquote-small-color
:
$gray-600
!
default
;
$blockquote-small-font-size
:
$small-font-size
!
default
;
$blockquote-small-font-size
:
$small-font-size
!
default
;
$blockquote-font-size
:
$font-size-base
*
1
.25
!
default
;
$blockquote-font-size
:
$font-size-base
*
1
.25
!
default
;
...
@@ -923,7 +927,7 @@ $toast-header-border-color: rgba(0, 0, 0, .05) !default;
...
@@ -923,7 +927,7 @@ $toast-header-border-color: rgba(0, 0, 0, .05) !default;
// Badges
// Badges
$badge-font-size
:
75
%
!
default
;
$badge-font-size
:
.
75
em
!
default
;
$badge-font-weight
:
$font-weight-bold
!
default
;
$badge-font-weight
:
$font-weight-bold
!
default
;
$badge-color
:
$white
!
default
;
$badge-color
:
$white
!
default
;
$badge-padding-y
:
.25em
!
default
;
$badge-padding-y
:
.25em
!
default
;
...
@@ -1040,7 +1044,7 @@ $thumbnail-box-shadow: $box-shadow-sm !default;
...
@@ -1040,7 +1044,7 @@ $thumbnail-box-shadow: $box-shadow-sm !default;
// Figures
// Figures
$figure-caption-font-size
:
90%
!
default
;
$figure-caption-font-size
:
$small-font-size
!
default
;
$figure-caption-color
:
$gray-600
!
default
;
$figure-caption-color
:
$gray-600
!
default
;
...
@@ -1108,7 +1112,7 @@ $close-text-shadow: 0 1px 0 $white !default;
...
@@ -1108,7 +1112,7 @@ $close-text-shadow: 0 1px 0 $white !default;
// Code
// Code
$code-font-size
:
87
.5%
!
default
;
$code-font-size
:
$small-font-size
!
default
;
$code-color
:
$pink
!
default
;
$code-color
:
$pink
!
default
;
$kbd-padding-y
:
.2rem
!
default
;
$kbd-padding-y
:
.2rem
!
default
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment