Skip to content

Commit

Permalink
Updated display sizes in bootstrap variables file
Browse files Browse the repository at this point in the history
  • Loading branch information
sreidthomas committed Jul 31, 2024
1 parent 7165fee commit 131334d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
20 changes: 19 additions & 1 deletion src/scss/_bootstrap-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@

$prefix: bs-;

// Define default display sizes
$display-font-sizes: (
1: 2.75rem,
2: 2.375rem,
3: 1.875rem,
4: 1.5rem,
5: 1.25rem,
6: 1rem
);

// Override aspect ratios array to add more ratios.
$aspect-ratios: (
'1x1': 100%,
Expand All @@ -27,6 +37,14 @@ $font-size-base: 1rem; // Assumes the browser default, typically `16px`
$font-size-sm: $font-size-base;
$font-size-lg: $font-size-base * 1.25;

// Override the default headings font sizes.
$h1-font-size: map-get($display-font-sizes, 1);
$h2-font-size: map-get($display-font-sizes, 2);
$h3-font-size: map-get($display-font-sizes, 3);
$h4-font-size: map-get($display-font-sizes, 4);
$h5-font-size: map-get($display-font-sizes, 5);
$h6-font-size: map-get($display-font-sizes, 6);

// Override the default headings font sizes.
$h1-font-size: $font-size-base * 2.75;
$h2-font-size: $font-size-base * 2.375;
Expand All @@ -52,4 +70,4 @@ $info: $cod-city-green !default;
$warning: $cod-accent-yellow !default;
$danger: #b3393b !default;
$light: #fff !default;
$dark: #000 !default;
$dark: #000 !default;
30 changes: 10 additions & 20 deletions src/shared/themed-bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/shared/themed-bootstrap.css.map

Large diffs are not rendered by default.

0 comments on commit 131334d

Please sign in to comment.