| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
$pf-v6-c-description-list-order--breakpoint-map: build-breakpoint-map(); |
| 4 |
$pf-v6-c-description-list-order--limit: 12; |
| 5 |
|
| 6 |
// stylelint-disable max-nesting-depth |
| 7 |
.#{$description-list}__group { |
| 8 |
@each $breakpoint, $breakpoint-value in $pf-v6-c-description-list-order--breakpoint-map { |
| 9 |
$breakpoint-name: ""; |
| 10 |
|
| 11 |
@if $breakpoint != "base" { |
| 12 |
$breakpoint-name: -on-#{$breakpoint}; |
| 13 |
} |
| 14 |
|
| 15 |
@include pf-v6-apply-breakpoint($breakpoint) { |
| 16 |
@for $i from 0 through $pf-v6-c-description-list-order--limit { |
| 17 |
.pf-m-order-#{$i}#{$breakpoint-name} { |
| 18 |
order: #{$i}; |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
.pf-m-order-first#{$breakpoint-name} { |
| 23 |
order: -1; |
| 24 |
} |
| 25 |
|
| 26 |
.pf-m-order-last#{$breakpoint-name} { |
| 27 |
order: #{$pf-v6-c-description-list-order--limit + 1}; |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
// stylelint-enable |