]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
More docs Sass modules
authorMark Otto <markdotto@gmail.com>
Wed, 5 Mar 2025 00:38:32 +0000 (16:38 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 31 May 2025 03:31:15 +0000 (20:31 -0700)
19 files changed:
scss/_colors.scss
scss/_root.scss
site/data/sidebar.yml
site/src/content/docs/layout/grid.mdx
site/src/content/docs/layout/old-grid.mdx [deleted file]
site/src/scss/_ads.scss
site/src/scss/_anchor.scss
site/src/scss/_clipboard-js.scss
site/src/scss/_colors.scss
site/src/scss/_content.scss
site/src/scss/_masthead.scss
site/src/scss/_navbar.scss
site/src/scss/_placeholder-img.scss
site/src/scss/_search.scss
site/src/scss/_sidebar.scss
site/src/scss/_toc.scss
site/src/scss/_variables.scss
site/src/scss/docs.scss
site/src/scss/docs_search.scss

index aca360bbedd0dce0901acfe92967435adb25f45b..169e84efdf19719b94a2b3df40db0572991ff1fe 100644 (file)
@@ -278,5 +278,7 @@ $all-colors: (
   "yellows": $yellows,
   "greens": $greens,
   "teals": $teals,
-  "cyans": $cyans
+  "cyans": $cyans,
+  "black": $black,
+  "white": $white
 ) !default;
index 8313d31c645a187292e5a8d43885574980b2d4af..82f2e186399302555021ce09d5d9595cf64c126c 100644 (file)
   :root,
   [data-bs-theme="light"] {
     @each $color-group-name, $color-group in $all-colors {
-      @each $color-name, $color-value in $color-group {
-        --#{$prefix}#{$color-name}: #{$color-value};
+      @if type-of($color-group) == "map" {
+        @each $color-name, $color-value in $color-group {
+          --#{$prefix}#{$color-name}: #{$color-value};
+        }
+      } @else {
+        --#{$prefix}#{$color-group-name}: #{$color-group};
       }
     }
 
index 59c4365441683b32b64beb9a727706c50ad2396d..f424749740326f421044df893017d7920c47b4cf 100644 (file)
@@ -53,6 +53,7 @@
     - title: Tables
     - title: Figures
     - title: Content body
+
 - title: Forms
   icon: ui-radios
   icon_color: blue
index 0427a6f6d0ff052328534d869c78e56aa2ddf1cd..616a01c5e627bbe73f92936fdda3f0f57b99d0e1 100644 (file)
@@ -2,7 +2,6 @@
 title: CSS Grid
 description: Learn how to enable, use, and customize our alternate layout system built on CSS Grid with examples and code snippets.
 toc: true
-added: "5.1"
 ---
 
 Bootstrap's default grid system represents the culmination of over a decade of CSS layout techniques, tried and tested by millions of people. But, it was also created without many of the modern CSS features and techniques we're seeing in browsers like the new CSS Grid.
diff --git a/site/src/content/docs/layout/old-grid.mdx b/site/src/content/docs/layout/old-grid.mdx
deleted file mode 100644 (file)
index 708a7bd..0000000
+++ /dev/null
@@ -1,498 +0,0 @@
----
-title: Grid system
-description: Use our powerful mobile-first flexbox grid to build layouts of all shapes and sizes thanks to a twelve column system, six default responsive tiers, Sass variables and mixins, and dozens of predefined classes.
-toc: true
----
-
-## Example
-
-Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with [flexbox](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox) and is fully responsive. Below is an example and an in-depth explanation for how the grid system comes together.
-
-<Callout>
-**New to or unfamiliar with flexbox?** [Read this CSS Tricks flexbox guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/#flexbox-background) for background, terminology, guidelines, and code snippets.
-</Callout>
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row">
-    <div class="col">
-      Column
-    </div>
-    <div class="col">
-      Column
-    </div>
-    <div class="col">
-      Column
-    </div>
-  </div>
-</div>`} />
-
-The above example creates three equal-width columns across all devices and viewports using our predefined grid classes. Those columns are centered in the page with the parent `.container`.
-
-## How it works
-
-Breaking it down, here's how the grid system comes together:
-
-- **Our grid supports [six responsive breakpoints]([[docsref:/layout/breakpoints]]).**  Breakpoints are based on `min-width` media queries, meaning they affect that breakpoint and all those above it (e.g., `.col-sm-4` applies to `sm`, `md`, `lg`, `xl`, and `2xl`). This means you can control container and column sizing and behavior by each breakpoint.
-
-- **Containers center and horizontally pad your content.** Use `.container` for a responsive pixel width, `.container-fluid` for `width: 100%` across all viewports and devices, or a responsive container (e.g., `.container-md`) for a combination of fluid and pixel widths.
-
-- **Rows are wrappers for columns.** Each column has horizontal `padding` (called a gutter) for controlling the space between them. This `padding` is then counteracted on the rows with negative margins to ensure the content in your columns is visually aligned down the left side. Rows also support modifier classes to [uniformly apply column sizing](#row-columns) and [gutter classes]([[docsref:/layout/gutters]]) to change the spacing of your content.
-
-- **Columns are incredibly flexible.** There are 12 template columns available per row, allowing you to create different combinations of elements that span any number of columns. Column classes indicate the number of template columns to span (e.g., `col-4` spans four). `width`s are set in percentages so you always have the same relative sizing.
-
-- **Gutters are also responsive and customizable.** [Gutter classes are available]([[docsref:/layout/gutters]]) across all breakpoints, with all the same sizes as our [margin and padding spacing]([[docsref:/utilities/spacing]]). Change horizontal gutters with `.gx-*` classes, vertical gutters with `.gy-*`, or all gutters with `.g-*` classes. `.g-0` is also available to remove gutters.
-
-- **Sass variables, maps, and mixins power the grid.** If you don't want to use the predefined grid classes in Bootstrap, you can use our [grid's source Sass](#css) to create your own with more semantic markup. We also include some CSS custom properties to consume these Sass variables for even greater flexibility for you.
-
-Be aware of the limitations and [bugs around flexbox](https://github.com/philipwalton/flexbugs), like the [inability to use some HTML elements as flex containers](https://github.com/philipwalton/flexbugs#flexbug-9).
-
-## Grid options
-
-Bootstrap's grid system can adapt across all six default breakpoints, and any breakpoints you customize. The six default grid tiers are as follows:
-
-- Extra small (xs)
-- Small (sm)
-- Medium (md)
-- Large (lg)
-- Extra large (xl)
-- Extra extra large (2xl)
-
-As noted above, each of these breakpoints have their own container, unique class prefix, and modifiers. Here's how the grid changes across these breakpoints:
-
-<div class="table-responsive">
-  <table class="table mb-4">
-    <thead>
-      <tr>
-        <th scope="col"></th>
-        <th scope="col">
-          xs<br/>
-          <span class="fw-normal">&lt;576px</span>
-        </th>
-        <th scope="col">
-          sm<br/>
-          <span class="fw-normal">&ge;576px</span>
-        </th>
-        <th scope="col">
-          md<br/>
-          <span class="fw-normal">&ge;768px</span>
-        </th>
-        <th scope="col">
-          lg<br/>
-          <span class="fw-normal">&ge;992px</span>
-        </th>
-        <th scope="col">
-          xl<br/>
-          <span class="fw-normal">&ge;1200px</span>
-        </th>
-        <th scope="col">
-          2xl<br/>
-          <span class="fw-normal">&ge;1400px</span>
-        </th>
-      </tr>
-    </thead>
-    <tbody>
-      <tr>
-        <th class="text-nowrap" scope="row">Container <code class="fw-normal">max-width</code></th>
-        <td>None (auto)</td>
-        <td>540px</td>
-        <td>720px</td>
-        <td>960px</td>
-        <td>1140px</td>
-        <td>1320px</td>
-      </tr>
-      <tr>
-        <th class="text-nowrap" scope="row">Class prefix</th>
-        <td><code>.col-</code></td>
-        <td><code>.col-sm-</code></td>
-        <td><code>.col-md-</code></td>
-        <td><code>.col-lg-</code></td>
-        <td><code>.col-xl-</code></td>
-        <td><code>.col-2xl-</code></td>
-      </tr>
-      <tr>
-        <th class="text-nowrap" scope="row"># of columns</th>
-        <td colspan="6">12</td>
-      </tr>
-      <tr>
-        <th class="text-nowrap" scope="row">Gutter width</th>
-        <td colspan="6">1.5rem (.75rem on left and right)</td>
-      </tr>
-      <tr>
-        <th class="text-nowrap" scope="row">Custom gutters</th>
-        <td colspan="6"><a href="[[docsref:/layout/gutters]]">Yes</a></td>
-      </tr>
-      <tr>
-        <th class="text-nowrap" scope="row">Nestable</th>
-        <td colspan="6"><a href="#nesting">Yes</a></td>
-      </tr>
-      <tr>
-        <th class="text-nowrap" scope="row">Column ordering</th>
-        <td colspan="6"><a href="[[docsref:/layout/columns#reordering]]">Yes</a></td>
-      </tr>
-    </tbody>
-  </table>
-</div>
-
-## Auto-layout columns
-
-Utilize breakpoint-specific column classes for easy column sizing without an explicit numbered class like `.col-sm-6`.
-
-### Equal-width
-
-For example, here are two grid layouts that apply to every device and viewport, from `xs` to `2xl`. Add any number of unit-less classes for each breakpoint you need and every column will be the same width.
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row">
-    <div class="col">
-      1 of 2
-    </div>
-    <div class="col">
-      2 of 2
-    </div>
-  </div>
-  <div class="row">
-    <div class="col">
-      1 of 3
-    </div>
-    <div class="col">
-      2 of 3
-    </div>
-    <div class="col">
-      3 of 3
-    </div>
-  </div>
-</div>`} />
-
-### Setting one column width
-
-Auto-layout for flexbox grid columns also means you can set the width of one column and have the sibling columns automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column.
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row">
-    <div class="col">
-      1 of 3
-    </div>
-    <div class="col-6">
-      2 of 3 (wider)
-    </div>
-    <div class="col">
-      3 of 3
-    </div>
-  </div>
-  <div class="row">
-    <div class="col">
-      1 of 3
-    </div>
-    <div class="col-5">
-      2 of 3 (wider)
-    </div>
-    <div class="col">
-      3 of 3
-    </div>
-  </div>
-</div>`} />
-
-### Variable width content
-
-Use `col-{breakpoint}-auto` classes to size columns based on the natural width of their content.
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row justify-content-md-center">
-    <div class="col col-lg-2">
-      1 of 3
-    </div>
-    <div class="col-md-auto">
-      Variable width content
-    </div>
-    <div class="col col-lg-2">
-      3 of 3
-    </div>
-  </div>
-  <div class="row">
-    <div class="col">
-      1 of 3
-    </div>
-    <div class="col-md-auto">
-      Variable width content
-    </div>
-    <div class="col col-lg-2">
-      3 of 3
-    </div>
-  </div>
-</div>`} />
-
-## Responsive classes
-
-Bootstrap's grid includes six tiers of predefined classes for building complex responsive layouts. Customize the size of your columns on extra small, small, medium, large, or extra large devices however you see fit.
-
-### All breakpoints
-
-For grids that are the same from the smallest of devices to the largest, use the `.col` and `.col-*` classes. Specify a numbered class when you need a particularly sized column; otherwise, feel free to stick to `.col`.
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row">
-    <div class="col">col</div>
-    <div class="col">col</div>
-    <div class="col">col</div>
-    <div class="col">col</div>
-  </div>
-  <div class="row">
-    <div class="col-8">col-8</div>
-    <div class="col-4">col-4</div>
-  </div>
-</div>`} />
-
-### Stacked to horizontal
-
-Using a single set of `.col-sm-*` classes, you can create a basic grid system that starts out stacked and becomes horizontal at the small breakpoint (`sm`).
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row">
-    <div class="col-sm-8">col-sm-8</div>
-    <div class="col-sm-4">col-sm-4</div>
-  </div>
-  <div class="row">
-    <div class="col-sm">col-sm</div>
-    <div class="col-sm">col-sm</div>
-    <div class="col-sm">col-sm</div>
-  </div>
-</div>`} />
-
-### Mix and match
-
-Don't want your columns to simply stack in some grid tiers? Use a combination of different classes for each tier as needed. See the example below for a better idea of how it all works.
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <!-- Stack the columns on mobile by making one full-width and the other half-width -->
-  <div class="row">
-    <div class="col-md-8">.col-md-8</div>
-    <div class="col-6 col-md-4">.col-6 .col-md-4</div>
-  </div>
-
-  <!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
-  <div class="row">
-    <div class="col-6 col-md-4">.col-6 .col-md-4</div>
-    <div class="col-6 col-md-4">.col-6 .col-md-4</div>
-    <div class="col-6 col-md-4">.col-6 .col-md-4</div>
-  </div>
-
-  <!-- Columns are always 50% wide, on mobile and desktop -->
-  <div class="row">
-    <div class="col-6">.col-6</div>
-    <div class="col-6">.col-6</div>
-  </div>
-</div>`} />
-
-### Row columns
-
-Use the responsive `.row-cols-*` classes to quickly set the number of columns that best render your content and layout. Whereas normal `.col-*` classes apply to the individual columns (e.g., `.col-md-4`), the row columns classes are set on the parent `.row` as a shortcut. With `.row-cols-auto` you can give the columns their natural width.
-
-Use these row columns classes to quickly create basic grid layouts or to control your card layouts.
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row row-cols-2">
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-  </div>
-</div>`} />
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row row-cols-3">
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-  </div>
-</div>`} />
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row row-cols-auto">
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-  </div>
-</div>`} />
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row row-cols-4">
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-  </div>
-</div>`} />
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row row-cols-4">
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col-6">Column</div>
-    <div class="col">Column</div>
-  </div>
-</div>`} />
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row row-cols-1 row-cols-sm-2 row-cols-md-4">
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-    <div class="col">Column</div>
-  </div>
-</div>`} />
-
-You can also use the accompanying Sass mixin, `row-cols()`:
-
-```scss
-.element {
-  // Three columns to start
-  @include row-cols(3);
-
-  // Five columns from medium breakpoint up
-  @include media-breakpoint-up(md) {
-    @include row-cols(5);
-  }
-}
-```
-
-## Nesting
-
-To nest your content with the default grid, add a new `.row` and set of `.col-sm-*` columns within an existing `.col-sm-*` column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).
-
-<Example class="bd-example-row" code={`<div class="container text-center">
-  <div class="row">
-    <div class="col-sm-3">
-      Level 1: .col-sm-3
-    </div>
-    <div class="col-sm-9">
-      <div class="row">
-        <div class="col-8 col-sm-6">
-          Level 2: .col-8 .col-sm-6
-        </div>
-        <div class="col-4 col-sm-6">
-          Level 2: .col-4 .col-sm-6
-        </div>
-      </div>
-    </div>
-  </div>
-</div>`} />
-
-## CSS
-
-When using Bootstrap's source Sass files, you have the option of using Sass variables and mixins to create custom, semantic, and responsive page layouts. Our predefined grid classes use these same variables and mixins to provide a whole suite of ready-to-use classes for fast responsive layouts.
-
-### Sass variables
-
-Variables and maps determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.
-
-```scss
-$grid-columns:      12;
-$grid-gutter-width: 1.5rem;
-$grid-row-columns:  6;
-```
-
-<ScssDocs name="grid-breakpoints" file="scss/_variables.scss" />
-
-<ScssDocs name="container-max-widths" file="scss/_variables.scss" />
-
-### Sass mixins
-
-Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.
-
-```scss
-// Creates a wrapper for a series of columns
-@include make-row();
-
-// Make the element grid-ready (applying everything but the width)
-@include make-col-ready();
-
-// Without optional size values, the mixin will create equal columns (similar to using .col)
-@include make-col();
-@include make-col($size, $columns: $grid-columns);
-
-// Offset with margins
-@include make-col-offset($size, $columns: $grid-columns);
-```
-
-### Example usage
-
-You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.
-
-```scss
-.example-container {
-  @include make-container();
-  // Make sure to define this width after the mixin to override
-  // `width: 100%` generated by `make-container()`
-  width: 800px;
-}
-
-.example-row {
-  @include make-row();
-}
-
-.example-content-main {
-  @include make-col-ready();
-
-  @include media-breakpoint-up(sm) {
-    @include make-col(6);
-  }
-  @include media-breakpoint-up(lg) {
-    @include make-col(8);
-  }
-}
-
-.example-content-secondary {
-  @include make-col-ready();
-
-  @include media-breakpoint-up(sm) {
-    @include make-col(6);
-  }
-  @include media-breakpoint-up(lg) {
-    @include make-col(4);
-  }
-}
-```
-
-<Example code={`<div class="example-container">
-  <div class="example-row">
-    <div class="example-content-main">Main content</div>
-    <div class="example-content-secondary">Secondary content</div>
-  </div>
-</div>`} />
-
-## Customizing the grid
-
-Using our built-in grid Sass variables and maps, it's possible to completely customize the predefined grid classes. Change the number of tiers, the media query dimensions, and the container widths—then recompile.
-
-### Columns and gutters
-
-The number of grid columns can be modified via Sass variables. `$grid-columns` is used to generate the widths (in percent) of each individual column while `$grid-gutter-width` sets the width for the column gutters. `$grid-row-columns` is used to set the maximum number of columns of `.row-cols-*`, any number over this limit is ignored.
-
-```scss
-$grid-columns: 12 !default;
-$grid-gutter-width: 1.5rem !default;
-$grid-row-columns: 6 !default;
-```
-
-### Grid tiers
-
-Moving beyond the columns themselves, you may also customize the number of grid tiers. If you wanted just four grid tiers, you'd update the `$breakpoints` and `$container-max-widths` to something like this:
-
-```scss
-$breakpoints: (
-  xs: 0,
-  sm: 480px,
-  md: 768px,
-  lg: 1024px
-);
-
-$container-max-widths: (
-  sm: 420px,
-  md: 720px,
-  lg: 960px
-);
-```
-
-When making any changes to the Sass variables or maps, you'll need to save your changes and recompile. Doing so will output a brand-new set of predefined grid classes for column widths, offsets, and ordering. Responsive visibility utilities will also be updated to use the custom breakpoints. Make sure to set grid values in `px` (not `rem`, `em`, or `%`).
index 8d006a15681f66f5c2260de1071d5382f06f11e7..87a7a889956b11211ffa3cdc7059d8a0ca153abf 100644 (file)
@@ -1,3 +1,7 @@
+@use "../../../scss/layout/breakpoints" as *;
+@use "../../../scss/vendor/rfs" as *;
+@use "../../../scss/mixins/border-radius" as *;
+
 // stylelint-disable declaration-no-important, selector-max-id
 
 //
index 5bb39150b14ea0632155fe1451f2d2bf180cf1ba..e44fc91de10201259baa9f72118052c896ac99a5 100644 (file)
@@ -1,3 +1,6 @@
+@use "../../../scss/variables" as *;
+@use "../../../scss/mixins/transition" as *;
+
 .anchor-link {
   padding: 0 .175rem;
   font-weight: 400;
index de709d09ba7f4f3e4a29f46f3e44b0669b64fc29..a4c71c8ccfaefbf89f645114a5373526f30c3352 100644 (file)
@@ -1,3 +1,6 @@
+@use "../../../scss/layout/breakpoints" as *;
+@use "../../../scss/mixins/border-radius" as *;
+
 // clipboard.js
 //
 // JS-based `Copy` buttons for code snippets.
index 0fd7a57d79e66c76221796a2cfb2ed2855be5c90..cf1177f31fb46c02dd9adf757efaa43acfc35e65 100644 (file)
 }
 
 // Generate all color variant classes using nested loops
-@each $color-name, $color-variants in $all-colors {
-  @each $shade, $value in $color-variants {
-    .bd-#{$shade} {
-      color: color-contrast($value);
-      background-color: $value;
+@each $color-name, $color-value in $all-colors {
+  @if type-of($color-value) == "map" {
+    @each $shade, $value in $color-value {
+      .bd-#{$shade} {
+        color: color-contrast($value);
+        background-color: $value;
+      }
+    }
+  } @else {
+    .bd-#{$color-name} {
+      color: color-contrast($color-value);
+      background-color: $color-value;
     }
   }
 }
index 59964ceb591f88e1ebaeb3d6022cc4c361328f5a..671c331090a94f5d8768ecff2823c0a4f4fbae8b 100644 (file)
@@ -1,3 +1,7 @@
+@use "../../../scss/colors" as *;
+@use "../../../scss/vendor/rfs" as *;
+@use "../../../scss/layout/breakpoints" as *;
+
 //
 // Bootstrap docs content theming
 //
index b05680bbd2cfbb3d2631bac5ef3974e7c91b02df..15c8d5a03f9e23f4cbc5bfc6227ba4196e72cc47 100644 (file)
@@ -8,14 +8,14 @@
 @use "../../../scss/mixins/color-mode" as *;
 
 .bd-masthead {
-  --bd-pink-rgb: #{to-rgb($pink)};
+  --bd-pink: $pink;
   padding: 3rem 0;
   // stylelint-disable
-  background-image: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), .01), rgba(var(--bs-body-bg-rgb), 1) 85%),
-                    radial-gradient(ellipse at top left, rgba(var(--bs-primary-rgb), .5), transparent 50%),
-                    radial-gradient(ellipse at top right, rgba(var(--bd-accent-rgb), .5), transparent 50%),
-                    radial-gradient(ellipse at center right, rgba(var(--bd-violet-rgb), .5), transparent 50%),
-                    radial-gradient(ellipse at center left, rgba(var(--bd-pink-rgb), .5), transparent 50%);
+  background-image: linear-gradient(180deg, color-mix(in srgb, var(--bs-body-bg) 1%, transparent), color-mix(in srgb, var(--bs-body-bg) 85%, transparent)),
+                    radial-gradient(ellipse at top left, color-mix(in srgb, var(--bs-primary) 50%, transparent), transparent 50%),
+                    radial-gradient(ellipse at top right, color-mix(in srgb, var(--bd-accent) 50%, transparent), transparent 50%),
+                    radial-gradient(ellipse at center right, color-mix(in srgb, var(--bd-violet) 50%, transparent), transparent 50%),
+                    radial-gradient(ellipse at center left, color-mix(in srgb, var(--bd-pink) 50%, transparent), transparent 50%);
   // stylelint-enable
 
   h1 {
index f2d13959fe8be3d65ce3e1d782064272260c797b..d82f7325d11a6fb4ad7aa4ff67e4d6397518fc47 100644 (file)
@@ -4,6 +4,7 @@
 @use "../../../scss/mixins" as *;
 @use "../../../scss/variables" as *;
 @use "../../../scss/layout/breakpoints" as *;
+@use "../../../scss/vendor/rfs" as *;
 
 .bd-navbar {
   padding: .75rem 0;
index 6f5bbe41892669bcb39b5ce290cea2df0da0b5b3..15d4fce4869c3144e21f9a00c1f983e91d6dc040 100644 (file)
@@ -1,3 +1,4 @@
+@use "../../../scss/vendor/rfs" as *;
 //
 // Placeholder svg used in the docs.
 //
index 592d65f98fdaa33352ef5825f568d89538c61d7d..0e4769ed9ed5d445a6b71699941e4165a916669e 100644 (file)
@@ -1,3 +1,9 @@
+@use "variables" as *;
+@use "../../../scss/colors" as *;
+@use "../../../scss/layout/breakpoints" as *;
+@use "../../../scss/mixins/color-mode" as *;
+@use "../../../scss/mixins/border-radius" as *;
+
 // stylelint-disable selector-class-pattern
 
 :root {
index fe445565343e98ca56e512a9f781f8316ae61bcc..b92e7063702687771d7bdc950bec35cb12d7f078 100644 (file)
@@ -1,3 +1,7 @@
+@use "../../../scss/variables" as *;
+@use "../../../scss/layout/breakpoints" as *;
+@use "../../../scss/mixins/box-shadow" as *;
+
 .bd-sidebar {
   @include media-breakpoint-up(lg) {
     position: sticky;
index f9bb8a3e4015db808eb2d41ba4b3122f550beee4..474e94d5c7e06e31fdab50956cee5ea0f173bd02 100644 (file)
@@ -1,3 +1,6 @@
+@use "../../../scss/layout/breakpoints" as *;
+@use "../../../scss/vendor/rfs" as *;
+@use "../../../scss/mixins/border-radius" as *;
 // stylelint-disable selector-max-type, selector-no-qualifying-type
 
 .bd-toc {
index 6b6002f62d95df438d746accfffd2afeac266f75..e6cf3742b0aa47e3048ff4b4798c033721599e6c 100644 (file)
@@ -1,6 +1,7 @@
 @use "../../../scss/config" as *;
 @use "../../../scss/colors" as *;
 @use "../../../scss/functions" as *;
+@use "../../../scss/mixins/color-mode" as *;
 
 // Local docs variables
 $bd-purple:        #4c0bce;
index cf1b098eeefe41ff6281649735491e340d571585..9758ad40a98b29752d5810b2cca79880d3c80d92 100644 (file)
 //
 // Happy Bootstrapping!
 
-// Load Bootstrap variables and mixins
-// @use "../../../scss/config";
-// @use "../../../scss/colors";
-// @use "../../../scss/functions";
-// @use "../../../scss/mixins";
-// @use "../../../scss/variables";
-@use "../../../scss/layout/breakpoints" as *;
-
-// // fusv-disable
-// $enable-grid-classes: false;
-// $enable-cssgrid: true;
-// // fusv-enable
-// @use "../../../scss/layout/";
-
 // Load docs components
 @use "variables";
 @use "navbar";
index 630d2d24d51f6cefa68c84effeb03df4d7223f72..fe93fd8ec46eb8f216316c17f61894850ddc95df 100644 (file)
@@ -5,13 +5,13 @@
  * For details, see https://creativecommons.org/licenses/by/3.0/.
  */
 
-@import "../../../scss/config";
-@import "../../../scss/colors";
-@import "../../../scss/functions";
-@import "../../../scss/mixins";
-@import "../../../scss/variables";
-@import "../../../scss/layout/breakpoints";
-@import "variables";
+// @import "../../../scss/config";
+// @import "../../../scss/colors";
+// @import "../../../scss/functions";
+// @import "../../../scss/mixins";
+// @import "../../../scss/variables";
+// @import "../../../scss/layout/breakpoints";
+// @use "variables" as *;
 
-@import "@docsearch/css/dist/style";
-@import "search";
+@use "@docsearch/css/dist/style" as *;
+@use "search" as *;