0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Set font-sizes relative to font-size-base (#24060)

* font-sizes relative to font-size-base

* ditch $heading-font-size-base, simplify

* apply same to .lead var

* also update progress bar font-size var
This commit is contained in:
tillmon 2017-10-19 04:44:14 +02:00 committed by Mark Otto
parent 64ccd8974a
commit 0aa8cbee76

View File

@ -213,8 +213,8 @@ $font-family-base: $font-family-sans-serif !default;
// stylelint-enable value-keyword-case // stylelint-enable value-keyword-case
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px` $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
$font-size-lg: 1.25rem !default; $font-size-lg: ($font-size-base * 1.25) !default;
$font-size-sm: .875rem !default; $font-size-sm: ($font-size-base * .875) !default;
$font-weight-light: 300 !default; $font-weight-light: 300 !default;
$font-weight-normal: 400 !default; $font-weight-normal: 400 !default;
@ -223,12 +223,12 @@ $font-weight-bold: 700 !default;
$font-weight-base: $font-weight-normal !default; $font-weight-base: $font-weight-normal !default;
$line-height-base: 1.5 !default; $line-height-base: 1.5 !default;
$h1-font-size: 2.5rem !default; $h1-font-size: $font-size-base * 2.5 !default;
$h2-font-size: 2rem !default; $h2-font-size: $font-size-base * 2 !default;
$h3-font-size: 1.75rem !default; $h3-font-size: $font-size-base * 1.75 !default;
$h4-font-size: 1.5rem !default; $h4-font-size: $font-size-base * 1.5 !default;
$h5-font-size: 1.25rem !default; $h5-font-size: $font-size-base * 1.25 !default;
$h6-font-size: 1rem !default; $h6-font-size: $font-size-base !default;
$headings-margin-bottom: ($spacer / 2) !default; $headings-margin-bottom: ($spacer / 2) !default;
$headings-font-family: inherit !default; $headings-font-family: inherit !default;
@ -247,7 +247,7 @@ $display3-weight: 300 !default;
$display4-weight: 300 !default; $display4-weight: 300 !default;
$display-line-height: $headings-line-height !default; $display-line-height: $headings-line-height !default;
$lead-font-size: 1.25rem !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: 80% !default;
@ -708,7 +708,7 @@ $alert-border-width: $border-width !default;
// Progress bars // Progress bars
$progress-height: 1rem !default; $progress-height: 1rem !default;
$progress-font-size: .75rem !default; $progress-font-size: ($font-size-base * .75) !default;
$progress-bg: $gray-200 !default; $progress-bg: $gray-200 !default;
$progress-border-radius: $border-radius !default; $progress-border-radius: $border-radius !default;
$progress-box-shadow: inset 0 .1rem .1rem rgba($black,.1) !default; $progress-box-shadow: inset 0 .1rem .1rem rgba($black,.1) !default;