Build container and table-mobile infixes with breakpoint-infix() (#3026)

This commit is contained in:
Paweł Kuna authored and Bartek committed 2026-10-02 12:06:07 +02:00
1 parent 787f9693db
commit 69fffc7de5
3 files changed
+15 -3

No files matched your search

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Updated `.container-*` and `.table-mobile-*` to build their breakpoint infix with `breakpoint-infix()`.
+1 -1
View File
@@ -14,7 +14,7 @@
// Responsive containers that are 100% wide until a breakpoint
@each $breakpoint, $container-max-width in $container-max-widths {
.container-#{$breakpoint} {
.container#{breakpoint-infix($breakpoint, $grid-breakpoints)} {
@extend .container-fluid;
}
+9 -2
View File
@@ -1,3 +1,5 @@
@use 'sass:map';
@use '../config' as *;
.table {
@@ -69,9 +71,14 @@
max-width: 1px;
}
// Generate a series of `.table-mobile-*` classes for configuring the screen
// size below which the table stacks into rows. Mirrors `.table-responsive-*`:
// the infix names the breakpoint the layout applies *below*.
.table-mobile {
@each $breakpoint, $breakpoint-max-widthin in $grid-breakpoints {
&#{breakpoint-infix($breakpoint)} {
@each $breakpoint in map.keys($grid-breakpoints) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
&#{$infix} {
@include media-breakpoint-down($breakpoint) {
display: block;