]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Adjust border-radius values and add some new utilities
authorMark Otto <markdotto@gmail.com>
Tue, 1 Mar 2022 01:22:14 +0000 (17:22 -0800)
committerMark Otto <otto@github.com>
Fri, 11 Mar 2022 17:10:37 +0000 (09:10 -0800)
- Updates global border-radius values for a more modern appearance
- New .fw-semibold
- New .rounded-4 and .rounded-5

.cspell.json
scss/_utilities.scss
scss/_variables.scss
site/content/docs/5.1/utilities/borders.md
site/content/docs/5.1/utilities/text.md

index bfbdaad79c49130d0d3c8a4d434bae78d3f822bb..f7293be9f24ba7b812b2303ca26c6431cfb32bdb 100644 (file)
@@ -81,6 +81,7 @@
     "roboto",
     "RTLCSS",
     "ruleset",
+    "semibold",
     "screenreaders",
     "scrollbars",
     "scrollspy",
index 771dd42251a329be7589a6699ea7c2abbc66374a..49fac65081cd62d2652f886cc2c0cedf8b20cace 100644 (file)
@@ -478,6 +478,7 @@ $utilities: map-merge(
         lighter: $font-weight-lighter,
         normal: $font-weight-normal,
         bold: $font-weight-bold,
+        semibold: $font-weight-semibold,
         bolder: $font-weight-bolder
       )
     ),
@@ -605,6 +606,8 @@ $utilities: map-merge(
         1: $border-radius-sm,
         2: $border-radius,
         3: $border-radius-lg,
+        4: $border-radius-xl,
+        5: $border-radius-2xl,
         circle: 50%,
         pill: $border-radius-pill
       )
index 26707e775ee71d07f3b7f3fab46335b1f06a95dd..f57ff41d333b1efe363147133de72e8a0caf86dd 100644 (file)
@@ -488,9 +488,11 @@ $border-color:                $gray-300 !default;
 // scss-docs-end border-variables
 
 // scss-docs-start border-radius-variables
-$border-radius:               .25rem !default;
-$border-radius-sm:            .2rem !default;
-$border-radius-lg:            .3rem !default;
+$border-radius:               .375rem !default;
+$border-radius-sm:            .25rem !default;
+$border-radius-lg:            .5rem !default;
+$border-radius-xl:            1rem !default;
+$border-radius-2xl:           2rem !default;
 $border-radius-pill:          50rem !default;
 // scss-docs-end border-radius-variables
 
@@ -550,6 +552,7 @@ $font-size-lg:                $font-size-base * 1.25 !default;
 $font-weight-lighter:         lighter !default;
 $font-weight-light:           300 !default;
 $font-weight-normal:          400 !default;
+$font-weight-semibold:        600 !default;
 $font-weight-bold:            700 !default;
 $font-weight-bolder:          bolder !default;
 
index e76c461a3ac269b046b0d96fc8d6960344589772..02bc3e02e3fe12053942c4f787f7189a12c12858 100644 (file)
@@ -114,6 +114,8 @@ Use the scaling classes for larger or smaller rounded corners. Sizes range from
 {{< placeholder width="75" height="75" class="rounded-1" title="Example small rounded image" >}}
 {{< placeholder width="75" height="75" class="rounded-2" title="Example default rounded image" >}}
 {{< placeholder width="75" height="75" class="rounded-3" title="Example large rounded image" >}}
+{{< placeholder width="75" height="75" class="rounded-4" title="Example larger rounded image" >}}
+{{< placeholder width="75" height="75" class="rounded-5" title="Example extra large rounded image" >}}
 {{< /example >}}
 
 ## Sass
index be8e0e1c0266344198687c6620a519c76fad47a9..a170660efd8ea2fb95579bbc01230982f71db7a0 100644 (file)
@@ -89,6 +89,7 @@ Quickly change the `font-weight` or `font-style` of text with these utilities. `
 {{< example >}}
 <p class="fw-bold">Bold text.</p>
 <p class="fw-bolder">Bolder weight text (relative to the parent element).</p>
+<p class="fw-semibold">Semibold weight text.</p>
 <p class="fw-normal">Normal weight text.</p>
 <p class="fw-light">Light weight text.</p>
 <p class="fw-lighter">Lighter weight text (relative to the parent element).</p>