]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Co-locate heading and some type styles in Reboot to avoid some extends and extra...
authorMark Otto <markd.otto@gmail.com>
Thu, 28 Aug 2025 03:24:43 +0000 (20:24 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 10 Oct 2025 17:03:22 +0000 (10:03 -0700)
scss/_reboot.scss
scss/_type.scss

index 3c4340a9480f8482dfee0b9bd91d9932f90e6e31..cbc3698642972875d6e1f17053c88c00e73b9f4c 100644 (file)
@@ -90,32 +90,38 @@ hr {
   color: var(--#{$prefix}heading-color);
 }
 
-h1 {
+h1,
+.h1 {
   @extend %heading;
   @include font-size($h1-font-size);
 }
 
-h2 {
+h2,
+.h2 {
   @extend %heading;
   @include font-size($h2-font-size);
 }
 
-h3 {
+h3,
+.h3 {
   @extend %heading;
   @include font-size($h3-font-size);
 }
 
-h4 {
+h4,
+.h4 {
   @extend %heading;
   @include font-size($h4-font-size);
 }
 
-h5 {
+h5,
+.h5 {
   @extend %heading;
   @include font-size($h5-font-size);
 }
 
-h6 {
+h6,
+.h6 {
   @extend %heading;
   @include font-size($h6-font-size);
 }
@@ -208,14 +214,16 @@ strong {
 //
 // Add the correct font size in all browsers
 
-small {
+small,
+.small {
   @include font-size($small-font-size);
 }
 
 
 // Mark
 
-mark {
+mark,
+.mark {
   padding: $mark-padding;
   color: var(--#{$prefix}highlight-color);
   background-color: var(--#{$prefix}highlight-bg);
index 6961390f1e628edda31406f0e52bd1709f1146d2..5930e909adf4db0decd487683923996cf19bdbc2 100644 (file)
@@ -1,30 +1,6 @@
 //
 // Headings
 //
-.h1 {
-  @extend h1;
-}
-
-.h2 {
-  @extend h2;
-}
-
-.h3 {
-  @extend h3;
-}
-
-.h4 {
-  @extend h4;
-}
-
-.h5 {
-  @extend h5;
-}
-
-.h6 {
-  @extend h6;
-}
-
 
 .lead {
   @include font-size($lead-font-size);
   }
 }
 
-//
-// Emphasis
-//
-.small {
-  @extend small;
-}
-
-.mark {
-  @extend mark;
-}
-
 //
 // Lists
 //