Compare commits

...

10 Commits

Author SHA1 Message Date
tasio
b88d0bd1e6
Merge 03530ca1b0a4d3047a21a85b16dd29d923876cd7 into 4189b3075c003b2d5dc9335195be7b750dfc2526 2025-10-01 08:45:02 +02:00
dependabot[bot]
4189b3075c
Build(deps): Bump github/codeql-action in the github-actions group (#41782)
Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 3.30.3 to 3.30.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](192325c861...3599b3baa1)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.30.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 18:01:50 +02:00
tasio
03530ca1b0
Merge branch 'main' into add-container-queries 2025-09-22 10:59:30 +02:00
tasio
ecdbcdc70a
Merge branch 'main' into add-container-queries 2025-09-12 16:09:10 +02:00
tasio
bf3f44822e
Merge branch 'main' into add-container-queries 2025-09-01 09:26:53 +02:00
tasio
ce2bd5f7d4
Merge branch 'main' into add-container-queries 2025-08-07 16:45:08 +02:00
tasio
cdf8d14847
Merge branch 'main' into add-container-queries 2025-08-05 08:41:19 +02:00
tasio
00124225fd
Merge branch 'main' into add-container-queries 2025-07-30 10:21:10 +02:00
tasio
a7cc6b4d6a
Merge branch 'main' into add-container-queries 2025-07-29 11:13:44 +02:00
Tasio
65e997946e Add container queries to bootstrap
This change is designed to be backward
compatible with the existing media query
implementation, while also enabling support
for container queries.
2025-07-23 15:48:52 +02:00
3 changed files with 57 additions and 21 deletions

View File

@ -29,16 +29,16 @@ jobs:
persist-credentials: false persist-credentials: false
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
with: with:
config-file: ./.github/codeql/codeql-config.yml config-file: ./.github/codeql/codeql-config.yml
languages: "javascript" languages: "javascript"
queries: +security-and-quality queries: +security-and-quality
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 uses: github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
with: with:
category: "/language:javascript" category: "/language:javascript"

View File

@ -73,6 +73,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional). # Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard # Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning" - name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
with: with:
sarif_file: results.sarif sarif_file: results.sarif

View File

@ -1,4 +1,4 @@
// Breakpoint viewport sizes and media queries. // Breakpoint viewport sizes and container queries.
// //
// Breakpoints are defined as a map of (name: minimum width), order from small to large: // Breakpoints are defined as a map of (name: minimum width), order from small to large:
// //
@ -6,6 +6,17 @@
// //
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default. // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
// Set the document root element as the default container to maximize the available viewport width.
// This should allow in most cases to keep backwards compatibility with the previous Media Query implementation.
html {
container-type: inline-size;
}
// Applying this class to an element makes Bootstrap's responsive utilities reference the container's size rather than the viewport's.
.breakpoint-container {
container-type: inline-size;
}
// Name of the next breakpoint, or null for the last breakpoint. // Name of the next breakpoint, or null for the last breakpoint.
// //
// >> breakpoint-next(sm) // >> breakpoint-next(sm)
@ -56,12 +67,12 @@
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}"); @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
} }
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint. // Container query of at least the minimum breakpoint width. No query for the smallest breakpoint.
// Makes the @content apply to the given breakpoint and wider. // Makes the @content apply to the given breakpoint and wider.
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) { @mixin container-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
$min: breakpoint-min($name, $breakpoints); $min: breakpoint-min($name, $breakpoints);
@if $min { @if $min {
@media (min-width: $min) { @container (min-width: #{$min}) {
@content; @content;
} }
} @else { } @else {
@ -69,12 +80,12 @@
} }
} }
// Media of at most the maximum breakpoint width. No query for the largest breakpoint. // Container query of at most the maximum breakpoint width. No query for the largest breakpoint.
// Makes the @content apply to the given breakpoint and narrower. // Makes the @content apply to the given breakpoint and narrower.
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) { @mixin container-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
$max: breakpoint-max($name, $breakpoints); $max: breakpoint-max($name, $breakpoints);
@if $max { @if $max {
@media (max-width: $max) { @container (max-width: #{$max}) {
@content; @content;
} }
} @else { } @else {
@ -82,46 +93,71 @@
} }
} }
// Media that spans multiple breakpoint widths. // Container query that spans multiple breakpoint widths.
// Makes the @content apply between the min and max breakpoints // Makes the @content apply between the min and max breakpoints
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) { @mixin container-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
$min: breakpoint-min($lower, $breakpoints); $min: breakpoint-min($lower, $breakpoints);
$max: breakpoint-max($upper, $breakpoints); $max: breakpoint-max($upper, $breakpoints);
@if $min != null and $max != null { @if $min != null and $max != null {
@media (min-width: $min) and (max-width: $max) { @container (min-width: #{$min}) and (max-width: #{$max}) {
@content; @content;
} }
} @else if $max == null { } @else if $max == null {
@include media-breakpoint-up($lower, $breakpoints) { @include container-breakpoint-up($lower, $breakpoints) {
@content; @content;
} }
} @else if $min == null { } @else if $min == null {
@include media-breakpoint-down($upper, $breakpoints) { @include container-breakpoint-down($upper, $breakpoints) {
@content; @content;
} }
} }
} }
// Media between the breakpoint's minimum and maximum widths. // Container query between the breakpoint's minimum and maximum widths.
// No minimum for the smallest breakpoint, and no maximum for the largest one. // No minimum for the smallest breakpoint, and no maximum for the largest one.
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower. // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) { @mixin container-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
$min: breakpoint-min($name, $breakpoints); $min: breakpoint-min($name, $breakpoints);
$next: breakpoint-next($name, $breakpoints); $next: breakpoint-next($name, $breakpoints);
$max: breakpoint-max($next, $breakpoints); $max: breakpoint-max($next, $breakpoints);
@if $min != null and $max != null { @if $min != null and $max != null {
@media (min-width: $min) and (max-width: $max) { @container (min-width: #{$min}) and (max-width: #{$max}) {
@content; @content;
} }
} @else if $max == null { } @else if $max == null {
@include media-breakpoint-up($name, $breakpoints) { @include container-breakpoint-up($name, $breakpoints) {
@content; @content;
} }
} @else if $min == null { } @else if $min == null {
@include media-breakpoint-down($next, $breakpoints) { @include container-breakpoint-down($next, $breakpoints) {
@content; @content;
} }
} }
} }
// Aliases for the previous mixin, for backwards compatibility.
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
@include container-breakpoint-up($name, $breakpoints) {
@content;
}
}
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
@include container-breakpoint-down($name, $breakpoints) {
@content;
}
}
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
@include container-breakpoint-between($lower, $upper, $breakpoints) {
@content;
}
}
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
@include container-breakpoint-only($name, $breakpoints) {
@content;
}
}