@patternfly/patternfly 6.0.0-alpha.106 → 6.0.0-alpha.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/base/_common.scss +4 -4
- package/base/_globals.scss +2 -2
- package/base/_themes.scss +3 -3
- package/base/_variables.scss +14 -14
- package/base/patternfly-variables.css +18 -12
- package/base/themes/dark/_globals.scss +1 -1
- package/base/tokens/_tokens-charts.scss +1 -1
- package/base/tokens/_tokens-dark.scss +3 -3
- package/base/tokens/_tokens-default.scss +17 -11
- package/base/tokens/_tokens-palette.scss +1 -1
- package/components/AboutModalBox/about-modal-box.scss +12 -12
- package/components/Accordion/accordion.scss +2 -2
- package/components/Alert/alert.scss +2 -2
- package/components/AppLauncher/app-launcher.scss +2 -2
- package/components/AppLauncher/themes/dark/app-launcher.scss +1 -1
- package/components/Avatar/avatar.scss +5 -5
- package/components/BackToTop/back-to-top.scss +1 -1
- package/components/BackgroundImage/background-image.scss +1 -1
- package/components/Banner/banner.scss +1 -1
- package/components/Brand/brand.scss +3 -3
- package/components/Breadcrumb/breadcrumb.scss +1 -1
- package/components/CalendarMonth/calendar-month.scss +1 -1
- package/components/Card/card.scss +1 -1
- package/components/Chip/chip-group.scss +2 -2
- package/components/Chip/chip.scss +4 -4
- package/components/Chip/themes/dark/chip.scss +1 -1
- package/components/ClipboardCopy/clipboard-copy.scss +1 -1
- package/components/Content/content.scss +4 -4
- package/components/ContextSelector/context-selector.scss +5 -5
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.scss +6 -6
- package/components/DataList/data-list.css +15 -15
- package/components/DataList/data-list.scss +4 -4
- package/components/DescriptionList/description-list-order.scss +1 -1
- package/components/DescriptionList/description-list.scss +5 -5
- package/components/Divider/divider.css +57 -57
- package/components/Divider/divider.scss +16 -16
- package/components/Drawer/drawer.scss +25 -25
- package/components/Dropdown/dropdown.scss +6 -6
- package/components/Dropdown/themes/dark/dropdown.scss +1 -1
- package/components/DualListSelector/dual-list-selector.scss +4 -4
- package/components/ExpandableSection/expandable-section.scss +1 -1
- package/components/Form/form.scss +8 -8
- package/components/FormControl/form-control.css +1 -1
- package/components/FormControl/form-control.scss +1 -1
- package/components/JumpLinks/jump-links.scss +4 -4
- package/components/Label/label-group.scss +1 -1
- package/components/Label/label.scss +2 -2
- package/components/LogViewer/log-viewer.scss +3 -3
- package/components/LogViewer/themes/dark/log-viewer.scss +2 -2
- package/components/Login/login.scss +13 -13
- package/components/Masthead/masthead.css +70 -70
- package/components/Masthead/masthead.scss +15 -15
- package/components/Menu/menu.css +17 -17
- package/components/Menu/menu.scss +9 -9
- package/components/MenuToggle/menu-toggle.scss +1 -1
- package/components/ModalBox/modal-box.scss +3 -3
- package/components/Nav/nav.scss +3 -3
- package/components/NotificationDrawer/notification-drawer.scss +3 -3
- package/components/NumberInput/number-input.scss +1 -1
- package/components/OptionsMenu/options-menu.scss +3 -3
- package/components/OptionsMenu/themes/dark/options-menu.scss +1 -1
- package/components/Page/page.css +16 -16
- package/components/Page/page.scss +19 -19
- package/components/Pagination/pagination.css +30 -30
- package/components/Pagination/pagination.scss +10 -10
- package/components/Progress/progress.scss +1 -1
- package/components/ProgressStepper/progress-stepper.scss +11 -11
- package/components/Select/select.scss +5 -5
- package/components/Select/themes/dark/select.scss +1 -1
- package/components/Sidebar/sidebar.css +84 -84
- package/components/Sidebar/sidebar.scss +12 -12
- package/components/Skeleton/skeleton.scss +1 -1
- package/components/Slider/slider.scss +11 -11
- package/components/Switch/switch.scss +2 -2
- package/components/TabContent/tab-content.scss +1 -1
- package/components/Table/table-grid.scss +6 -6
- package/components/Table/table-tree-view.scss +6 -6
- package/components/Table/table.css +15 -15
- package/components/Table/table.scss +2 -2
- package/components/Tabs/tabs.css +90 -90
- package/components/Tabs/tabs.scss +10 -10
- package/components/TextInputGroup/text-input-group.scss +1 -1
- package/components/ToggleGroup/toggle-group.css +2 -2
- package/components/ToggleGroup/toggle-group.scss +2 -2
- package/components/Toolbar/toolbar.css +303 -303
- package/components/Toolbar/toolbar.scss +20 -20
- package/components/TreeView/tree-view.scss +5 -5
- package/components/Truncate/truncate.scss +3 -3
- package/components/Wizard/wizard.scss +10 -10
- package/docs/components/Badge/examples/Badge.md +0 -21
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +17 -58
- package/docs/components/Menu/examples/Menu.md +14 -6
- package/docs/components/MenuToggle/examples/MenuToggle.md +19 -0
- package/docs/layouts/Bullseye/examples/Bullseye.css +4 -4
- package/docs/layouts/Flex/examples/Flex.css +4 -4
- package/docs/layouts/Flex/examples/Flex.md +50 -50
- package/docs/layouts/Gallery/examples/Gallery.css +4 -4
- package/docs/layouts/Gallery/examples/Gallery.md +6 -6
- package/docs/layouts/Grid/examples/Grid.css +3 -3
- package/docs/layouts/Grid/examples/Grid.md +33 -33
- package/docs/layouts/Level/examples/Level.css +5 -5
- package/docs/layouts/Split/examples/Split.css +4 -4
- package/docs/layouts/Stack/examples/Stack.css +5 -5
- package/layouts/Bullseye/bullseye.css +5 -1
- package/layouts/Bullseye/bullseye.scss +4 -1
- package/layouts/Flex/flex.css +207 -203
- package/layouts/Flex/flex.scss +45 -42
- package/layouts/Gallery/gallery.css +6 -2
- package/layouts/Gallery/gallery.scss +8 -5
- package/layouts/Grid/grid.css +6 -2
- package/layouts/Grid/grid.scss +11 -8
- package/layouts/Level/level.css +5 -1
- package/layouts/Level/level.scss +5 -2
- package/layouts/Split/split.css +5 -1
- package/layouts/Split/split.scss +5 -2
- package/layouts/Stack/stack.css +5 -1
- package/layouts/Stack/stack.scss +5 -2
- package/package.json +1 -1
- package/patternfly-addons.css +672 -672
- package/patternfly-base-no-globals-theme-dark-unversioned.css +18 -12
- package/patternfly-base-no-globals-theme-dark-unversioned.scss +1 -1
- package/patternfly-base-no-globals.css +18 -12
- package/patternfly-base-theme-dark-unversioned.css +18 -12
- package/patternfly-base.css +18 -12
- package/patternfly-charts-theme-dark-unversioned.scss +4 -4
- package/patternfly-charts-theme-dark.css +2 -2
- package/patternfly-charts-theme-dark.scss +4 -4
- package/patternfly-no-globals.css +901 -867
- package/patternfly-theme-dark-unversioned.css +901 -867
- package/patternfly.css +901 -867
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/_init.scss +3 -3
- package/sass-utilities/functions.scss +14 -14
- package/sass-utilities/mixins.scss +55 -54
- package/sass-utilities/placeholders.scss +12 -12
- package/sass-utilities/scss-variables.scss +36 -36
- package/sass-utilities/themes/dark/mixins.scss +2 -2
- package/sass-utilities/themes/dark/placeholders.scss +1 -1
- package/themes/dark/_patternfly-charts-theme-dark.scss +1 -1
- package/utilities/Accessibility/accessibility.scss +6 -6
- package/utilities/Alignment/alignment.scss +1 -1
- package/utilities/BackgroundColor/BackgroundColor.scss +1 -1
- package/utilities/BoxShadow/box-shadow.scss +1 -1
- package/utilities/Display/display.scss +1 -1
- package/utilities/Flex/flex.scss +10 -10
- package/utilities/Float/float.scss +1 -1
- package/utilities/Sizing/sizing.scss +6 -6
- package/utilities/Spacing/spacing.css +672 -672
- package/utilities/Spacing/spacing.scss +4 -4
- package/utilities/Text/text.scss +5 -5
- package/docs/components/Breadcrumb/examples/Breadcrumb.css +0 -3
package/layouts/Flex/flex.scss
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
// Always keep list of spacers and breakpoints up-to-date
|
|
2
|
-
$pf-
|
|
3
|
-
$pf-
|
|
4
|
-
$pf-
|
|
5
|
-
$pf-
|
|
2
|
+
$pf-v6-l-flex--breakpoint-map: build-breakpoint-map();
|
|
3
|
+
$pf-v6-l-flex--spacer-map: build-spacer-map();
|
|
4
|
+
$pf-v6-l-flex--gap-map: build-spacer-map("base", "none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl");
|
|
5
|
+
$pf-v6-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $pf-v6-l-flex--spacer-map);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
:where(:root),
|
|
8
|
+
:where(.#{$flex}) {
|
|
8
9
|
--#{$flex}--Display: flex;
|
|
9
10
|
--#{$flex}--FlexWrap: wrap;
|
|
10
11
|
--#{$flex}--AlignItems: baseline;
|
|
11
12
|
--#{$flex}--m-row--AlignItems: baseline;
|
|
12
13
|
--#{$flex}--m-row-reverse--AlignItems: baseline;
|
|
13
14
|
--#{$flex}--item--Order: 0;
|
|
14
|
-
--#{$flex}--spacer--column--base: var(
|
|
15
|
-
--#{$flex}--spacer--row--base: var(
|
|
15
|
+
--#{$flex}--spacer--column--base: var(--pf-t--global--spacer--lg); // default spacer/gap for columns
|
|
16
|
+
--#{$flex}--spacer--row--base: var(--pf-t--global--spacer--sm); // default spacer/gap for rows
|
|
16
17
|
--#{$flex}--RowGap: var(--#{$flex}--spacer--row--base);
|
|
17
18
|
--#{$flex}--ColumnGap: 0;
|
|
18
19
|
--#{$flex}--m-gap--RowGap: var(--#{$flex}--spacer--row--base);
|
|
19
20
|
--#{$flex}--m-gap--ColumnGap: var(--#{$flex}--spacer--column--base);
|
|
20
21
|
--#{$flex}--m-row-gap--RowGap: var(--#{$flex}--spacer--row--base);
|
|
21
22
|
--#{$flex}--m-column-gap--ColumnGap: var(--#{$flex}--spacer--column--base);
|
|
23
|
+
}
|
|
22
24
|
|
|
25
|
+
.#{$flex} {
|
|
23
26
|
// Emit spacer css variables that map to requested spacer values
|
|
24
|
-
@include pf-
|
|
27
|
+
@include pf-v6-emit-properties($pf-v6-l-flex--variable-map);
|
|
25
28
|
|
|
26
29
|
display: var(--#{$flex}--Display);
|
|
27
30
|
flex-wrap: var(--#{$flex}--FlexWrap);
|
|
@@ -43,23 +46,23 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
43
46
|
margin-inline-end: var(--#{$flex}--spacer--column);
|
|
44
47
|
|
|
45
48
|
// don't set base value for --#{$flex}--item--Order as it defaults to 0
|
|
46
|
-
@media screen and (min-width: $pf-
|
|
49
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--sm) {
|
|
47
50
|
order: var(--#{$flex}--item--Order-on-sm, var(--#{$flex}--item--Order));
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
@media screen and (min-width: $pf-
|
|
53
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--md) {
|
|
51
54
|
order: var(--#{$flex}--item--Order-on-md, var(--#{$flex}--item--Order-on-sm, var(--#{$flex}--item--Order)));
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
@media screen and (min-width: $pf-
|
|
57
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--lg) {
|
|
55
58
|
order: var(--#{$flex}--item--Order-on-lg, var(--#{$flex}--item--Order-on-md, var(--#{$flex}--item--Order-on-sm, var(--#{$flex}--item--Order))));
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
@media screen and (min-width: $pf-
|
|
61
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--xl) {
|
|
59
62
|
order: var(--#{$flex}--item--Order-on-xl, var(--#{$flex}--item--Order-on-lg, var(--#{$flex}--item--Order-on-md, var(--#{$flex}--item--Order-on-sm, var(--#{$flex}--item--Order)))));
|
|
60
63
|
}
|
|
61
64
|
|
|
62
|
-
@media screen and (min-width: $pf-
|
|
65
|
+
@media screen and (min-width: $pf-v6-global--breakpoint--2xl) {
|
|
63
66
|
order: var(--#{$flex}--item--Order-on-2xl, var(--#{$flex}--item--Order-on-xl, var(--#{$flex}--item--Order-on-lg, var(--#{$flex}--item--Order-on-md, var(--#{$flex}--item--Order-on-sm, var(--#{$flex}--item--Order))))));
|
|
64
67
|
}
|
|
65
68
|
|
|
@@ -69,10 +72,10 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
.#{$flex} {
|
|
72
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
75
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
73
76
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
74
77
|
|
|
75
|
-
@include pf-
|
|
78
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
76
79
|
// display
|
|
77
80
|
&.pf-m-flex#{$breakpoint-name} {
|
|
78
81
|
display: var(--#{$flex}--Display);
|
|
@@ -296,14 +299,14 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
296
299
|
}
|
|
297
300
|
|
|
298
301
|
// .pf-m-space-items-{size}{-on-[breakpoint]}
|
|
299
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
302
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
300
303
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
301
304
|
|
|
302
|
-
@include pf-
|
|
303
|
-
@each $spacer, $spacer-value in $pf-
|
|
305
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
306
|
+
@each $spacer, $spacer-value in $pf-v6-l-flex--spacer-map {
|
|
304
307
|
&.pf-m-space-items-#{$spacer}#{$breakpoint-name} {
|
|
305
308
|
> * {
|
|
306
|
-
--#{$flex}--spacer: var(#{map-get($pf-
|
|
309
|
+
--#{$flex}--spacer: var(#{map-get($pf-v6-l-flex--variable-map, $spacer-value)});
|
|
307
310
|
}
|
|
308
311
|
|
|
309
312
|
> :last-child {
|
|
@@ -315,16 +318,16 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
// .pf-m-spacer-{size}{-on-[breakpoint]}
|
|
318
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
321
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
319
322
|
$breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
|
|
320
323
|
|
|
321
|
-
@include pf-
|
|
322
|
-
@each $spacer, $spacer-value in $pf-
|
|
324
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
325
|
+
@each $spacer, $spacer-value in $pf-v6-l-flex--spacer-map {
|
|
323
326
|
.pf-m-spacer-#{$spacer}#{$breakpoint-name} {
|
|
324
|
-
--#{$flex}--spacer: var(#{map-get($pf-
|
|
327
|
+
--#{$flex}--spacer: var(#{map-get($pf-v6-l-flex--variable-map, $spacer-value)});
|
|
325
328
|
|
|
326
329
|
&:last-child {
|
|
327
|
-
--#{$flex}--spacer: var(#{map-get($pf-
|
|
330
|
+
--#{$flex}--spacer: var(#{map-get($pf-v6-l-flex--variable-map, $spacer-value)});
|
|
328
331
|
}
|
|
329
332
|
}
|
|
330
333
|
}
|
|
@@ -332,17 +335,17 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
332
335
|
}
|
|
333
336
|
|
|
334
337
|
// .pf-m-gap{-[size]}{-on-[breakpoint]}
|
|
335
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
336
|
-
$pf-
|
|
338
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
339
|
+
$pf-v6-l-flex--gap--selectors: ();
|
|
337
340
|
|
|
338
|
-
@include pf-
|
|
339
|
-
@each $spacer, $value in $pf-
|
|
341
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
342
|
+
@each $spacer, $value in $pf-v6-l-flex--gap-map {
|
|
340
343
|
$breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
|
|
341
344
|
$spacer-name: if($spacer == "base", "", -#{$spacer});
|
|
342
345
|
$spacer-row: if($spacer == "base", var(--#{$flex}--m-gap--RowGap), $value);
|
|
343
346
|
$spacer-column: if($spacer == "base", var(--#{$flex}--m-gap--ColumnGap), $value);
|
|
344
347
|
$selector: ".pf-m-gap#{$spacer-name}#{$breakpoint-name}";
|
|
345
|
-
$pf-
|
|
348
|
+
$pf-v6-l-flex--gap--selectors: append($pf-v6-l-flex--gap--selectors, $selector, $separator: comma);
|
|
346
349
|
|
|
347
350
|
&#{$selector} {
|
|
348
351
|
--#{$flex}--RowGap: #{$spacer-row};
|
|
@@ -350,7 +353,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
350
353
|
}
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
&:is(#{$pf-
|
|
356
|
+
&:is(#{$pf-v6-l-flex--gap--selectors}) {
|
|
354
357
|
> * {
|
|
355
358
|
--#{$flex}--spacer--row: 0;
|
|
356
359
|
--#{$flex}--spacer--column: 0;
|
|
@@ -360,23 +363,23 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
360
363
|
}
|
|
361
364
|
|
|
362
365
|
// .pf-m-row-gap{-[size]}{-on-[breakpoint]}
|
|
363
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
364
|
-
@include pf-
|
|
365
|
-
$pf-
|
|
366
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
367
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
368
|
+
$pf-v6-l-flex--row-gap--selectors: ();
|
|
366
369
|
|
|
367
|
-
@each $spacer, $value in $pf-
|
|
370
|
+
@each $spacer, $value in $pf-v6-l-flex--gap-map {
|
|
368
371
|
$breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
|
|
369
372
|
$spacer-name: if($spacer == "base", "", -#{$spacer});
|
|
370
373
|
$spacer-value: if($spacer == "base", var(--#{$flex}--m-row-gap--RowGap), $value);
|
|
371
374
|
$selector: ".pf-m-row-gap#{$spacer-name}#{$breakpoint-name}";
|
|
372
|
-
$pf-
|
|
375
|
+
$pf-v6-l-flex--row-gap--selectors: append($pf-v6-l-flex--row-gap--selectors, $selector, $separator: comma);
|
|
373
376
|
|
|
374
377
|
&#{$selector} {
|
|
375
378
|
--#{$flex}--RowGap: #{$spacer-value};
|
|
376
379
|
}
|
|
377
380
|
}
|
|
378
381
|
|
|
379
|
-
&:is(#{$pf-
|
|
382
|
+
&:is(#{$pf-v6-l-flex--row-gap--selectors}) {
|
|
380
383
|
> * {
|
|
381
384
|
--#{$flex}--spacer--row: 0;
|
|
382
385
|
}
|
|
@@ -385,23 +388,23 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
|
|
|
385
388
|
}
|
|
386
389
|
|
|
387
390
|
// .pf-m-column-gap{-[size]}{-on-[breakpoint]}
|
|
388
|
-
@each $breakpoint, $breakpoint-value in $pf-
|
|
389
|
-
$pf-
|
|
391
|
+
@each $breakpoint, $breakpoint-value in $pf-v6-l-flex--breakpoint-map {
|
|
392
|
+
$pf-v6-l-flex--column-gap--selectors: ();
|
|
390
393
|
|
|
391
|
-
@include pf-
|
|
392
|
-
@each $spacer, $value in $pf-
|
|
394
|
+
@include pf-v6-apply-breakpoint($breakpoint) {
|
|
395
|
+
@each $spacer, $value in $pf-v6-l-flex--gap-map {
|
|
393
396
|
$breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
|
|
394
397
|
$spacer-name: if($spacer == "base", "", -#{$spacer});
|
|
395
398
|
$spacer-value: if($spacer == "base", var(--#{$flex}--m-column-gap--ColumnGap), $value);
|
|
396
399
|
$selector: ".pf-m-column-gap#{$spacer-name}#{$breakpoint-name}";
|
|
397
|
-
$pf-
|
|
400
|
+
$pf-v6-l-flex--column-gap--selectors: append($pf-v6-l-flex--column-gap--selectors, $selector, $separator: comma);
|
|
398
401
|
|
|
399
402
|
&#{$selector} {
|
|
400
403
|
--#{$flex}--ColumnGap: #{$spacer-value};
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
|
|
404
|
-
&:is(#{$pf-
|
|
407
|
+
&:is(#{$pf-v6-l-flex--column-gap--selectors}) {
|
|
405
408
|
> * {
|
|
406
409
|
--#{$flex}--spacer--column: 0;
|
|
407
410
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
:where(:root),
|
|
2
|
+
:where(.pf-v6-l-gallery) {
|
|
3
|
+
--pf-v6-l-gallery--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
3
4
|
--pf-v6-l-gallery--GridTemplateColumns--min: 250px;
|
|
4
5
|
--pf-v6-l-gallery--GridTemplateColumns--minmax--min: var(--pf-v6-l-gallery--GridTemplateColumns--min);
|
|
5
6
|
--pf-v6-l-gallery--GridTemplateColumns--max: 1fr;
|
|
6
7
|
--pf-v6-l-gallery--GridTemplateColumns--minmax--max: var(--pf-v6-l-gallery--GridTemplateColumns--max);
|
|
7
8
|
--pf-v6-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(var(--pf-v6-l-gallery--GridTemplateColumns--minmax--min), var(--pf-v6-l-gallery--GridTemplateColumns--minmax--max)));
|
|
8
9
|
--pf-v6-l-gallery--GridTemplateRows: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pf-v6-l-gallery {
|
|
9
13
|
display: grid;
|
|
10
14
|
grid-template-rows: var(--pf-v6-l-gallery--GridTemplateRows);
|
|
11
15
|
grid-template-columns: var(--pf-v6-l-gallery--GridTemplateColumns);
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
$pf-
|
|
1
|
+
$pf-v6-l-gallery--breakpoint-map: build-breakpoint-map();
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
:where(:root),
|
|
4
|
+
:where(.#{$gallery}) {
|
|
5
|
+
--#{$gallery}--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
5
6
|
--#{$gallery}--GridTemplateColumns--min: 250px;
|
|
6
7
|
--#{$gallery}--GridTemplateColumns--minmax--min: var(--#{$gallery}--GridTemplateColumns--min);
|
|
7
8
|
--#{$gallery}--GridTemplateColumns--max: 1fr;
|
|
8
9
|
--#{$gallery}--GridTemplateColumns--minmax--max: var(--#{$gallery}--GridTemplateColumns--max);
|
|
9
10
|
--#{$gallery}--GridTemplateColumns: repeat(auto-fill, minmax(var(--#{$gallery}--GridTemplateColumns--minmax--min), var(--#{$gallery}--GridTemplateColumns--minmax--max)));
|
|
10
11
|
--#{$gallery}--GridTemplateRows: auto;
|
|
12
|
+
}
|
|
11
13
|
|
|
14
|
+
.#{$gallery} {
|
|
12
15
|
display: grid;
|
|
13
16
|
grid-template-rows: var(--#{$gallery}--GridTemplateRows);
|
|
14
17
|
grid-template-columns: var(--#{$gallery}--GridTemplateColumns);
|
|
@@ -17,6 +20,6 @@ $pf-v5-l-gallery--breakpoint-map: build-breakpoint-map();
|
|
|
17
20
|
grid-gap: var(--#{$gallery}--m-gutter--GridGap);
|
|
18
21
|
}
|
|
19
22
|
|
|
20
|
-
@include pf-
|
|
21
|
-
@include pf-
|
|
23
|
+
@include pf-v6-build-css-variable-stack("--#{$gallery}--GridTemplateColumns--minmax--min", "--#{$gallery}--GridTemplateColumns--min", $pf-v6-l-gallery--breakpoint-map);
|
|
24
|
+
@include pf-v6-build-css-variable-stack("--#{$gallery}--GridTemplateColumns--minmax--max", "--#{$gallery}--GridTemplateColumns--max", $pf-v6-l-gallery--breakpoint-map);
|
|
22
25
|
}
|
package/layouts/Grid/grid.css
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
:where(:root),
|
|
2
|
+
:where(.pf-v6-l-grid) {
|
|
3
|
+
--pf-v6-l-grid--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
3
4
|
--pf-v6-l-grid__item--GridColumnStart: auto;
|
|
4
5
|
--pf-v6-l-grid__item--GridColumnEnd: span 12;
|
|
5
6
|
--pf-v6-l-grid--item--Order: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pf-v6-l-grid {
|
|
6
10
|
display: grid;
|
|
7
11
|
grid-template-columns: repeat(12, [col-start] 1fr);
|
|
8
12
|
}
|
package/layouts/Grid/grid.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$pf-
|
|
1
|
+
$pf-v6-l-grid--breakpoint-map: build-breakpoint-map(); // currently only used for css variable stack
|
|
2
2
|
|
|
3
3
|
// URL.com/guidelines#layout
|
|
4
4
|
// Generate smart grid layout
|
|
@@ -39,12 +39,15 @@ $pf-v5-l-grid--breakpoint-map: build-breakpoint-map(); // currently only used fo
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Grid base
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
:where(:root),
|
|
43
|
+
:where(.#{$grid}) {
|
|
44
|
+
--#{$grid}--m-gutter--GridGap: var(--pf-t--global--spacer--lg);
|
|
44
45
|
--#{$grid}__item--GridColumnStart: auto;
|
|
45
46
|
--#{$grid}__item--GridColumnEnd: span 12;
|
|
46
47
|
--#{$grid}--item--Order: 0;
|
|
48
|
+
}
|
|
47
49
|
|
|
50
|
+
.#{$grid} {
|
|
48
51
|
display: grid;
|
|
49
52
|
grid-template-columns: repeat(12, [col-start] 1fr);
|
|
50
53
|
|
|
@@ -55,19 +58,19 @@ $pf-v5-l-grid--breakpoint-map: build-breakpoint-map(); // currently only used fo
|
|
|
55
58
|
min-width: 0;
|
|
56
59
|
min-height: 0;
|
|
57
60
|
|
|
58
|
-
@include pf-
|
|
61
|
+
@include pf-v6-build-css-variable-stack("order", "--#{$grid}--item--Order", $pf-v6-l-grid--breakpoint-map);
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
// Loop through $breakpoints map to generate responsive classes
|
|
62
|
-
@each $breakpoint, $value in $pf-
|
|
63
|
-
@include pf-
|
|
65
|
+
@each $breakpoint, $value in $pf-v6-global--breakpoint-map {
|
|
66
|
+
@include pf-v6-media-query($breakpoint) {
|
|
64
67
|
@include pf-smart-grid($value);
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
// Loop through $breakpoints map to generate responsive classes
|
|
69
|
-
@each $breakpoint, $value in $pf-
|
|
70
|
-
@include pf-
|
|
72
|
+
@each $breakpoint, $value in $pf-v6-global--breakpoint-map {
|
|
73
|
+
@include pf-v6-media-query($breakpoint) {
|
|
71
74
|
@include pf-grid-item-modifier($value);
|
|
72
75
|
}
|
|
73
76
|
}
|
package/layouts/Level/level.css
CHANGED
package/layouts/Level/level.scss
CHANGED
package/layouts/Split/split.css
CHANGED
package/layouts/Split/split.scss
CHANGED
package/layouts/Stack/stack.css
CHANGED
package/layouts/Stack/stack.scss
CHANGED