| 1 |
// This file is for initial variable values. |
| 2 |
// All variables should have a valid css value, |
| 3 |
// and use !default so they can be overwritten. |
| 4 |
|
| 5 |
// `$pf-v6-global--concept--PropiertyCamelCase--modifier--state`] |
| 6 |
|
| 7 |
// Quickly modify global styling by enabling or disabling optional features. |
| 8 |
$pf-v6-global--enable-reset: true !default; |
| 9 |
$pf-v6-global--enable-normalize: true !default; |
| 10 |
$pf-v6-global--enable-fontawesome-cdn: false !default; |
| 11 |
|
| 12 |
// Patternfly uses the default root size of the browser, it assumes a 16px base |
| 13 |
// since most browser root size is 16. This variables is just to make the |
| 14 |
// transformation from px to rem. |
| 15 |
$pf-v6-global--font-size-root: 16 !default; // for fonts |
| 16 |
$pf-v6-global--space-size-root: 16 !default; // for spaces |
| 17 |
|
| 18 |
// Fontpath |
| 19 |
$pf-v6-global--font-path: "./assets/fonts" !default; |
| 20 |
|
| 21 |
// Iconpath |
| 22 |
// stylelint-disable-next-line scss/dollar-variable-pattern |
| 23 |
$fa-font-path: "./assets/fonts/webfonts" !default; |
| 24 |
|
| 25 |
// FontIcon path |
| 26 |
$pf-v6-global--fonticon-path: "./assets/pficon" !default; |
| 27 |
|
| 28 |
// Image path |
| 29 |
$pf-v6-global--image-path: "./assets/images" !default; |
| 30 |
|
| 31 |
// Grid breakpoints |
| 32 |
// Note that these duplicate and should match breakpoint tokens |
| 33 |
$pf-v6-global--breakpoint--xs: 0 !default; |
| 34 |
$pf-v6-global--breakpoint--sm: 36rem !default; // 576px |
| 35 |
$pf-v6-global--breakpoint--md: 48rem !default; // 768px |
| 36 |
$pf-v6-global--breakpoint--lg: 62rem !default; // 992px |
| 37 |
$pf-v6-global--breakpoint--xl: 75rem !default; // 1200px |
| 38 |
$pf-v6-global--breakpoint--2xl: 90.625rem !default; // 1450px |
| 39 |
|
| 40 |
// Height breakpoints |
| 41 |
$pf-v6-global--height-breakpoint--sm: 0 !default; |
| 42 |
$pf-v6-global--height-breakpoint--md: 40rem !default; // 640px |
| 43 |
$pf-v6-global--height-breakpoint--lg: 48rem !default; // 768px |
| 44 |
$pf-v6-global--height-breakpoint--xl: 60rem !default; // 960px |
| 45 |
$pf-v6-global--height-breakpoint--2xl: 80rem !default; // 1280px |
| 46 |
|
| 47 |
// Semantic breakpoints |
| 48 |
$pf-v6-global--breakpoint--dock--desktop: $pf-v6-global--breakpoint--lg !default; |
| 49 |
|
| 50 |
// Global breakpoint map - used for @pf-grid-item-modifiers |
| 51 |
$pf-v6-global--breakpoint-map: ( |
| 52 |
"": null, |
| 53 |
"sm": "-on-sm", |
| 54 |
"md": "-on-md", |
| 55 |
"lg": "-on-lg", |
| 56 |
"xl": "-on-xl", |
| 57 |
"2xl": "-on-2xl" |
| 58 |
); |
| 59 |
|
| 60 |
// Global breakpoint list - used for @pf-v6-utility-builder |
| 61 |
$pf-v6-global--breakpoint-list: ( |
| 62 |
"sm", |
| 63 |
"md", |
| 64 |
"lg", |
| 65 |
"xl", |
| 66 |
"2xl" |
| 67 |
); |
| 68 |
|
| 69 |
// Global breakpoint name map - used for %pf-v6-hidden-visible |
| 70 |
$pf-v6-global--breakpoint-name-map: ( |
| 71 |
"sm": $pf-v6-global--breakpoint--sm, |
| 72 |
"md": $pf-v6-global--breakpoint--md, |
| 73 |
"lg": $pf-v6-global--breakpoint--lg, |
| 74 |
"xl": $pf-v6-global--breakpoint--xl, |
| 75 |
"2xl": $pf-v6-global--breakpoint--2xl |
| 76 |
); |
| 77 |
|
| 78 |
// Global breakpoint name map - used for %pf-v6-hidden-visible |
| 79 |
$pf-v6-global--height-breakpoint-name-map: ( |
| 80 |
"sm": $pf-v6-global--height-breakpoint--sm, |
| 81 |
"md": $pf-v6-global--height-breakpoint--md, |
| 82 |
"lg": $pf-v6-global--height-breakpoint--lg, |
| 83 |
"xl": $pf-v6-global--height-breakpoint--xl, |
| 84 |
"2xl": $pf-v6-global--height-breakpoint--2xl |
| 85 |
); |
| 86 |
|
| 87 |
// Spacer properties |
| 88 |
$pf-v6-global--spacer-properties-map: ( |
| 89 |
"m": "margin", |
| 90 |
"mt": "margin-block-start", |
| 91 |
"mr": "margin-inline-end", |
| 92 |
"mb": "margin-block-end", |
| 93 |
"ml": "margin-inline-start", |
| 94 |
"mx": null, |
| 95 |
"my": null, |
| 96 |
"p": "padding", |
| 97 |
"pt": "padding-block-start", |
| 98 |
"pr": "padding-inline-end", |
| 99 |
"pb": "padding-block-end", |
| 100 |
"pl": "padding-inline-start", |
| 101 |
"px": null, |
| 102 |
"py": null |
| 103 |
); |
| 104 |
|
| 105 |
// Spacer values |
| 106 |
$pf-v6-global--spacer-map: ( |
| 107 |
"auto": "auto", |
| 108 |
"0": 0, |
| 109 |
"xs": "var(--pf-t--global--spacer--xs)", |
| 110 |
"sm": "var(--pf-t--global--spacer--sm)", |
| 111 |
"md": "var(--pf-t--global--spacer--md)", |
| 112 |
"lg": "var(--pf-t--global--spacer--lg)", |
| 113 |
"xl": "var(--pf-t--global--spacer--xl)", |
| 114 |
"2xl": "var(--pf-t--global--spacer--2xl)", |
| 115 |
"3xl": "var(--pf-t--global--spacer--3xl)", |
| 116 |
"4xl": "var(--pf-t--global--spacer--4xl)" |
| 117 |
); |