From f3b4308cb59bf4b21ff186f8479c82239446d139 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 7 Jun 2021 12:56:27 +0200 Subject: upgrade to bootstrap 5.0.1 and first batch of fixes --- vendor/twbs/bootstrap/scss/_type.scss | 97 ++++++++++++++--------------------- 1 file changed, 38 insertions(+), 59 deletions(-) (limited to 'vendor/twbs/bootstrap/scss/_type.scss') diff --git a/vendor/twbs/bootstrap/scss/_type.scss b/vendor/twbs/bootstrap/scss/_type.scss index 3112a734b..b2d524ca1 100644 --- a/vendor/twbs/bootstrap/scss/_type.scss +++ b/vendor/twbs/bootstrap/scss/_type.scss @@ -1,82 +1,56 @@ -// stylelint-disable selector-list-comma-newline-after - // // Headings // - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - margin-bottom: $headings-margin-bottom; - font-family: $headings-font-family; - font-weight: $headings-font-weight; - line-height: $headings-line-height; - color: $headings-color; +.h1 { + @extend h1; } -h1, .h1 { @include font-size($h1-font-size); } -h2, .h2 { @include font-size($h2-font-size); } -h3, .h3 { @include font-size($h3-font-size); } -h4, .h4 { @include font-size($h4-font-size); } -h5, .h5 { @include font-size($h5-font-size); } -h6, .h6 { @include font-size($h6-font-size); } - -.lead { - @include font-size($lead-font-size); - font-weight: $lead-font-weight; +.h2 { + @extend h2; } -// Type display classes -.display-1 { - @include font-size($display1-size); - font-weight: $display1-weight; - line-height: $display-line-height; +.h3 { + @extend h3; } -.display-2 { - @include font-size($display2-size); - font-weight: $display2-weight; - line-height: $display-line-height; + +.h4 { + @extend h4; } -.display-3 { - @include font-size($display3-size); - font-weight: $display3-weight; - line-height: $display-line-height; + +.h5 { + @extend h5; } -.display-4 { - @include font-size($display4-size); - font-weight: $display4-weight; - line-height: $display-line-height; + +.h6 { + @extend h6; } -// -// Horizontal rules -// - -hr { - margin-top: $hr-margin-y; - margin-bottom: $hr-margin-y; - border: 0; - border-top: $hr-border-width solid $hr-border-color; +.lead { + @include font-size($lead-font-size); + font-weight: $lead-font-weight; } +// Type display classes +@each $display, $font-size in $display-font-sizes { + .display-#{$display} { + @include font-size($font-size); + font-weight: $display-font-weight; + line-height: $display-line-height; + } +} // // Emphasis // - -small, .small { - @include font-size($small-font-size); - font-weight: $font-weight-normal; + @extend small; } -mark, .mark { - padding: $mark-padding; - background-color: $mark-bg; + @extend mark; } - // // Lists // @@ -104,20 +78,25 @@ mark, // Builds on `abbr` .initialism { - @include font-size(90%); + @include font-size($initialism-font-size); text-transform: uppercase; } // Blockquotes .blockquote { - margin-bottom: $spacer; + margin-bottom: $blockquote-margin-y; @include font-size($blockquote-font-size); + + > :last-child { + margin-bottom: 0; + } } .blockquote-footer { - display: block; - @include font-size($blockquote-small-font-size); - color: $blockquote-small-color; + margin-top: -$blockquote-margin-y; + margin-bottom: $blockquote-margin-y; + @include font-size($blockquote-footer-font-size); + color: $blockquote-footer-color; &::before { content: "\2014\00A0"; // em dash, nbsp -- cgit v1.2.3