| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
$pf-v6-c-toolbar--spacer-map: build-spacer-map(); |
| 4 |
$pf-v6-c-toolbar--inset-map: build-spacer-map(); |
| 5 |
$pf-v6-c-toolbar--align-items--alignments: ('stretch', 'baseline', 'start', 'center', 'end'); |
| 6 |
$pf-v6-c-toolbar--breakpoint-map: build-breakpoint-map('base'); |
| 7 |
$pf-v6--include-toolbar-breakpoints: true !default; |
| 8 |
|
| 9 |
@if $pf-v6--include-toolbar-breakpoints { |
| 10 |
$pf-v6-c-toolbar--breakpoint-map: build-breakpoint-map(); |
| 11 |
} |
| 12 |
|
| 13 |
@include pf-root($toolbar) { |
| 14 |
--#{$toolbar}--RowGap: var(--pf-t--global--spacer--md); |
| 15 |
--#{$toolbar}--PaddingBlockStart: 0; |
| 16 |
--#{$toolbar}--PaddingBlockEnd: var(--pf-t--global--spacer--md); |
| 17 |
--#{$toolbar}--PaddingInlineStart: 0; |
| 18 |
--#{$toolbar}--PaddingInlineEnd: 0; |
| 19 |
--#{$toolbar}--LineHeight: var(--pf-t--global--font--line-height--body); |
| 20 |
--#{$toolbar}--FontSize: var(--pf-t--global--font--size--body--default); |
| 21 |
--#{$toolbar}--BackgroundColor: transparent; |
| 22 |
|
| 23 |
// * Toolbar background modifiers |
| 24 |
--#{$toolbar}--m-primary--BackgroundColor: var(--pf-t--global--background--color--primary--default); |
| 25 |
--#{$toolbar}--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default); |
| 26 |
--#{$toolbar}--m-no-background--BackgroundColor: transparent; |
| 27 |
|
| 28 |
// * Toolbar item |
| 29 |
--#{$toolbar}__item--Width: auto; |
| 30 |
--#{$toolbar}__item--MinWidth: auto; |
| 31 |
--#{$toolbar}__item--RowGap: var(--pf-t--global--spacer--gap--group--vertical); |
| 32 |
--#{$toolbar}__item--ColumnGap: var(--pf-t--global--spacer--gap--group--horizontal); |
| 33 |
--#{$toolbar}__item--m-overflow-container--MinWidth: 0; |
| 34 |
|
| 35 |
// * Toolbar group |
| 36 |
--#{$toolbar}__group--RowGap: var(--pf-t--global--spacer--gap--group--vertical); |
| 37 |
--#{$toolbar}__group--ColumnGap: var(--pf-t--global--spacer--gap--group--horizontal); |
| 38 |
|
| 39 |
// * Toolbar group overflow container |
| 40 |
--#{$toolbar}__group--m-overflow-container--MinWidth: 0; |
| 41 |
|
| 42 |
// * Toolbar content |
| 43 |
--#{$toolbar}__content--RowGap: var(--pf-t--global--spacer--md); |
| 44 |
--#{$toolbar}__content--PaddingInlineStart: 0; |
| 45 |
--#{$toolbar}__content--PaddingInlineEnd: 0; |
| 46 |
|
| 47 |
// * Toolbar content section |
| 48 |
--#{$toolbar}__content-section--RowGap: var(--pf-t--global--spacer--gap--group--vertical); |
| 49 |
--#{$toolbar}__content-section--ColumnGap: var(--pf-t--global--spacer--gap--group--horizontal); |
| 50 |
|
| 51 |
// * Toolbar expandable content |
| 52 |
--#{$toolbar}__expandable-content--ZIndex: var(--pf-t--global--z-index--sm); |
| 53 |
--#{$toolbar}__expandable-content--RowGap: var(--pf-t--global--spacer--gap--group--vertical); |
| 54 |
--#{$toolbar}__expandable-content--PaddingBlockStart: var(--pf-t--global--spacer--md); |
| 55 |
--#{$toolbar}__expandable-content--PaddingBlockEnd: var(--pf-t--global--spacer--md); |
| 56 |
--#{$toolbar}__expandable-content--PaddingInlineStart: var(--pf-t--global--spacer--md); |
| 57 |
--#{$toolbar}__expandable-content--PaddingInlineEnd: var(--pf-t--global--spacer--md); |
| 58 |
--#{$toolbar}__expandable-content--BoxShadow: var(--pf-t--global--box-shadow--md--bottom); |
| 59 |
--#{$toolbar}__expandable-content--BackgroundColor: var(--pf-t--global--background--color--floating--default); |
| 60 |
--#{$toolbar}__expandable-content--BorderBlockEndWidth: var(--pf-t--global--border--width--high-contrast--regular); |
| 61 |
--#{$toolbar}__expandable-content--BorderBlockEndColor: var(--pf-t--global--border--color--high-contrast); |
| 62 |
|
| 63 |
// * Toolbar sticky |
| 64 |
--#{$toolbar}--m-sticky--ZIndex: var(--pf-t--global--z-index--xs); |
| 65 |
--#{$toolbar}--m-sticky--PaddingBlockStart: var(--pf-t--global--spacer--md); |
| 66 |
--#{$toolbar}--m-sticky--PaddingBlockEnd: var(--pf-t--global--spacer--md); |
| 67 |
--#{$toolbar}--m-sticky--PaddingInlineStart: 0; |
| 68 |
--#{$toolbar}--m-sticky--PaddingInlineEnd: 0; |
| 69 |
--#{$toolbar}--m-sticky--BoxShadow: var(--pf-t--global--box-shadow--sm--bottom); |
| 70 |
--#{$toolbar}--m-sticky--BackgroundColor: var(--pf-t--global--background--color--sticky--default); |
| 71 |
--#{$toolbar}--m-sticky--BorderBlockEndWidth: var(--pf-t--global--border--width--high-contrast--regular); |
| 72 |
--#{$toolbar}--m-sticky--BorderBlockEndColor: var(--pf-t--global--border--color--high-contrast); |
| 73 |
--#{$toolbar}--m-sticky--BorderRadius: 0; |
| 74 |
--#{$toolbar}--m-sticky--BorderRadius--glass: var(--pf-t--global--border--radius--medium); |
| 75 |
--#{$toolbar}--m-sticky--BoxShadow--glass: var(--pf-t--global--box-shadow--sm); |
| 76 |
--#{$toolbar}--m-sticky--PaddingInlineStart--glass: var(--pf-t--global--spacer--sm); |
| 77 |
--#{$toolbar}--m-sticky--PaddingInlineEnd--glass: var(--pf-t--global--spacer--sm); |
| 78 |
--#{$toolbar}--m-sticky--TransitionTimingFunction--BackgroundColor: var(--pf-t--global--motion--timing-function--default); |
| 79 |
--#{$toolbar}--m-sticky--TransitionDuration--BackgroundColor: var(--pf-t--global--motion--duration--fade--default); |
| 80 |
|
| 81 |
:where(.pf-v6-theme-glass) & { |
| 82 |
--#{$toolbar}--m-sticky--BorderBlockEndWidth: 0; |
| 83 |
--#{$toolbar}--m-sticky--BoxShadow: var(--#{$toolbar}--m-sticky--BoxShadow--glass); |
| 84 |
--#{$toolbar}--m-sticky--BorderRadius: var(--#{$toolbar}--m-sticky--BorderRadius--glass); |
| 85 |
--#{$toolbar}--m-sticky--PaddingInlineStart: var(--#{$toolbar}--m-sticky--PaddingInlineStart--glass); |
| 86 |
--#{$toolbar}--m-sticky--PaddingInlineEnd: var(--#{$toolbar}--m-sticky--PaddingInlineEnd--glass); |
| 87 |
} |
| 88 |
|
| 89 |
// * Toolbar vertical |
| 90 |
--#{$toolbar}--m-vertical--Width: fit-content; |
| 91 |
|
| 92 |
// * Toolbar expand all |
| 93 |
--#{$toolbar}__expand-all-icon--Rotate: 0; |
| 94 |
--#{$toolbar}__expand-all-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default); |
| 95 |
--#{$toolbar}__expand-all-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default); |
| 96 |
--#{$toolbar}__item--m-expand-all--m-expanded__expand-all-icon--Rotate: -180deg; |
| 97 |
|
| 98 |
// * Toolbar filter group |
| 99 |
--#{$toolbar}__group--m-filter-group--ColumnGap: var(--pf-t--global--spacer--gap--control-to-control--default); |
| 100 |
|
| 101 |
// * Toolbar label |
| 102 |
--#{$toolbar}__item--m-label--FontWeight: var(--pf-t--global--font--weight--body--bold); |
| 103 |
|
| 104 |
// * Toolbar group label group |
| 105 |
--#{$toolbar}__group--m-label-group--ColumnGap: var(--pf-t--global--spacer--gap--text-to-element--default); |
| 106 |
|
| 107 |
// * Toolbar group action group |
| 108 |
--#{$toolbar}__group--m-action-group--ColumnGap: var(--pf-t--global--spacer--gap--action-to-action--default); |
| 109 |
|
| 110 |
// * Toolbar group action group plain |
| 111 |
--#{$toolbar}__group--m-action-group-plain--ColumnGap: var(--pf-t--global--spacer--gap--action-to-action--plain); |
| 112 |
|
| 113 |
// * Toolbar group action group inline |
| 114 |
--#{$toolbar}__group--m-action-group-inline--ColumnGap: var(--pf-t--global--spacer--gap--action-to-action--default); |
| 115 |
} |
| 116 |
|
| 117 |
// - Toolbar content section - Toolbar group - Toolbar item |
| 118 |
.#{$toolbar}__content-section, |
| 119 |
.#{$toolbar}__group, |
| 120 |
.#{$toolbar}__item { |
| 121 |
@include pf-v6-hidden-visible(flex, $ifIncludeHeight: true); |
| 122 |
} |
| 123 |
|
| 124 |
// - Toolbar - Toolbar content |
| 125 |
.#{$toolbar}, |
| 126 |
.#{$toolbar}__content { |
| 127 |
position: relative; |
| 128 |
} |
| 129 |
|
| 130 |
// - Toolbar content - Toolbar content section - Toolbar expandable content |
| 131 |
.#{$toolbar}__content { |
| 132 |
@include pf-v6-hidden-visible(grid, $ifIncludeHeight: true); |
| 133 |
|
| 134 |
row-gap: var(--#{$toolbar}__content--RowGap); |
| 135 |
padding-inline-start: var(--#{$toolbar}__content--PaddingInlineStart); |
| 136 |
padding-inline-end: var(--#{$toolbar}__content--PaddingInlineEnd); |
| 137 |
} |
| 138 |
|
| 139 |
// Toolbar content section |
| 140 |
.#{$toolbar}__content-section { |
| 141 |
flex-wrap: wrap; |
| 142 |
row-gap: var(--#{$toolbar}__content-section--RowGap); |
| 143 |
column-gap: var(--#{$toolbar}__content-section--ColumnGap); |
| 144 |
align-items: start; |
| 145 |
} |
| 146 |
|
| 147 |
// - Toolbar |
| 148 |
.#{$toolbar} { |
| 149 |
display: grid; |
| 150 |
row-gap: var(--#{$toolbar}--RowGap); |
| 151 |
width: var(--#{$toolbar}--Width, auto); |
| 152 |
padding-block-start: var(--#{$toolbar}--PaddingBlockStart); |
| 153 |
padding-block-end: var(--#{$toolbar}--PaddingBlockEnd); |
| 154 |
padding-inline-start: var(--#{$toolbar}--PaddingInlineStart); |
| 155 |
padding-inline-end: var(--#{$toolbar}--PaddingInlineEnd); |
| 156 |
font-size: var(--#{$toolbar}--FontSize); |
| 157 |
line-height: var(--#{$toolbar}--LineHeight); |
| 158 |
background-color: var(--#{$toolbar}--BackgroundColor); |
| 159 |
|
| 160 |
// - Toolbar sticky |
| 161 |
&.pf-m-sticky { |
| 162 |
--#{$toolbar}--BackgroundColor: var(--#{$toolbar}--m-sticky--BackgroundColor); |
| 163 |
|
| 164 |
position: sticky; |
| 165 |
inset-block-start: 0; |
| 166 |
z-index: var(--#{$toolbar}--m-sticky--ZIndex); |
| 167 |
padding-block-start: var(--#{$toolbar}--m-sticky--PaddingBlockStart); |
| 168 |
padding-block-end: var(--#{$toolbar}--m-sticky--PaddingBlockEnd); |
| 169 |
padding-inline-start: var(--#{$toolbar}--m-sticky--PaddingInlineStart); |
| 170 |
padding-inline-end: var(--#{$toolbar}--m-sticky--PaddingInlineEnd); |
| 171 |
border-block-end: var(--#{$toolbar}--m-sticky--BorderBlockEndWidth) solid var(--#{$toolbar}--m-sticky--BorderBlockEndColor); |
| 172 |
border-radius: var(--#{$toolbar}--m-sticky--BorderRadius); |
| 173 |
box-shadow: var(--#{$toolbar}--m-sticky--BoxShadow); |
| 174 |
} |
| 175 |
|
| 176 |
&.pf-m-sticky-base { |
| 177 |
--#{$toolbar}--BackgroundColor: var(--#{$toolbar}--m-sticky--BackgroundColor); |
| 178 |
|
| 179 |
position: sticky; |
| 180 |
inset-block-start: 0; |
| 181 |
z-index: var(--#{$toolbar}--m-sticky--ZIndex); |
| 182 |
padding-block-start: var(--#{$toolbar}--m-sticky--PaddingBlockStart); |
| 183 |
padding-block-end: var(--#{$toolbar}--m-sticky--PaddingBlockEnd); |
| 184 |
padding-inline-start: var(--#{$toolbar}--m-sticky--PaddingInlineStart); |
| 185 |
padding-inline-end: var(--#{$toolbar}--m-sticky--PaddingInlineEnd); |
| 186 |
background: transparent; |
| 187 |
border-radius: inherit; |
| 188 |
|
| 189 |
&::before { |
| 190 |
position: absolute; |
| 191 |
inset: 0; |
| 192 |
z-index: -1; |
| 193 |
content: ''; |
| 194 |
background: var(--#{$toolbar}--BackgroundColor); |
| 195 |
border-block-end: var(--#{$toolbar}--m-sticky--BorderBlockEndWidth) solid var(--#{$toolbar}--m-sticky--BorderBlockEndColor); |
| 196 |
border-radius: var(--#{$toolbar}--m-sticky--BorderRadius); |
| 197 |
box-shadow: var(--#{$toolbar}--m-sticky--BoxShadow); |
| 198 |
opacity: 0; |
| 199 |
transition-timing-function: var(--#{$toolbar}--m-sticky--TransitionTimingFunction--BackgroundColor); |
| 200 |
transition-duration: var(--#{$toolbar}--m-sticky--TransitionDuration--BackgroundColor); |
| 201 |
transition-property: opacity; |
| 202 |
} |
| 203 |
} |
| 204 |
|
| 205 |
&.pf-m-sticky-stuck { |
| 206 |
&::before { |
| 207 |
opacity: 1; |
| 208 |
} |
| 209 |
} |
| 210 |
|
| 211 |
// - Toolbar static |
| 212 |
&.pf-m-static { |
| 213 |
&, |
| 214 |
.#{$toolbar}__content { |
| 215 |
position: static; |
| 216 |
} |
| 217 |
|
| 218 |
.#{$toolbar}__expandable-content { |
| 219 |
position: absolute; |
| 220 |
} |
| 221 |
} |
| 222 |
|
| 223 |
// - Toolbar full height |
| 224 |
&.pf-m-full-height { |
| 225 |
--#{$toolbar}--PaddingBlockStart: 0; |
| 226 |
--#{$toolbar}--PaddingBlockEnd: 0; |
| 227 |
|
| 228 |
.#{$toolbar}__group, |
| 229 |
.#{$toolbar}__item { |
| 230 |
align-items: stretch; |
| 231 |
align-self: stretch; |
| 232 |
} |
| 233 |
} |
| 234 |
|
| 235 |
&.pf-m-no-padding { |
| 236 |
--#{$toolbar}--PaddingBlockEnd: 0; |
| 237 |
--#{$toolbar}--m-sticky--PaddingBlockStart: 0; |
| 238 |
--#{$toolbar}--m-sticky--PaddingBlockEnd: 0; |
| 239 |
} |
| 240 |
|
| 241 |
// - Toolbar background modifiers |
| 242 |
&.pf-m-primary { |
| 243 |
--#{$toolbar}--BackgroundColor: var(--#{$toolbar}--m-primary--BackgroundColor); |
| 244 |
} |
| 245 |
|
| 246 |
&.pf-m-secondary { |
| 247 |
--#{$toolbar}--BackgroundColor: var(--#{$toolbar}--m-secondary--BackgroundColor); |
| 248 |
} |
| 249 |
|
| 250 |
&.pf-m-no-background { |
| 251 |
--#{$toolbar}--BackgroundColor: var(--#{$toolbar}--m-no-background--BackgroundColor); |
| 252 |
} |
| 253 |
|
| 254 |
&.pf-m-vertical { |
| 255 |
--#{$toolbar}--child--m-align-end--MarginBlockStart: auto; |
| 256 |
--#{$toolbar}--child--m-align-end--MarginInlineStart: 0; |
| 257 |
--#{$toolbar}--PaddingBlockEnd: 0; |
| 258 |
--#{$toolbar}--Width: var(--#{$toolbar}--m-vertical--Width); |
| 259 |
|
| 260 |
:is(.#{$toolbar}__group, .#{$toolbar}__item, .#{$toolbar}__content-section) { |
| 261 |
flex-direction: column; |
| 262 |
align-items: center; |
| 263 |
} |
| 264 |
} |
| 265 |
} |
| 266 |
|
| 267 |
// - Toolbar item |
| 268 |
.#{$toolbar}__item { |
| 269 |
@include pf-v6-build-css-variable-stack("--#{$toolbar}__item--Width--base", "--#{$toolbar}__item--Width", $pf-v6-c-toolbar--breakpoint-map); |
| 270 |
@include pf-v6-build-css-variable-stack("--#{$toolbar}__item--MinWidth--base", "--#{$toolbar}__item--MinWidth", $pf-v6-c-toolbar--breakpoint-map); |
| 271 |
|
| 272 |
row-gap: var(--#{$toolbar}__item--RowGap); |
| 273 |
column-gap: var(--#{$toolbar}__item--ColumnGap); |
| 274 |
width: var(--#{$toolbar}__item--Width--base); |
| 275 |
min-width: var(--#{$toolbar}__item--MinWidth--base); |
| 276 |
|
| 277 |
// - Toolbar expand |
| 278 |
&.pf-m-expand-all.pf-m-expanded { |
| 279 |
--#{$toolbar}__expand-all-icon--Rotate: var(--#{$toolbar}__item--m-expand-all--m-expanded__expand-all-icon--Rotate); |
| 280 |
} |
| 281 |
|
| 282 |
// - Toolbar label |
| 283 |
&.pf-m-label { |
| 284 |
font-weight: var(--#{$toolbar}__item--m-label--FontWeight); |
| 285 |
} |
| 286 |
|
| 287 |
// - Toolbar pagination |
| 288 |
&.pf-m-pagination { |
| 289 |
margin-inline-start: auto; |
| 290 |
|
| 291 |
&.#{$pagination} { |
| 292 |
flex-wrap: nowrap; |
| 293 |
} |
| 294 |
} |
| 295 |
|
| 296 |
&.pf-m-overflow-container { |
| 297 |
min-width: var(--#{$toolbar}__item--m-overflow-container--MinWidth); |
| 298 |
} |
| 299 |
} |
| 300 |
|
| 301 |
// - Toolbar group |
| 302 |
.#{$toolbar}__group { |
| 303 |
row-gap: var(--#{$toolbar}__group--RowGap); |
| 304 |
column-gap: var(--#{$toolbar}__group--ColumnGap); |
| 305 |
|
| 306 |
.#{$toolbar}.pf-m-vertical & { |
| 307 |
row-gap: var(--#{$toolbar}__group--ColumnGap); |
| 308 |
} |
| 309 |
|
| 310 |
// - Toolbar filter group |
| 311 |
&.pf-m-filter-group { |
| 312 |
column-gap: var(--#{$toolbar}__group--m-filter-group--ColumnGap); |
| 313 |
} |
| 314 |
|
| 315 |
// - Toolbar label group |
| 316 |
&.pf-m-label-group { |
| 317 |
flex: 1; |
| 318 |
flex-wrap: wrap; |
| 319 |
column-gap: var(--#{$toolbar}__group--m-label-group--ColumnGap); |
| 320 |
} |
| 321 |
|
| 322 |
// - Toolbar action group |
| 323 |
&.pf-m-action-group { |
| 324 |
column-gap: var(--#{$toolbar}__group--m-action-group--ColumnGap); |
| 325 |
|
| 326 |
.#{$toolbar}.pf-m-vertical & { |
| 327 |
row-gap: var(--#{$toolbar}__group--m-action-group--ColumnGap); |
| 328 |
} |
| 329 |
} |
| 330 |
|
| 331 |
// - Toolbar action group plain |
| 332 |
&.pf-m-action-group-plain { |
| 333 |
column-gap: var(--#{$toolbar}__group--m-action-group-plain--ColumnGap); |
| 334 |
|
| 335 |
.#{$toolbar}.pf-m-vertical & { |
| 336 |
row-gap: var(--#{$toolbar}__group--m-action-group-plain--ColumnGap); |
| 337 |
} |
| 338 |
} |
| 339 |
|
| 340 |
// - Toolbar action group inline |
| 341 |
&.pf-m-action-group-inline { |
| 342 |
flex-wrap: wrap; |
| 343 |
column-gap: var(--#{$toolbar}__group--m-action-group-inline--ColumnGap); |
| 344 |
} |
| 345 |
|
| 346 |
// - Toolbar overflow container |
| 347 |
&.pf-m-overflow-container { |
| 348 |
min-width: var(--#{$toolbar}__group--m-overflow-container--MinWidth); |
| 349 |
} |
| 350 |
} |
| 351 |
|
| 352 |
// - Toolbar expandable content |
| 353 |
.#{$toolbar}__expandable-content { |
| 354 |
position: absolute; |
| 355 |
inset-block-start: 100%; |
| 356 |
inset-inline-start: 0; |
| 357 |
z-index: var(--#{$toolbar}__expandable-content--ZIndex); |
| 358 |
display: none; |
| 359 |
row-gap: var(--#{$toolbar}__expandable-content--RowGap); |
| 360 |
width: 100%; |
| 361 |
padding-block-start: var(--#{$toolbar}__expandable-content--PaddingBlockStart); |
| 362 |
padding-block-end: var(--#{$toolbar}__expandable-content--PaddingBlockEnd); |
| 363 |
padding-inline-start: var(--#{$toolbar}__expandable-content--PaddingInlineStart); |
| 364 |
padding-inline-end: var(--#{$toolbar}__expandable-content--PaddingInlineEnd); |
| 365 |
background-color: var(--#{$toolbar}__expandable-content--BackgroundColor); |
| 366 |
border-block-end: var(--#{$toolbar}__expandable-content--BorderBlockEndWidth) solid var(--#{$toolbar}__expandable-content--BorderBlockEndColor); |
| 367 |
box-shadow: var(--#{$toolbar}__expandable-content--BoxShadow); |
| 368 |
|
| 369 |
@media screen and (min-width: $pf-v6-global--breakpoint--lg) { |
| 370 |
position: static; |
| 371 |
padding: 0; |
| 372 |
border-block-end: 0; |
| 373 |
box-shadow: none; |
| 374 |
} |
| 375 |
|
| 376 |
&.pf-m-expanded, |
| 377 |
.#{$toolbar}__group { |
| 378 |
display: grid; |
| 379 |
} |
| 380 |
|
| 381 |
.#{$toolbar}__item > * { |
| 382 |
flex-basis: 100%; |
| 383 |
} |
| 384 |
|
| 385 |
.#{$toolbar}__group.pf-m-action-group-inline { |
| 386 |
display: flex; |
| 387 |
justify-content: center; |
| 388 |
} |
| 389 |
} |
| 390 |
|
| 391 |
// - Toolbar expand all |
| 392 |
.#{$toolbar}__expand-all-icon { |
| 393 |
display: inline-flex; |
| 394 |
transform: rotate(var(--#{$toolbar}__expand-all-icon--Rotate)); |
| 395 |
transition-timing-function: var(--#{$toolbar}__expand-all-icon--TransitionTimingFunction); |
| 396 |
transition-duration: var(--#{$toolbar}__expand-all-icon--TransitionDuration); |
| 397 |
transition-property: transform; |
| 398 |
|
| 399 |
@include pf-v6-mirror-inline-on-rtl; // - TODO: mirror this icon in breaking change |
| 400 |
} |
| 401 |
|
| 402 |
// - Toolbar group - Toolbar item |
| 403 |
.#{$toolbar}__group, |
| 404 |
.#{$toolbar}__item { |
| 405 |
align-items: baseline; |
| 406 |
|
| 407 |
&.pf-m-overflow-container { |
| 408 |
flex: 1; |
| 409 |
overflow: auto; |
| 410 |
} |
| 411 |
} |
| 412 |
|
| 413 |
@each $breakpoint, $breakpoint-value in $pf-v6-c-toolbar--breakpoint-map { |
| 414 |
$breakpoint-name: ""; |
| 415 |
|
| 416 |
@if $breakpoint != "base" { |
| 417 |
$breakpoint-name: -on-#{$breakpoint}; |
| 418 |
} |
| 419 |
|
| 420 |
@include pf-v6-apply-breakpoint($breakpoint) { |
| 421 |
.#{$toolbar}__group, |
| 422 |
.#{$toolbar}__item { |
| 423 |
&.pf-m-align-start#{$breakpoint-name} { |
| 424 |
margin-inline-start: 0; |
| 425 |
} |
| 426 |
|
| 427 |
&.pf-m-align-center#{$breakpoint-name} { |
| 428 |
margin-inline-start: auto; |
| 429 |
margin-inline-end: auto; |
| 430 |
} |
| 431 |
|
| 432 |
&.pf-m-align-end#{$breakpoint-name} { |
| 433 |
margin-block-start: var(--#{$toolbar}--child--m-align-end--MarginBlockStart, 0); |
| 434 |
margin-inline-start: var(--#{$toolbar}--child--m-align-end--MarginInlineStart, auto); |
| 435 |
} |
| 436 |
|
| 437 |
&.pf-m-flex-grow#{$breakpoint-name} { |
| 438 |
flex-grow: 1; |
| 439 |
} |
| 440 |
|
| 441 |
@each $alignment in $pf-v6-c-toolbar--align-items--alignments { |
| 442 |
&.pf-m-align-self-#{$alignment}#{$breakpoint-name} { |
| 443 |
align-self: #{$alignment}; |
| 444 |
} |
| 445 |
} |
| 446 |
} |
| 447 |
|
| 448 |
// - Toolbar inset |
| 449 |
.#{$toolbar} { |
| 450 |
@each $inset, $inset-value in $pf-v6-c-toolbar--inset-map { |
| 451 |
&.pf-m-inset-#{$inset}#{$breakpoint-name} { |
| 452 |
padding-inline: #{$inset-value}; |
| 453 |
} |
| 454 |
} |
| 455 |
} |
| 456 |
|
| 457 |
// - Toolbar group - Toolbar item - Toolbar content - Toolbar content section |
| 458 |
.#{$toolbar}__group, |
| 459 |
.#{$toolbar}__item, |
| 460 |
.#{$toolbar}__content-section { |
| 461 |
&.pf-m-wrap#{$breakpoint-name} { |
| 462 |
flex-wrap: wrap; |
| 463 |
} |
| 464 |
|
| 465 |
&.pf-m-nowrap#{$breakpoint-name} { |
| 466 |
flex-wrap: nowrap; |
| 467 |
} |
| 468 |
|
| 469 |
@each $alignment in $pf-v6-c-toolbar--align-items--alignments { |
| 470 |
&.pf-m-align-items-#{$alignment}#{$breakpoint-name} { |
| 471 |
align-items: #{$alignment}; |
| 472 |
} |
| 473 |
} |
| 474 |
|
| 475 |
@each $gap, $gap-value in $pf-v6-c-toolbar--spacer-map { |
| 476 |
&.pf-m-gap-#{$gap}#{$breakpoint-name} { |
| 477 |
gap: #{$gap-value}; |
| 478 |
} |
| 479 |
} |
| 480 |
|
| 481 |
// Row and column gap modifiers |
| 482 |
@each $spacer, $spacer-value in $pf-v6-c-toolbar--spacer-map { |
| 483 |
&.pf-m-column-gap-#{$spacer}#{$breakpoint-name} { |
| 484 |
column-gap: #{$spacer-value}; |
| 485 |
} |
| 486 |
|
| 487 |
&.pf-m-row-gap-#{$spacer}#{$breakpoint-name} { |
| 488 |
row-gap: #{$spacer-value}; |
| 489 |
} |
| 490 |
} |
| 491 |
} |
| 492 |
|
| 493 |
// - Toolbar toggle group |
| 494 |
.#{$toolbar}__group:where(.pf-m-toggle-group) { |
| 495 |
&.pf-m-show#{$breakpoint-name} { |
| 496 |
.#{$toolbar}__group, |
| 497 |
.#{$toolbar}__item { |
| 498 |
display: flex; |
| 499 |
flex: 0 1 auto; |
| 500 |
} |
| 501 |
|
| 502 |
.#{$toolbar}__toggle { |
| 503 |
display: none; |
| 504 |
} |
| 505 |
} |
| 506 |
|
| 507 |
&, // default value |
| 508 |
&.pf-m-hide#{$breakpoint-name} { |
| 509 |
.#{$toolbar}__group, |
| 510 |
.#{$toolbar}__item { |
| 511 |
display: none; |
| 512 |
} |
| 513 |
|
| 514 |
.#{$toolbar}__toggle { |
| 515 |
display: inline-flex; |
| 516 |
} |
| 517 |
} |
| 518 |
} |
| 519 |
} |
| 520 |
} |