]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move blockquote footer font size to variables
authoracj <gitlab@acjs.net>
Tue, 14 Aug 2018 08:35:11 +0000 (10:35 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 26 Aug 2018 11:48:51 +0000 (14:48 +0300)
Blockquote footer font size is currently hardcoded to 80%, implying (in a comment) that this would result in the default font size. However, since the blockquote font size itself is variable, this is not necessarily true, and 80% of anything actually results in an arbitrary font size.

80% as a default is still fine.

scss/_type.scss
scss/_variables.scss

index 57d610f0c1c64ecd9a4db74656b2d8d1e58ade6e..ea3d9ab9091c580b89187b9bba0d63e29e37e186 100644 (file)
@@ -116,7 +116,7 @@ mark,
 
 .blockquote-footer {
   display: block;
-  font-size: 80%; // back to default font-size
+  font-size: $blockquote-small-font-size;
   color: $blockquote-small-color;
 
   &::before {
index be13b5647642b4676c3126772abb56669f1293f5..b18325cdbbbc92f5da032aa4110546bb90b8c340 100644 (file)
@@ -298,6 +298,7 @@ $small-font-size:             80% !default;
 $text-muted:                  $gray-600 !default;
 
 $blockquote-small-color:      $gray-600 !default;
+$blockquote-small-font-size:  $small-font-size !default;
 $blockquote-font-size:        ($font-size-base * 1.25) !default;
 
 $hr-border-color:             rgba($black, .1) !default;