@patternfly/patternfly 6.0.0-alpha.119 → 6.0.0-alpha.120

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.
Files changed (270) hide show
  1. package/assets/fontawesome/_animated.scss +1 -0
  2. package/assets/fontawesome/_bordered-pulled.scss +1 -0
  3. package/assets/fontawesome/_core.scss +2 -0
  4. package/assets/fontawesome/_fixed-width.scss +2 -0
  5. package/assets/fontawesome/_icons.scss +1 -0
  6. package/assets/fontawesome/_index.scss +12 -0
  7. package/assets/fontawesome/_larger.scss +4 -2
  8. package/assets/fontawesome/_list.scss +4 -2
  9. package/assets/fontawesome/_rotated-flipped.scss +2 -0
  10. package/assets/fontawesome/_screen-reader.scss +1 -0
  11. package/assets/fontawesome/_stacked.scss +3 -1
  12. package/assets/fontawesome/_variables.scss +3 -2
  13. package/assets/fontawesome/fontawesome.scss +12 -12
  14. package/assets/pficon/pficon.scss +3 -0
  15. package/base/_index.scss +10 -0
  16. package/base/{_globals.scss → normalize.scss} +5 -35
  17. package/base/patternfly-common.scss +50 -2
  18. package/base/patternfly-fa-icons.css +1 -1
  19. package/base/patternfly-fa-icons.scss +35 -2
  20. package/base/patternfly-fonts.scss +49 -2
  21. package/base/patternfly-pf-icons.scss +1 -2
  22. package/base/patternfly-svg-icons.css +5 -0
  23. package/base/{_svg-icons.scss → patternfly-svg-icons.scss} +2 -0
  24. package/base/patternfly-variables.scss +14 -2
  25. package/base/reset.scss +33 -0
  26. package/base/tokens/_index.scss +6 -0
  27. package/components/AboutModalBox/about-modal-box.css +8 -8
  28. package/components/AboutModalBox/about-modal-box.scss +3 -4
  29. package/components/Accordion/accordion.css +1 -1
  30. package/components/Accordion/accordion.scss +8 -8
  31. package/components/ActionList/action-list.css +1 -1
  32. package/components/ActionList/action-list.scss +3 -1
  33. package/components/Alert/alert-group.scss +1 -1
  34. package/components/Alert/alert.css +1 -1
  35. package/components/Alert/alert.scss +3 -3
  36. package/components/AppLauncher/app-launcher.scss +1 -3
  37. package/components/Avatar/avatar.css +1 -1
  38. package/components/Avatar/avatar.scss +3 -2
  39. package/components/BackToTop/back-to-top.css +2 -2
  40. package/components/BackToTop/back-to-top.scss +2 -2
  41. package/components/Backdrop/backdrop.css +1 -2
  42. package/components/Backdrop/backdrop.scss +2 -3
  43. package/components/BackgroundImage/background-image.css +1 -2
  44. package/components/BackgroundImage/background-image.scss +2 -3
  45. package/components/Badge/badge.css +1 -1
  46. package/components/Badge/badge.scss +2 -2
  47. package/components/Banner/banner.css +2 -2
  48. package/components/Banner/banner.scss +3 -3
  49. package/components/Brand/brand.scss +2 -1
  50. package/components/Breadcrumb/breadcrumb.css +1 -2
  51. package/components/Breadcrumb/breadcrumb.scss +3 -2
  52. package/components/Button/button.css +1 -2
  53. package/components/Button/button.scss +3 -2
  54. package/components/CalendarMonth/calendar-month.css +1 -2
  55. package/components/CalendarMonth/calendar-month.scss +5 -5
  56. package/components/Card/card.css +1 -2
  57. package/components/Card/card.scss +4 -5
  58. package/components/Check/check.css +1 -2
  59. package/components/Check/check.scss +2 -3
  60. package/components/Chip/chip-group.scss +1 -1
  61. package/components/Chip/chip.scss +1 -1
  62. package/components/ClipboardCopy/clipboard-copy.css +1 -2
  63. package/components/ClipboardCopy/clipboard-copy.scss +2 -3
  64. package/components/CodeBlock/code-block.css +1 -1
  65. package/components/CodeBlock/code-block.scss +2 -2
  66. package/components/CodeEditor/code-editor.css +1 -1
  67. package/components/CodeEditor/code-editor.scss +2 -2
  68. package/components/Content/content.css +1 -2
  69. package/components/Content/content.scss +2 -3
  70. package/components/ContextSelector/context-selector.scss +1 -1
  71. package/components/DataList/data-list-grid.scss +2 -0
  72. package/components/DataList/data-list.css +3 -3
  73. package/components/DataList/data-list.scss +5 -5
  74. package/components/DatePicker/date-picker.css +1 -2
  75. package/components/DatePicker/date-picker.scss +2 -3
  76. package/components/DescriptionList/description-list-order.scss +2 -0
  77. package/components/DescriptionList/description-list.css +7 -7
  78. package/components/DescriptionList/description-list.scss +5 -4
  79. package/components/Divider/divider.css +1 -2
  80. package/components/Divider/divider.scss +3 -3
  81. package/components/DragDrop/drag-drop.css +2 -2
  82. package/components/DragDrop/drag-drop.scss +3 -3
  83. package/components/Drawer/drawer.css +3 -6
  84. package/components/Drawer/drawer.scss +14 -13
  85. package/components/Dropdown/dropdown.scss +2 -1
  86. package/components/DualListSelector/dual-list-selector.css +1 -1
  87. package/components/DualListSelector/dual-list-selector.scss +4 -3
  88. package/components/EmptyState/empty-state.css +1 -1
  89. package/components/EmptyState/empty-state.scss +2 -2
  90. package/components/ExpandableSection/expandable-section.css +1 -1
  91. package/components/ExpandableSection/expandable-section.scss +7 -9
  92. package/components/FileUpload/file-upload.css +1 -2
  93. package/components/FileUpload/file-upload.scss +2 -3
  94. package/components/Form/form.css +1 -2
  95. package/components/Form/form.scss +4 -4
  96. package/components/FormControl/form-control.css +1 -2
  97. package/components/FormControl/form-control.scss +6 -5
  98. package/components/HelperText/helper-text.css +1 -1
  99. package/components/HelperText/helper-text.scss +4 -3
  100. package/components/Hint/hint.css +1 -1
  101. package/components/Hint/hint.scss +2 -2
  102. package/components/Icon/icon.css +1 -2
  103. package/components/Icon/icon.scss +2 -3
  104. package/components/InlineEdit/inline-edit.css +1 -2
  105. package/components/InlineEdit/inline-edit.scss +2 -3
  106. package/components/InputGroup/input-group.css +1 -2
  107. package/components/InputGroup/input-group.scss +2 -3
  108. package/components/JumpLinks/jump-links.css +1 -2
  109. package/components/JumpLinks/jump-links.scss +3 -3
  110. package/components/Label/label-group.css +1 -2
  111. package/components/Label/label-group.scss +2 -3
  112. package/components/Label/label.css +1 -2
  113. package/components/Label/label.scss +2 -4
  114. package/components/List/list.scss +1 -1
  115. package/components/LogViewer/log-viewer.scss +1 -1
  116. package/components/Login/login.css +9 -9
  117. package/components/Login/login.scss +2 -2
  118. package/components/Masthead/masthead.css +1 -2
  119. package/components/Masthead/masthead.scss +3 -2
  120. package/components/Menu/menu.css +1 -2
  121. package/components/Menu/menu.scss +3 -2
  122. package/components/MenuToggle/menu-toggle.css +1 -2
  123. package/components/MenuToggle/menu-toggle.scss +2 -3
  124. package/components/ModalBox/modal-box.css +2 -2
  125. package/components/ModalBox/modal-box.scss +3 -3
  126. package/components/MultipleFileUpload/multiple-file-upload.css +1 -2
  127. package/components/MultipleFileUpload/multiple-file-upload.scss +2 -3
  128. package/components/Nav/nav.css +1 -2
  129. package/components/Nav/nav.scss +3 -2
  130. package/components/NotificationBadge/notification-badge.css +1 -1
  131. package/components/NotificationBadge/notification-badge.scss +2 -2
  132. package/components/NotificationDrawer/notification-drawer.css +1 -2
  133. package/components/NotificationDrawer/notification-drawer.scss +2 -3
  134. package/components/NumberInput/number-input.css +1 -2
  135. package/components/NumberInput/number-input.scss +2 -3
  136. package/components/OptionsMenu/options-menu.scss +1 -1
  137. package/components/OverflowMenu/overflow-menu.css +1 -1
  138. package/components/OverflowMenu/overflow-menu.scss +3 -1
  139. package/components/Page/page.css +5 -5
  140. package/components/Page/page.scss +3 -2
  141. package/components/Pagination/pagination.css +3 -6
  142. package/components/Pagination/pagination.scss +3 -3
  143. package/components/Panel/panel.css +1 -2
  144. package/components/Panel/panel.scss +2 -3
  145. package/components/Popover/popover.scss +1 -1
  146. package/components/Progress/progress.css +1 -2
  147. package/components/Progress/progress.scss +5 -6
  148. package/components/ProgressStepper/progress-stepper.css +2 -4
  149. package/components/ProgressStepper/progress-stepper.scss +3 -3
  150. package/components/Radio/radio.css +1 -2
  151. package/components/Radio/radio.scss +2 -3
  152. package/components/Select/select.scss +1 -1
  153. package/components/Sidebar/sidebar.css +1 -2
  154. package/components/Sidebar/sidebar.scss +5 -5
  155. package/components/SimpleList/simple-list.css +1 -1
  156. package/components/SimpleList/simple-list.scss +3 -3
  157. package/components/Skeleton/skeleton.css +1 -2
  158. package/components/Skeleton/skeleton.scss +2 -3
  159. package/components/SkipToContent/skip-to-content.css +1 -1
  160. package/components/SkipToContent/skip-to-content.scss +2 -2
  161. package/components/Slider/slider.css +1 -2
  162. package/components/Slider/slider.scss +12 -13
  163. package/components/Spinner/spinner.css +1 -2
  164. package/components/Spinner/spinner.scss +4 -5
  165. package/components/Switch/switch.css +1 -2
  166. package/components/Switch/switch.scss +2 -3
  167. package/components/TabContent/tab-content.css +1 -2
  168. package/components/TabContent/tab-content.scss +3 -3
  169. package/components/Table/table-grid.scss +2 -0
  170. package/components/Table/table-scrollable.css +1 -2
  171. package/components/Table/table-scrollable.scss +3 -3
  172. package/components/Table/table-tree-view.css +1 -2
  173. package/components/Table/table-tree-view.scss +3 -2
  174. package/components/Table/table.css +1 -2
  175. package/components/Table/table.scss +3 -2
  176. package/components/Tabs/tabs.css +1 -2
  177. package/components/Tabs/tabs.scss +7 -7
  178. package/components/TextInputGroup/text-input-group.css +1 -2
  179. package/components/TextInputGroup/text-input-group.scss +4 -4
  180. package/components/Tile/tile.css +1 -2
  181. package/components/Tile/tile.scss +2 -3
  182. package/components/Timestamp/timestamp.css +1 -1
  183. package/components/Timestamp/timestamp.scss +4 -3
  184. package/components/Title/title.css +1 -1
  185. package/components/Title/title.scss +3 -3
  186. package/components/ToggleGroup/toggle-group.css +1 -2
  187. package/components/ToggleGroup/toggle-group.scss +3 -4
  188. package/components/Toolbar/toolbar.css +1 -2
  189. package/components/Toolbar/toolbar.scss +3 -2
  190. package/components/Tooltip/tooltip.css +1 -1
  191. package/components/Tooltip/tooltip.scss +5 -4
  192. package/components/TreeView/tree-view.css +1 -2
  193. package/components/TreeView/tree-view.scss +3 -3
  194. package/components/Truncate/truncate.css +1 -2
  195. package/components/Truncate/truncate.scss +2 -3
  196. package/components/Wizard/wizard.css +2 -4
  197. package/components/Wizard/wizard.scss +2 -3
  198. package/components/_index.css +25850 -0
  199. package/components/_index.scss +91 -0
  200. package/layouts/Bullseye/bullseye.css +1 -2
  201. package/layouts/Bullseye/bullseye.scss +3 -2
  202. package/layouts/Flex/flex.css +1 -2
  203. package/layouts/Flex/flex.scss +5 -4
  204. package/layouts/Gallery/gallery.css +1 -2
  205. package/layouts/Gallery/gallery.scss +3 -2
  206. package/layouts/Grid/grid.css +1 -2
  207. package/layouts/Grid/grid.scss +3 -2
  208. package/layouts/Level/level.css +1 -2
  209. package/layouts/Level/level.scss +3 -2
  210. package/layouts/Split/split.css +1 -2
  211. package/layouts/Split/split.scss +3 -2
  212. package/layouts/Stack/stack.css +1 -2
  213. package/layouts/Stack/stack.scss +3 -2
  214. package/layouts/_index.css +3454 -0
  215. package/layouts/_index.scss +8 -0
  216. package/package.json +1 -2
  217. package/patternfly-addons.scss +2 -12
  218. package/patternfly-base-no-globals.css +1156 -1156
  219. package/patternfly-base-no-globals.scss +5 -3
  220. package/patternfly-base.css +1251 -1251
  221. package/patternfly-base.scss +2 -5
  222. package/patternfly-charts.scss +1 -1
  223. package/patternfly-no-globals.css +1278 -1341
  224. package/patternfly-no-globals.scss +5 -4
  225. package/patternfly.css +1374 -1437
  226. package/patternfly.min.css +1 -1
  227. package/patternfly.min.css.map +1 -1
  228. package/patternfly.scss +3 -4
  229. package/sass-utilities/_index.scss +6 -0
  230. package/sass-utilities/functions.scss +10 -4
  231. package/sass-utilities/mixins.scss +9 -7
  232. package/sass-utilities/{component-namespaces.scss → namespaces-components.scss} +3 -0
  233. package/sass-utilities/{layout-namespaces.scss → namespaces-layouts.scss} +3 -1
  234. package/sass-utilities/scss-variables.scss +0 -2
  235. package/utilities/Accessibility/accessibility.scss +2 -0
  236. package/utilities/Alignment/alignment.scss +2 -0
  237. package/utilities/BackgroundColor/{BackgroundColor.scss → background-color.scss} +1 -4
  238. package/utilities/BoxShadow/box-shadow.scss +2 -1
  239. package/utilities/Display/display.scss +2 -1
  240. package/utilities/Flex/flex.scss +2 -1
  241. package/utilities/Float/float.scss +4 -4
  242. package/utilities/Sizing/sizing.scss +2 -0
  243. package/utilities/Spacing/spacing.scss +2 -2
  244. package/utilities/Text/text.scss +2 -1
  245. package/utilities/_index.css +7777 -0
  246. package/utilities/_index.scss +10 -0
  247. package/base/_base.scss +0 -2
  248. package/base/_common.scss +0 -50
  249. package/base/_fa-icons.scss +0 -33
  250. package/base/_fonts.scss +0 -48
  251. package/base/_icons.scss +0 -3
  252. package/base/_pficons.scss +0 -2
  253. package/base/_variables.scss +0 -14
  254. package/base/patternfly-globals.css +0 -116
  255. package/base/patternfly-globals.scss +0 -2
  256. package/base/patternfly-icons.css +0 -4728
  257. package/base/patternfly-icons.scss +0 -2
  258. package/components/_all.scss +0 -91
  259. package/layouts/_all.scss +0 -7
  260. package/sass-utilities/_all.scss +0 -7
  261. package/sass-utilities/div.import.scss +0 -3
  262. package/sass-utilities/div.scss +0 -4
  263. /package/base/tokens/{_tokens-charts.scss → tokens-charts.scss} +0 -0
  264. /package/base/tokens/{_tokens-dark.scss → tokens-dark.scss} +0 -0
  265. /package/base/tokens/{_tokens-default.scss → tokens-default.scss} +0 -0
  266. /package/base/tokens/{_tokens-font.scss → tokens-font.scss} +0 -0
  267. /package/base/tokens/{_tokens-palette.scss → tokens-palette.scss} +0 -0
  268. /package/base/tokens/{_workspace-overrides.scss → workspace-overrides.scss} +0 -0
  269. /package/sass-utilities/{_init.scss → init.scss} +0 -0
  270. /package/utilities/BackgroundColor/{BackgroundColor.css → background-color.css} +0 -0
@@ -1,5 +1,6 @@
1
1
  // Animated icons
2
2
  // --------------------------
3
+ @use './variables.scss' as *;
3
4
 
4
5
  .#{$fa-css-prefix}-spin {
5
6
  animation: fa-spin 2s infinite linear;
@@ -1,5 +1,6 @@
1
1
  // Bordered & pulled
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
3
4
 
4
5
  .#{$fa-css-prefix}-border {
5
6
  border: solid .08em $fa-border-color;
@@ -1,5 +1,7 @@
1
1
  // Base class definition
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
4
+ @use './mixins.scss' as *;
3
5
 
4
6
  .#{$fa-css-prefix},
5
7
  .fas,
@@ -1,5 +1,7 @@
1
1
  // Fixed width icons
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
4
+
3
5
  .#{$fa-css-prefix}-fw {
4
6
  text-align: center;
5
7
  width: $fa-fw-width;
@@ -1,5 +1,6 @@
1
1
  // Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
2
2
  // readers do not read off random characters that represent icons
3
+ @use './variables.scss' as *;
3
4
 
4
5
  .#{$fa-css-prefix}-500px:before { content: fa-content($fa-var-500px); }
5
6
  .#{$fa-css-prefix}-accessible-icon:before { content: fa-content($fa-var-accessible-icon); }
@@ -0,0 +1,12 @@
1
+ @forward 'variables';
2
+ @forward 'mixins';
3
+ @forward 'core';
4
+ @forward 'larger';
5
+ @forward 'fixed-width';
6
+ @forward 'list';
7
+ @forward 'bordered-pulled';
8
+ @forward 'animated';
9
+ @forward 'rotated-flipped';
10
+ @forward 'stacked';
11
+ @forward 'icons';
12
+ @forward 'screen-reader';
@@ -1,10 +1,12 @@
1
1
  // Icon sizes
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
4
+ @use 'sass:math';
3
5
 
4
6
  // makes the font 33% larger relative to the icon container
5
7
  .#{$fa-css-prefix}-lg {
6
- font-size: div(4em, 3);
7
- line-height: div(3em, 4);
8
+ font-size: math.div(4em, 3);
9
+ line-height: math.div(3em, 4);
8
10
  vertical-align: -.0667em;
9
11
  }
10
12
 
@@ -1,16 +1,18 @@
1
1
  // List icons
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
4
+ @use 'sass:math';
3
5
 
4
6
  .#{$fa-css-prefix}-ul {
5
7
  list-style-type: none;
6
- margin-left: div($fa-li-width * 5, 4);
8
+ margin-left: math.div($fa-li-width * 5, 4);
7
9
  padding-left: 0;
8
10
 
9
11
  > li { position: relative; }
10
12
  }
11
13
 
12
14
  .#{$fa-css-prefix}-li {
13
- left: -$fa-li-width;
15
+ left: -#{$fa-li-width};
14
16
  position: absolute;
15
17
  text-align: center;
16
18
  width: $fa-li-width;
@@ -1,5 +1,7 @@
1
1
  // Rotated & flipped icons
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
4
+ @use './mixins.scss' as *;
3
5
 
4
6
  .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); }
5
7
  .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }
@@ -1,5 +1,6 @@
1
1
  // Screen readers
2
2
  // -------------------------
3
+ @use './mixins.scss' as *;
3
4
 
4
5
  .sr-only { @include sr-only; }
5
6
  .sr-only-focusable { @include sr-only-focusable; }
@@ -1,5 +1,7 @@
1
1
  // Stacked icons
2
2
  // -------------------------
3
+ @use './variables.scss' as *;
4
+ @use 'sass:math';
3
5
 
4
6
  .#{$fa-css-prefix}-stack {
5
7
  display: inline-block;
@@ -7,7 +9,7 @@
7
9
  line-height: 2em;
8
10
  position: relative;
9
11
  vertical-align: middle;
10
- width: ($fa-fw-width*2);
12
+ width: math.div($fa-fw-width, 2);
11
13
  }
12
14
 
13
15
  .#{$fa-css-prefix}-stack-1x,
@@ -1,14 +1,15 @@
1
1
  // Variables
2
2
  // --------------------------
3
+ @use 'sass:math';
3
4
 
4
5
  $fa-font-path: "../webfonts" !default;
5
6
  $fa-font-size-base: 16px !default;
6
- $fa-css-prefix: fa !default;
7
+ $fa-css-prefix: 'fa' !default;
7
8
  $fa-version: "5.6.3" !default;
8
9
  $fa-border-color: #eee !default;
9
10
  $fa-inverse: #fff !default;
10
11
  $fa-li-width: 2em !default;
11
- $fa-fw-width: div(20em, 16);
12
+ $fa-fw-width: math.div(20em, 16);
12
13
 
13
14
  // Convenience function used to set content property
14
15
  @function fa-content($fa-var) {
@@ -1,12 +1,12 @@
1
- @import 'variables';
2
- @import 'mixins';
3
- @import 'core';
4
- @import 'larger';
5
- @import 'fixed-width';
6
- @import 'list';
7
- @import 'bordered-pulled';
8
- @import 'animated';
9
- @import 'rotated-flipped';
10
- @import 'stacked';
11
- @import 'icons';
12
- @import 'screen-reader';
1
+ @forward 'variables';
2
+ @forward 'mixins';
3
+ @forward 'core';
4
+ @forward 'larger';
5
+ @forward 'fixed-width';
6
+ @forward 'list';
7
+ @forward 'bordered-pulled';
8
+ @forward 'animated';
9
+ @forward 'rotated-flipped';
10
+ @forward 'stacked';
11
+ @forward 'icons';
12
+ @forward 'screen-reader';
@@ -1,3 +1,6 @@
1
+ @use '../../sass-utilities/scss-variables.scss' as *;
2
+ @use '../../sass-utilities/init.scss' as *;
3
+
1
4
  @font-face {
2
5
  font-family: 'pf-v6-pficon';
3
6
  src: url('#{$pf-v6-global--fonticon-path}/pf-v6-pficon.woff2') format('woff2');
@@ -0,0 +1,10 @@
1
+ // @use '../sass-utilities' as *;
2
+
3
+ @forward './normalize';
4
+ @forward './reset';
5
+ @forward './patternfly-common';
6
+ @forward './patternfly-fonts';
7
+ @forward './patternfly-fa-icons';
8
+ @forward './patternfly-pf-icons';
9
+ @forward './patternfly-svg-icons';
10
+ @forward './patternfly-variables';
@@ -1,34 +1,4 @@
1
- // Reset - based on minireset.css v0.0.3 | MIT License github.com/jgthms/minireset.css
2
- @if $pf-v6-global--enable-reset {
3
- :where(
4
- html,
5
- body,
6
- p,
7
- ol,
8
- ul,
9
- li,
10
- dl,
11
- dt,
12
- dd,
13
- blockquote,
14
- figure,
15
- fieldset,
16
- legend,
17
- textarea,
18
- pre,
19
- iframe,
20
- hr,
21
- h1,
22
- h2,
23
- h3,
24
- h4,
25
- h5,
26
- h6
27
- ) {
28
- padding: 0;
29
- margin: 0;
30
- }
31
- }
1
+ @use '../sass-utilities' as *;
32
2
 
33
3
  // Normalize
34
4
  @if $pf-v6-global--enable-normalize {
@@ -41,7 +11,7 @@
41
11
  :where(
42
12
  html,
43
13
  body
44
- ) {
14
+ ) {
45
15
  height: 100%;
46
16
  }
47
17
 
@@ -60,7 +30,7 @@
60
30
  h4,
61
31
  h5,
62
32
  h6
63
- ) {
33
+ ) {
64
34
  font-size: 100%;
65
35
  font-weight: var(--pf-t--global--font--weight--body);
66
36
  }
@@ -75,7 +45,7 @@
75
45
  optgroup,
76
46
  select,
77
47
  textarea
78
- ) {
48
+ ) {
79
49
  margin: 0;
80
50
  font-family: inherit;
81
51
  font-size: 100%;
@@ -90,7 +60,7 @@
90
60
  object,
91
61
  audio,
92
62
  video
93
- ) {
63
+ ) {
94
64
  max-width: 100%;
95
65
  height: auto;
96
66
  }
@@ -1,2 +1,50 @@
1
- @import "../sass-utilities/all";
2
- @import "common";
1
+ @use '../sass-utilities' as *;
2
+
3
+ .#{$pf-prefix}screen-reader {
4
+ @include pf-v6-u-screen-reader; // for use with assistive technologies
5
+
6
+ &.pf-m-full-size {
7
+ width: 100%;
8
+ height: 100%;
9
+ }
10
+
11
+ &.pf-m-absolute {
12
+ position: absolute;
13
+ }
14
+ }
15
+
16
+ .#{$pf-prefix}m-tabular-nums {
17
+ font-variant-numeric: tabular-nums;
18
+ }
19
+
20
+ // Variable font opt-in
21
+ .#{$pf-prefix}m-legacy-font {
22
+ --pf-t--global--font--family--body: var(--pf-t--global--font--family--body--legacy);
23
+ --pf-t--global--font--family--heading: var(--pf-t--global--font--family--heading--legacy);
24
+ --pf-t--global--font--family--mono: var(--pf-t--global--font--family--mono--legacy);
25
+ --pf-t--global--font--weight--body: var(--pf-t--global--font--weight--body--legacy);
26
+ --pf-t--global--font--weight--body--bold: var(--pf-t--global--font--weight--body--bold--legacy);
27
+ --pf-t--global--font--weight--heading: var(--pf-t--global--font--weight--heading--legacy);
28
+ --pf-t--global--font--weight--heading--bold: var(--pf-t--global--font--weight--heading--bold--legacy);
29
+ }
30
+
31
+ // RTL helpers
32
+
33
+ // Sets a block to RTL
34
+ .#{$pf-prefix}m-dir-rtl {
35
+ @include pf-v6-set-inverse;
36
+
37
+ direction: rtl;
38
+ }
39
+
40
+ // Sets a block to LTR
41
+ .#{$pf-prefix}m-dir-ltr {
42
+ @include pf-v6-set-inverse(false);
43
+
44
+ direction: ltr;
45
+ }
46
+
47
+ // Mirrors/flips something horizontally/inline in RTL
48
+ .#{$pf-prefix}m-mirror-inline-rtl {
49
+ @include pf-v6-mirror-inline-on-rtl;
50
+ }
@@ -147,7 +147,7 @@
147
147
  line-height: 2em;
148
148
  position: relative;
149
149
  vertical-align: middle;
150
- width: 2.5em;
150
+ width: 0.625em;
151
151
  }
152
152
  * .fa-stack-1x,
153
153
  * .fa-stack-2x {
@@ -1,2 +1,35 @@
1
- @import "../sass-utilities/all";
2
- @import "fa-icons";
1
+ // Font Awesome 5 icons https://fontawesome.com
2
+ @use '../sass-utilities' as *;
3
+
4
+ %pf-fa-local {
5
+ @import "../assets/fontawesome/fontawesome";
6
+ }
7
+
8
+ @if not($pf-v6-global--disable-fontawesome) {
9
+ @if $pf-v6-global--enable-fontawesome-cdn {
10
+ // stylelint-disable no-invalid-position-at-import-rule
11
+ @import "https://use.fontawesome.com/releases/v5.7.2/css/solid.css";
12
+ @import "https://use.fontawesome.com/releases/v5.7.2/css/fontawesome.css";
13
+ // stylelint-enable no-invalid-position-at-import-rule
14
+ } @else {
15
+ @font-face {
16
+ font-family: "Font Awesome 5 Free";
17
+ font-style: normal;
18
+ font-weight: 900;
19
+ src:
20
+ url("#{$fa-font-path}/fa-solid-900.woff2") format("woff2");
21
+ }
22
+
23
+ // stylelint-disable
24
+ .fa,
25
+ .fas {
26
+ font-family: "Font Awesome 5 Free";
27
+ font-weight: 900;
28
+ }
29
+ // stylelint-enable
30
+
31
+ * {
32
+ @extend %pf-fa-local;
33
+ }
34
+ }
35
+ }
@@ -1,2 +1,49 @@
1
- @import "../sass-utilities/all";
2
- @import "fonts";
1
+ @use '../sass-utilities' as *;
2
+
3
+ @font-face {
4
+ font-family: RedHatTextVF;
5
+ font-style: normal;
6
+ font-weight: 400 500;
7
+ src: url("#{$pf-v6-global--font-path}/RedHatText/RedHatTextVF.woff2") format("woff2-variations");
8
+ font-display: fallback;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: RedHatTextVF;
13
+ font-style: italic;
14
+ font-weight: 400 500;
15
+ src: url("#{$pf-v6-global--font-path}/RedHatText/RedHatTextVF-Italic.woff2") format("woff2-variations");
16
+ font-display: fallback;
17
+ }
18
+
19
+ @font-face {
20
+ font-family: RedHatDisplayVF;
21
+ font-style: normal;
22
+ font-weight: 400 700;
23
+ src: url("#{$pf-v6-global--font-path}/RedHatDisplay/RedHatDisplayVF.woff2") format("woff2-variations");
24
+ font-display: fallback;
25
+ }
26
+
27
+ @font-face {
28
+ font-family: RedHatDisplayVF;
29
+ font-style: italic;
30
+ font-weight: 400 700;
31
+ src: url("#{$pf-v6-global--font-path}/RedHatDisplay/RedHatDisplayVF-Italic.woff2") format("woff2-variations");
32
+ font-display: fallback;
33
+ }
34
+
35
+ @font-face {
36
+ font-family: RedHatMonoVF;
37
+ font-style: normal;
38
+ font-weight: 400;
39
+ src: url("#{$pf-v6-global--font-path}/RedHatMono/RedHatMonoVF.woff2") format("woff2-variations");
40
+ font-display: fallback;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: RedHatMonoVF;
45
+ font-style: italic;
46
+ font-weight: 400;
47
+ src: url("#{$pf-v6-global--font-path}/RedHatMono/RedHatMonoVF-Italic.woff2") format("woff2-variations");
48
+ font-display: fallback;
49
+ }
@@ -1,2 +1 @@
1
- @import "../sass-utilities/all";
2
- @import "pficons";
1
+ @forward '../assets/pficon/pficon.scss';
@@ -0,0 +1,5 @@
1
+ .pf-v6-svg {
2
+ width: 1em;
3
+ height: 1em;
4
+ vertical-align: -0.125em;
5
+ }
@@ -1,3 +1,5 @@
1
+ @use '../sass-utilities' as *;
2
+
1
3
  .#{$pf-prefix}svg {
2
4
  // Default icon size
3
5
  width: 1em;
@@ -1,2 +1,14 @@
1
- @import "../sass-utilities/all";
2
- @import "variables";
1
+ @use '../sass-utilities' as *;
2
+ @use "./tokens/workspace-overrides" as *;
3
+ @use "./tokens/tokens-font" as *;
4
+ @use "./tokens/tokens-palette" as *;
5
+ @use "./tokens/tokens-default" as *;
6
+ @use "./tokens/tokens-dark" as *;
7
+
8
+ :where(:root) {
9
+ @include pf-v6-set-inverse(false);
10
+ }
11
+
12
+ @include pf-v6-rtl {
13
+ @include pf-v6-set-inverse;
14
+ }
@@ -0,0 +1,33 @@
1
+ @use '../sass-utilities/scss-variables.scss' as *;
2
+
3
+ // Reset - based on minireset.css v0.0.3 | MIT License github.com/jgthms/minireset.css
4
+ @if $pf-v6-global--enable-reset {
5
+ :where(
6
+ html,
7
+ body,
8
+ p,
9
+ ol,
10
+ ul,
11
+ li,
12
+ dl,
13
+ dt,
14
+ dd,
15
+ blockquote,
16
+ figure,
17
+ fieldset,
18
+ legend,
19
+ textarea,
20
+ pre,
21
+ iframe,
22
+ hr,
23
+ h1,
24
+ h2,
25
+ h3,
26
+ h4,
27
+ h5,
28
+ h6
29
+ ) {
30
+ padding: 0;
31
+ margin: 0;
32
+ }
33
+ }
@@ -0,0 +1,6 @@
1
+ @forward './workspace-overrides';
2
+ @forward './tokens-font';
3
+ @forward './tokens-palette';
4
+ @forward './tokens-default';
5
+ @forward './tokens-dark';
6
+ @forward './tokens-charts';
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-about-modal-box) {
2
2
  --pf-v6-c-about-modal-box--BackgroundImage: none;
3
3
  --pf-v6-c-about-modal-box--BackgroundColor: var(--pf-t--global--background--color--floating--default);
4
4
  --pf-v6-c-about-modal-box--BackgroundPosition: bottom right;
@@ -45,40 +45,40 @@
45
45
  --pf-v6-c-about-modal-box__content--sm--MarginBottom: var(--pf-t--global--spacer--2xl);
46
46
  --pf-v6-c-about-modal-box__content--sm--MarginLeft: var(--pf-t--global--spacer--3xl);
47
47
  }
48
- :where(.pf-v6-m-dir-rtl, [dir=rtl]) :root {
48
+ :where(.pf-v6-m-dir-rtl, [dir=rtl]) :where(:root, .pf-v6-c-about-modal-box) {
49
49
  --pf-v6-c-about-modal-box--BackgroundPosition: bottom left;
50
50
  }
51
51
 
52
52
  @media screen and (min-width: 576px) {
53
- :root {
53
+ :where(:root, .pf-v6-c-about-modal-box) {
54
54
  --pf-v6-c-about-modal-box__brand--PaddingRight: var(--pf-v6-c-about-modal-box__brand--sm--PaddingRight);
55
55
  --pf-v6-c-about-modal-box__brand--PaddingLeft: var(--pf-v6-c-about-modal-box__brand--sm--PaddingLeft);
56
56
  --pf-v6-c-about-modal-box__brand--PaddingBottom: var(--pf-v6-c-about-modal-box__brand--sm--PaddingBottom);
57
57
  }
58
58
  }
59
59
  @media only screen and (min-width: 576px) {
60
- :root {
60
+ :where(:root, .pf-v6-c-about-modal-box) {
61
61
  --pf-v6-c-about-modal-box__close--PaddingBottom: var(--pf-v6-c-about-modal-box__close--sm--PaddingBottom);
62
62
  }
63
63
  }
64
64
  @media only screen and (min-width: 992px) {
65
- :root {
65
+ :where(:root, .pf-v6-c-about-modal-box) {
66
66
  --pf-v6-c-about-modal-box__close--PaddingRight: var(--pf-v6-c-about-modal-box__close--lg--PaddingRight);
67
67
  }
68
68
  }
69
69
  @media only screen and (min-width: 576px) {
70
- :root {
70
+ :where(:root, .pf-v6-c-about-modal-box) {
71
71
  --pf-v6-c-about-modal-box__header--PaddingRight: var(--pf-v6-c-about-modal-box__header--sm--PaddingRight);
72
72
  --pf-v6-c-about-modal-box__header--PaddingLeft: var(--pf-v6-c-about-modal-box__header--sm--PaddingLeft);
73
73
  }
74
74
  }
75
75
  @media only screen and (min-width: 576px) {
76
- :root {
76
+ :where(:root, .pf-v6-c-about-modal-box) {
77
77
  --pf-v6-c-about-modal-box__strapline--PaddingTop: var(--pf-v6-c-about-modal-box__strapline--sm--PaddingTop);
78
78
  }
79
79
  }
80
80
  @media only screen and (min-width: 576px) {
81
- :root {
81
+ :where(:root, .pf-v6-c-about-modal-box) {
82
82
  --pf-v6-c-about-modal-box__content--MarginTop: var(--pf-v6-c-about-modal-box__content--sm--MarginTop);
83
83
  --pf-v6-c-about-modal-box__content--MarginRight: var(--pf-v6-c-about-modal-box__content--sm--MarginRight);
84
84
  --pf-v6-c-about-modal-box__content--MarginBottom: var(--pf-v6-c-about-modal-box__content--sm--MarginBottom);
@@ -1,7 +1,7 @@
1
- // @debug $about-modal-box; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root {
4
- // Component variables
3
+ :where(:root, .#{$about-modal-box}) {
4
+ // Component variables
5
5
  --#{$about-modal-box}--BackgroundImage: none;
6
6
  --#{$about-modal-box}--BackgroundColor: var(--pf-t--global--background--color--floating--default);
7
7
  --#{$about-modal-box}--BackgroundPosition: bottom right;
@@ -21,7 +21,6 @@
21
21
  $rtl-val: bottom left
22
22
  );
23
23
 
24
-
25
24
  // Brand
26
25
  --#{$about-modal-box}__brand--PaddingTop: var(--pf-t--global--spacer--2xl);
27
26
  --#{$about-modal-box}__brand--PaddingRight: var(--pf-t--global--spacer--xl);
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-accordion) {
2
2
  --pf-v6-c-accordion--BackgroundColor: var(--pf-t--global--background--color--primary--default);
3
3
  --pf-v6-c-accordion--RowGap: var(--pf-t--global--spacer--xs);
4
4
  --pf-v6-c-accordion__item--BorderRadius: var(--pf-t--global--border--radius--200);
@@ -1,6 +1,6 @@
1
- // @debug $accordion; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root {
3
+ :where(:root, .#{$accordion}) {
4
4
  // accordion
5
5
  --#{$accordion}--BackgroundColor: var(--pf-t--global--background--color--primary--default);
6
6
  --#{$accordion}--RowGap: var(--pf-t--global--spacer--xs);
@@ -27,11 +27,11 @@
27
27
  --#{$accordion}__toggle-text--Color: var(--pf-t--global--text--color--regular);
28
28
  --#{$accordion}__toggle-text--FontWeight: var(--pf-t--global--font--weight--body);
29
29
  --#{$accordion}__toggle--m-expanded__toggle-text--FontWeight: var(--pf-t--global--font--weight--body--bold);
30
-
30
+
31
31
  // accordion toggle icon
32
32
  --#{$accordion}__toggle-icon--Transition: .2s ease-in 0s;
33
33
  --#{$accordion}__toggle--m-expanded__toggle-icon--Rotate: 90deg;
34
-
34
+
35
35
  // accordion expandable content
36
36
  --#{$accordion}__expandable-content--MarginRight: var(--pf-t--global--spacer--md);
37
37
  --#{$accordion}__expandable-content--MarginBottom: var(--pf-t--global--spacer--md);
@@ -48,7 +48,7 @@
48
48
  --#{$accordion}__expandable-content-body--PaddingBottom: var(--pf-t--global--spacer--sm);
49
49
  --#{$accordion}__expandable-content-body--PaddingLeft: var(--pf-t--global--spacer--sm);
50
50
  --#{$accordion}__expandable-content-body--expandable-content-body--PaddingTop: 0;
51
-
51
+
52
52
  // large
53
53
  --#{$accordion}--m-display-lg__toggle--PaddingTop: var(--pf-t--global--spacer--md);
54
54
  --#{$accordion}--m-display-lg__toggle--PaddingRight: var(--pf-t--global--spacer--md);
@@ -61,7 +61,7 @@
61
61
  --#{$accordion}--m-display-lg__toggle--m-expanded__toggle-text--FontWeight: var(--pf-t--global--font--weight--heading--bold);
62
62
  --#{$accordion}--m-display-lg__expandable-content--FontSize: var(--pf-t--global--font--size--body--lg);
63
63
  --#{$accordion}--m-display-lg__expandable-content--Color: var(--pf-t--global--text--color--regular);
64
-
64
+
65
65
  // bordered
66
66
  --#{$accordion}--m-bordered--RowGap: 0;
67
67
  --#{$accordion}__item--m-bordered--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
@@ -105,11 +105,11 @@
105
105
 
106
106
  .#{$accordion}__item {
107
107
  border-radius: var(--#{$accordion}__item--BorderRadius);
108
-
108
+
109
109
  &.pf-m-expanded {
110
110
  --#{$accordion}__toggle--PaddingBottom: var(--#{$accordion}__toggle--m-expanded--PaddingBottom);
111
111
  --#{$accordion}__toggle-text--FontWeight: var(--#{$accordion}__toggle--m-expanded__toggle-text--FontWeight);
112
-
112
+
113
113
  background-color: var(--#{$accordion}__item--m-expanded--BackgroundColor);
114
114
 
115
115
  .#{$accordion}__toggle-icon {
@@ -1,4 +1,4 @@
1
- :where(:root) {
1
+ :where(:root, .pf-v6-c-action-list) {
2
2
  --pf-v6-c-action-list--RowGap: var(--pf-t--global--spacer--sm);
3
3
  --pf-v6-c-action-list--ColumnGap: var(--pf-t--global--spacer--2xl);
4
4
  --pf-v6-c-action-list__group--ColumnGap: var(--pf-t--global--spacer--md);
@@ -1,4 +1,6 @@
1
- :where(:root) {
1
+ @use '../../sass-utilities' as *;
2
+
3
+ :where(:root, .#{$action-list}) {
2
4
  --#{$action-list}--RowGap: var(--pf-t--global--spacer--sm);
3
5
  --#{$action-list}--ColumnGap: var(--pf-t--global--spacer--2xl);
4
6
 
@@ -1,4 +1,4 @@
1
- // @debug $alert-group; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
3
  // Tabs
4
4
  .#{$alert-group} {
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-alert) {
2
2
  --pf-v6-c-alert--BoxShadow: var(--pf-t--global--box-shadow--lg);
3
3
  --pf-v6-c-alert--BackgroundColor: var(--pf-t--global--background--color--floating--default);
4
4
  --pf-v6-c-alert--GridTemplateColumns: max-content 1fr max-content;