mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Build container and table-mobile infixes with breakpoint-infix() (#3026)
This commit is contained in:
1 parent
787f9693db
commit
69fffc7de5
3 files changed
+15
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user