@patternfly/patternfly 4.178.0 → 4.179.2

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 (110) hide show
  1. package/RELEASE-NOTES.md +37 -0
  2. package/components/AboutModalBox/themes/dark/about-modal-box.css +0 -0
  3. package/components/AboutModalBox/themes/dark/about-modal-box.scss +9 -0
  4. package/components/Accordion/themes/dark/accordion.css +0 -0
  5. package/components/Accordion/themes/dark/accordion.scss +7 -0
  6. package/components/Alert/themes/dark/alert.css +0 -0
  7. package/components/Alert/themes/dark/alert.scss +15 -0
  8. package/components/AppLauncher/themes/dark/app-launcher.css +0 -0
  9. package/components/AppLauncher/themes/dark/app-launcher.scss +13 -0
  10. package/components/Badge/themes/dark/badge.css +0 -0
  11. package/components/Badge/themes/dark/badge.scss +6 -0
  12. package/components/Banner/themes/dark/banner.css +0 -0
  13. package/components/Banner/themes/dark/banner.scss +12 -0
  14. package/components/Breadcrumb/themes/dark/breadcrumb.css +0 -0
  15. package/components/Breadcrumb/themes/dark/breadcrumb.scss +5 -0
  16. package/components/Button/themes/dark/button.css +0 -0
  17. package/components/Button/themes/dark/button.scss +42 -0
  18. package/components/CalendarMonth/themes/dark/calendar-month.css +0 -0
  19. package/components/CalendarMonth/themes/dark/calendar-month.scss +29 -0
  20. package/components/Chip/themes/dark/chip.css +0 -0
  21. package/components/Chip/themes/dark/chip.scss +7 -0
  22. package/components/ClipboardCopy/themes/dark/clipboard-copy.css +0 -0
  23. package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +17 -0
  24. package/components/CodeEditor/themes/dark/code-editor.css +0 -0
  25. package/components/CodeEditor/themes/dark/code-editor.scss +7 -0
  26. package/components/ContextSelector/themes/dark/context-selector.css +0 -0
  27. package/components/ContextSelector/themes/dark/context-selector.scss +22 -0
  28. package/components/DataList/themes/dark/data-list.css +0 -0
  29. package/components/DataList/themes/dark/data-list.scss +8 -0
  30. package/components/DatePicker/themes/dark/date-picker.css +0 -0
  31. package/components/DatePicker/themes/dark/date-picker.scss +6 -0
  32. package/components/Drawer/themes/dark/drawer.css +0 -0
  33. package/components/Drawer/themes/dark/drawer.scss +11 -0
  34. package/components/Dropdown/themes/dark/dropdown.css +0 -0
  35. package/components/Dropdown/themes/dark/dropdown.scss +30 -0
  36. package/components/Form/themes/dark/form.css +0 -0
  37. package/components/Form/themes/dark/form.scss +5 -0
  38. package/components/FormControl/themes/dark/form-control.css +0 -0
  39. package/components/FormControl/themes/dark/form-control.scss +28 -0
  40. package/components/HelperText/themes/dark/helper-text.css +0 -0
  41. package/components/HelperText/themes/dark/helper-text.scss +5 -0
  42. package/components/Hint/themes/dark/hint.css +0 -0
  43. package/components/Hint/themes/dark/hint.scss +6 -0
  44. package/components/InputGroup/themes/dark/input-group.css +0 -0
  45. package/components/InputGroup/themes/dark/input-group.scss +26 -0
  46. package/components/Label/themes/dark/label.css +0 -0
  47. package/components/Label/themes/dark/label.scss +45 -0
  48. package/components/LogViewer/themes/dark/log-viewer.css +0 -0
  49. package/components/LogViewer/themes/dark/log-viewer.scss +5 -0
  50. package/components/Login/themes/dark/login.css +0 -0
  51. package/components/Login/themes/dark/login.scss +6 -0
  52. package/components/Masthead/themes/dark/masthead.css +0 -0
  53. package/components/Masthead/themes/dark/masthead.scss +11 -0
  54. package/components/Menu/themes/dark/menu.css +0 -0
  55. package/components/Menu/themes/dark/menu.scss +10 -0
  56. package/components/MenuToggle/themes/dark/menu-toggle.css +0 -0
  57. package/components/MenuToggle/themes/dark/menu-toggle.scss +21 -0
  58. package/components/ModalBox/modal-box.scss +0 -1
  59. package/components/ModalBox/themes/dark/modal-box.css +0 -0
  60. package/components/ModalBox/themes/dark/modal-box.scss +5 -0
  61. package/components/Nav/themes/dark/nav.css +0 -0
  62. package/components/Nav/themes/dark/nav.scss +42 -0
  63. package/components/NotificationBadge/themes/dark/notification-badge.css +0 -0
  64. package/components/NotificationBadge/themes/dark/notification-badge.scss +5 -0
  65. package/components/NotificationDrawer/themes/dark/notification-drawer.css +0 -0
  66. package/components/NotificationDrawer/themes/dark/notification-drawer.scss +12 -0
  67. package/components/OptionsMenu/themes/dark/options-menu.css +0 -0
  68. package/components/OptionsMenu/themes/dark/options-menu.scss +21 -0
  69. package/components/Page/themes/dark/page.css +0 -0
  70. package/components/Page/themes/dark/page.scss +62 -0
  71. package/components/Pagination/themes/dark/pagination.css +0 -0
  72. package/components/Pagination/themes/dark/pagination.scss +5 -0
  73. package/components/Popover/popover.scss +0 -1
  74. package/components/Popover/themes/dark/popover.css +0 -0
  75. package/components/Popover/themes/dark/popover.scss +15 -0
  76. package/components/Progress/progress.scss +0 -1
  77. package/components/Progress/themes/dark/progress.css +0 -0
  78. package/components/Progress/themes/dark/progress.scss +7 -0
  79. package/components/SearchInput/themes/dark/search-input.css +0 -0
  80. package/components/SearchInput/themes/dark/search-input.scss +14 -0
  81. package/components/Select/themes/dark/select.css +0 -0
  82. package/components/Select/themes/dark/select.scss +21 -0
  83. package/components/SimpleList/themes/dark/simple-list.css +0 -0
  84. package/components/SimpleList/themes/dark/simple-list.scss +12 -0
  85. package/components/Skeleton/themes/dark/skeleton.css +0 -0
  86. package/components/Skeleton/themes/dark/skeleton.scss +8 -0
  87. package/components/Switch/themes/dark/switch.css +0 -0
  88. package/components/Switch/themes/dark/switch.scss +8 -0
  89. package/components/Table/themes/dark/table.css +0 -0
  90. package/components/Table/themes/dark/table.scss +10 -0
  91. package/components/Tabs/themes/dark/tabs.css +0 -0
  92. package/components/Tabs/themes/dark/tabs.scss +7 -0
  93. package/components/Tile/themes/dark/tile.css +0 -0
  94. package/components/Tile/themes/dark/tile.scss +8 -0
  95. package/components/ToggleGroup/themes/dark/toggle-group.css +0 -0
  96. package/components/ToggleGroup/themes/dark/toggle-group.scss +9 -0
  97. package/components/Tooltip/themes/dark/tooltip.css +0 -0
  98. package/components/Tooltip/themes/dark/tooltip.scss +6 -0
  99. package/components/TreeView/themes/dark/tree-view.css +0 -0
  100. package/components/TreeView/themes/dark/tree-view.scss +6 -0
  101. package/components/Wizard/themes/dark/wizard.css +0 -0
  102. package/components/Wizard/themes/dark/wizard.scss +12 -0
  103. package/docs/components/CalendarMonth/examples/CalendarMonth.md +2 -2
  104. package/docs/components/LabelGroup/examples/LabelGroup.md +135 -2
  105. package/docs/components/Spinner/examples/Spinner.md +50 -55
  106. package/docs/demos/BackToTop/examples/BackToTop.md +200 -0
  107. package/docs/demos/ContextSelector/examples/ContextSelector.md +3011 -187
  108. package/package.json +1 -1
  109. package/patternfly-theme-dark.css +628 -0
  110. package/patternfly-theme-dark.scss +9 -0
package/RELEASE-NOTES.md CHANGED
@@ -3,6 +3,43 @@ id: Release notes
3
3
  section: developer-resources
4
4
  releaseNoteTOC: true
5
5
  ---
6
+ ## 2022.02 release notes (2022-02-17)
7
+ Packages released:
8
+ - [@patternfly/patternfly@v4.179.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.179.1)
9
+
10
+ ### Components
11
+ - **Alert:** Added overflow alert button ([#4650](https://github.com/patternfly/patternfly/pull/4650))
12
+ - **Avatar:** Added size variations ([#4648](https://github.com/patternfly/patternfly/pull/4648))
13
+ - **Button:** Fixed primary toggle state styles ([#4662](https://github.com/patternfly/patternfly/pull/4662))
14
+ - **Card:** Updated card demo select to be plain, fixed alignment ([#4667](https://github.com/patternfly/patternfly/pull/4667))
15
+ - **Code editor:** Added header content section ([#4669](https://github.com/patternfly/patternfly/pull/4669))
16
+ - **Label:** Improved click area of editable label ([#4653](https://github.com/patternfly/patternfly/pull/4653))
17
+ - **Nav:**
18
+ - Added variation to fix section spacing ([#4649](https://github.com/patternfly/patternfly/pull/4649))
19
+ - Updated nav menu styling ([#4672](https://github.com/patternfly/patternfly/pull/4672))
20
+ - **Pagination:** Removed number input arrow visibility ([#4641](https://github.com/patternfly/patternfly/pull/4641))
21
+ - **Progress stepper:** Removed extra space below last step ([#4636](https://github.com/patternfly/patternfly/pull/4636))
22
+ - **Table:**
23
+ - Updated tree table checkbox padding ([#4642](https://github.com/patternfly/patternfly/pull/4642))
24
+ - Removed unnecessary class from striped tr example ([#4644](https://github.com/patternfly/patternfly/pull/4644))
25
+ - Added overflow menu examples ([#4651](https://github.com/patternfly/patternfly/pull/4651))
26
+ - Fixed expand all button in compact table ([#4681](https://github.com/patternfly/patternfly/pull/4681))
27
+ - **Text input group:** Added placeholder styling ([#4668](https://github.com/patternfly/patternfly/pull/4668))
28
+
29
+ ### Other
30
+ - **Demos:**
31
+ - Removed bulk selector from demo headers ([#4640](https://github.com/patternfly/patternfly/pull/4640))
32
+ - Created common template for full page demos ([#4674](https://github.com/patternfly/patternfly/pull/4674))
33
+ - Added common masthead template ([#4683](https://github.com/patternfly/patternfly/pull/4683))
34
+ - Fixed context selector include paths ([#4689](https://github.com/patternfly/patternfly/pull/4689))
35
+ - **Docs:**
36
+ - Added links to new breakpoint section ([#4675](https://github.com/patternfly/patternfly/pull/4675))
37
+ - Added version details to upgrade guide ([#4678](https://github.com/patternfly/patternfly/pull/4678))
38
+ - **Repo:** Added bug and feature issue templates ([#4671](https://github.com/patternfly/patternfly/pull/4671))
39
+ - **Theme:** Added dark theme ([#4654](https://github.com/patternfly/patternfly/pull/4654))
40
+ - **Note:** This is not production ready and we are not advising products to adopt the dark theme stylesheet at this time. This feature is being released to test in specific use cases to assess the feasibility of adding a dark theme to PatternFly.
41
+
42
+
6
43
  ## 2022.01 release notes (2022-01-25)
7
44
  Packages released:
8
45
  - [@patternfly/patternfly@v4.171.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.171.1)
@@ -0,0 +1,9 @@
1
+ @mixin about-modal-box() {
2
+ .pf-c-about-modal-box {
3
+ --pf-c-accordion__toggle--hover--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ --pf-c-accordion__toggle--focus--BackgroundColor: var(--pf-global--BackgroundColor--300);
5
+ --pf-c-accordion__toggle--active--BackgroundColor: var(--pf-global--BackgroundColor--300);
6
+
7
+ @include pf-t-dark();
8
+ }
9
+ }
File without changes
@@ -0,0 +1,7 @@
1
+ @mixin accordion() {
2
+ .pf-c-accordion {
3
+ --pf-c-accordion__toggle--hover--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ --pf-c-accordion__toggle--focus--BackgroundColor: var(--pf-global--BackgroundColor--300);
5
+ --pf-c-accordion__toggle--active--BackgroundColor: var(--pf-global--BackgroundColor--300);
6
+ }
7
+ }
File without changes
@@ -0,0 +1,15 @@
1
+ @mixin alert() {
2
+ .pf-c-alert {
3
+ --pf-c-alert--BackgroundColor: var(--pf-global--palette--black-600);
4
+ --pf-c-alert__title--Color: var(--pf-global--default-color--200);
5
+ --pf-c-alert--m-success__title--Color: var(--pf-global--success-color--100);
6
+ --pf-c-alert--m-danger__title--Color: var(--pf-global--danger-color--100);
7
+ --pf-c-alert--m-warning__title--Color: var(--pf-global--warning-color--100);
8
+ --pf-c-alert--m-info__title--Color: var(--pf-global--info-color--100);
9
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--black-600);
10
+ --pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--black-600);
11
+ --pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--black-600);
12
+ --pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--black-600);
13
+ --pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--black-600);
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ @mixin app-launcher() {
2
+ .pf-c-app-launcher {
3
+ --pf-c-app-launcher__menu--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ --pf-c-app-launcher__menu--Top: 100%;
5
+ --pf-c-app-launcher__menu-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
6
+ --pf-c-app-launcher__menu-item--disabled--Color: var(--pf-global--palette--black-300); // question should we have a global var for this
7
+ --pf-c-app-launcher__menu-item--m-action--Color: var(--pf-global--Color--200);
8
+ --pf-c-app-launcher__menu-item--m-favorite__menu-item--m-action--Color: var(--pf-global--palette--gold-300);
9
+ --pf-c-app-launcher__menu-item--m-favorite__menu-item--m-action--hover--Color: var(--pf-global--palette--gold-100);
10
+ --pf-c-app-launcher__group-title--FontSize: var(--pf-global--FontSize--xs);
11
+ --pf-c-app-launcher__group-title--FontWeight: var(--pf-global--FontWeight--bold);
12
+ }
13
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ @mixin badge() {
2
+ .pf-c-badge {
3
+ --pf-c-badge--m-read--BackgroundColor: var(--pf-global--palette--black-500);
4
+ --pf-c-badge--m-unread--BackgroundColor: var(--pf-global--primary-color--300);
5
+ }
6
+ }
File without changes
@@ -0,0 +1,12 @@
1
+ @mixin banner() {
2
+ .pf-c-banner {
3
+ &.pf-m-info,
4
+ &.pf-m-danger,
5
+ &.pf-m-success,
6
+ &.pf-m-warning {
7
+ color: var(--pf-global--palette--black-900);
8
+ }
9
+
10
+ @include pf-t-dark;
11
+ }
12
+ }
@@ -0,0 +1,5 @@
1
+ @mixin breadcrumb() {
2
+ .pf-c-breadcrumb {
3
+ --pf-c-breadcrumb__item-divider--Color: var(--pf-global--BorderColor--100);
4
+ }
5
+ }
File without changes
@@ -0,0 +1,42 @@
1
+ @mixin button() {
2
+ .pf-c-button {
3
+ --pf-c-button--disabled--Color: var(--pf-global--disabled-color--300);
4
+ --pf-c-button--m-primary--BackgroundColor: var(--pf-global--primary-color--300); // should blue-400 be a primary-color?
5
+ --pf-c-button--m-tertiary--after--BorderColor: var(--pf-global--BorderColor--100);
6
+ --pf-c-button--m-tertiary--Color: var(--pf-global--palette--black-100); // global variable for this?
7
+ --pf-c-button--m-tertiary--hover--after--BorderColor: var(--pf-global--BorderColor--100);
8
+ --pf-c-button--m-tertiary--hover--Color: var(--pf-global--palette--black-100);
9
+ --pf-c-button--m-tertiary--focus--after--BorderColor: var(--pf-global--BorderColor--100);
10
+ --pf-c-button--m-tertiary--focus--Color: var(--pf-global--palette--black-100);
11
+ --pf-c-button--m-tertiary--active--after--BorderColor: var(--pf-global--BorderColor--100);
12
+ --pf-c-button--m-tertiary--active--Color: var(--pf-global--palette--black-100);
13
+ --pf-c-button--m-warning--hover--BackgroundColor: var(--pf-global--warning-color--200);
14
+ --pf-c-button--m-warning--focus--BackgroundColor: var(--pf-global--warning-color--200);
15
+ --pf-c-button--m-warning--active--BackgroundColor: var(--pf-global--warning-color--200);
16
+ --pf-c-button--m-danger--Color: var(--pf-global--palette--black-900);
17
+ --pf-c-button--m-danger--hover--Color: var(--pf-global--palette--black-900);
18
+ --pf-c-button--m-danger--focus--Color: var(--pf-global--palette--black-900);
19
+ --pf-c-button--m-danger--active--Color: var(--pf-global--palette--black-900);
20
+ --pf-c-button--m-control--BackgroundColor: var(--pf-global--BackgroundColor--400);
21
+ --pf-c-button--m-control--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
22
+ --pf-c-button--m-control--active--BackgroundColor: var(--pf-global--BackgroundColor--400);
23
+ --pf-c-button--m-control--focus--BackgroundColor: var(--pf-global--BackgroundColor--400);
24
+ --pf-c-button--m-control--m-expanded--BackgroundColor: var(--pf-global--BackgroundColor--400);
25
+ --pf-c-button--m-control--after--BorderTopColor: transparent;
26
+ --pf-c-button--m-control--after--BorderRightColor: transparent;
27
+ --pf-c-button--m-control--after--BorderBottomColor: var(--pf-global--BorderColor--400);
28
+ --pf-c-button--m-control--after--BorderLeftColor: transparent;
29
+ --pf-c-button--m-control--hover--after--BorderBottomColor: var(--pf-global--primary-color--100);
30
+ --pf-c-button--m-control--active--after--BorderBottomColor: var(--pf-global--primary-color--100);
31
+ --pf-c-button--m-control--focus--after--BorderBottomColor: var(--pf-global--primary-color--100);
32
+ --pf-c-button--m-control--m-expanded--after--BorderBottomColor: var(--pf-global--primary-color--100);
33
+ --pf-c-button--m-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
34
+
35
+ &.pf-m-control:disabled {
36
+ &::after {
37
+ border: 0;
38
+ border-bottom: var(--pf-global--BorderWidth--sm) solid var(--pf-global--palette--black-700);
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,29 @@
1
+ @mixin calendar-month() {
2
+ .pf-c-calendar-month {
3
+ --pf-c-calendar-month__dates-cell--m-current__date--BackgroundColor: var(--pf-global--palette--black-500);
4
+ --pf-c-calendar-month__dates-cell--m-selected__date--BackgroundColor: var(--pf-global--primary-color--300);
5
+ --pf-c-calendar-month__dates-cell--m-selected__date--hover--BackgroundColor: var(--pf-global--palette--black-900);
6
+ --pf-c-calendar-month__dates-cell--m-selected__date--focus--BackgroundColor: var(--pf-global--palette--blue-400);
7
+ --pf-c-calendar-month__dates-cell--m-in-range--before--BackgroundColor: var(--pf-global--BackgroundColor--200);
8
+ --pf-c-calendar-month__dates-cell--m-in-range__date--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
9
+ --pf-c-calendar-month__dates-cell--m-in-range__date--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
10
+ --pf-c-calendar-month__date--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
11
+ --pf-c-calendar-month__date--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
12
+ --pf-c-calendar-month__date--focus--after--BorderColor: transparent;
13
+ }
14
+
15
+ .pf-c-calendar-month__date {
16
+ &:hover,
17
+ &.pf-m-hover {
18
+ --pf-c-calendar-month__date--after--BorderColor: var(--pf-global--BorderColor--100);
19
+ --pf-c-calendar-month__date--after--BorderWidth: var(--pf-global--BorderWidth--sm);
20
+ }
21
+
22
+ &:focus,
23
+ &.pf-m-focus {
24
+ --pf-c-calendar-month__date--after--BorderColor: var(--pf-global--active-color--100);
25
+ --pf-c-calendar-month__date--after--BorderWidth: var(--pf-global--BorderWidth--sm);
26
+ --pf-c-calendar-month__date--BackgroundColor: var(--pf-global--primary-color--300);
27
+ }
28
+ }
29
+ }
File without changes
@@ -0,0 +1,7 @@
1
+ @mixin chip() {
2
+ .pf-c-chip {
3
+ --pf-c-chip--BackgroundColor: var(--pf-global--BackgroundColor--100);
4
+ --pf-c-chip--before--BorderColor: var(--pf-global--BorderColor--100);
5
+ --pf-c-chip--m-draggable--BackgroundColor: var(--pf-global--palette--black-600);
6
+ }
7
+ }
@@ -0,0 +1,17 @@
1
+ @mixin clipboard-copy() {
2
+ .pf-c-clipboard-copy {
3
+ --pf-c-clipboard-copy__expandable-content--BackgroundColor: var(--pf-global--BackgroundColor--400);
4
+ }
5
+
6
+ .pf-c-clipboard-copy__group {
7
+ > * + * {
8
+ margin-left: 0;
9
+ // stylelint-disable-next-line
10
+ border-left: 1px solid var(--pf-global--palette--black-700) !important;
11
+ }
12
+ }
13
+
14
+ .pf-c-clipboard-copy__expandable-content {
15
+ border: 0;
16
+ }
17
+ }
@@ -0,0 +1,7 @@
1
+ @mixin code-editor() {
2
+ .pf-c-code-editor__controls {
3
+ > * + * {
4
+ border-left: 1px solid var(--pf-global--palette--black-700);
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,22 @@
1
+ @mixin context-selector() {
2
+ .pf-c-context-selector {
3
+ --pf-c-context-selector__menu--Top: 100%;
4
+ --pf-c-context-selector__menu-list-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
5
+ }
6
+
7
+ .pf-c-context-selector__toggle {
8
+ background: var(--pf-global--BackgroundColor--400);
9
+
10
+ &.pf-m-plain {
11
+ background: transparent;
12
+ }
13
+ }
14
+
15
+ .pf-c-context-selector__menu {
16
+ background: var(--pf-global--BackgroundColor--300);
17
+ }
18
+
19
+ .pf-c-context-selector__menu-footer {
20
+ border-top: 1px solid var(--pf-global--BorderColor--300);
21
+ }
22
+ }
File without changes
@@ -0,0 +1,8 @@
1
+ @mixin data-list() {
2
+ .pf-c-data-list {
3
+ --pf-c-data-list--BorderTopColor: var(--pf-global--BorderColor--100);
4
+ --pf-c-data-list--sm--BorderTopColor: var(--pf-global--BorderColor--100);
5
+ --pf-c-data-list__item--BorderBottomColor: var(--pf-global--BorderColor--100);
6
+ --pf-c-data-list__item--sm--BorderBottomColor: var(--pf-global--BorderColor--100);
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ @mixin date-picker() {
2
+ .pf-c-date-picker {
3
+ --pf-c-date-picker__calendar--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ --pf-c-date-picker__calendar--Top: 100%;
5
+ }
6
+ }
File without changes
@@ -0,0 +1,11 @@
1
+ @mixin drawer() {
2
+ .pf-c-drawer {
3
+ --pf-c-drawer__panel--BackgroundColor: var(--pf-global--BackgroundColor--400);
4
+ --pf-c-drawer__splitter--BackgroundColor: transparent;
5
+
6
+ &.pf-m-inline,
7
+ &.pf-m-static {
8
+ --pf-c-drawer__panel--BackgroundColor: var(--pf-global--BackgroundColor--100);
9
+ }
10
+ }
11
+ }
File without changes
@@ -0,0 +1,30 @@
1
+ @mixin dropdown() {
2
+ .pf-c-dropdown {
3
+ --pf-c-dropdown__toggle--BackgroundColor: var(--pf-global--BackgroundColor--400);
4
+ --pf-c-dropdown__toggle--before--BorderTopColor: transparent;
5
+ --pf-c-dropdown__toggle--before--BorderRightColor: transparent;
6
+ --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-global--BorderColor--400);
7
+ --pf-c-dropdown__toggle--before--BorderLeftColor: transparent;
8
+ --pf-c-dropdown__toggle--disabled--BackgroundColor: var(--pf-global--palette--black-500);
9
+ --pf-c-dropdown__toggle--m-primary--BackgroundColor: var(--pf-global--primary-color--300);
10
+ --pf-c-dropdown__menu--BackgroundColor: var(--pf-global--BackgroundColor--300);
11
+ --pf-c-dropdown__menu--Top: 100%;
12
+ --pf-c-dropdown--m-top__menu--TranslateY: -100%;
13
+ --pf-c-dropdown__menu-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
14
+ --pf-c-dropdown__group-title--FontSize: var(--pf-global--FontSize--xs);
15
+ --pf-c-dropdown__group-title--FontWeight: var(--pf-global--FontWeight--bold);
16
+ }
17
+
18
+ .pf-c-dropdown__toggle {
19
+ &:not(.pf-m-plain) {
20
+ &:disabled,
21
+ &.pf-m-disabled {
22
+ color: var(--pf-global--palette--black-100); // should be a global var?
23
+ }
24
+ }
25
+
26
+ &.pf-m-plain {
27
+ background: transparent;
28
+ }
29
+ }
30
+ }
File without changes
@@ -0,0 +1,5 @@
1
+ @mixin form() {
2
+ .pf-c-form {
3
+ --pf-c-form__helper-text--m-success--Color: var(--pf-global--success-color--100);
4
+ }
5
+ }
@@ -0,0 +1,28 @@
1
+ @mixin form-control() {
2
+ .pf-c-form-control {
3
+ --pf-c-form-control__select--BackgroundUrl: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%235ba352' d='M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z'/%3E%3C/svg%3E");
4
+ --pf-c-form-control--BorderTopColor: transparent;
5
+ --pf-c-form-control--BorderRightColor: transparent;
6
+ --pf-c-form-control--BorderBottomColor: var(--pf-global--BorderColor--400);
7
+ --pf-c-form-control--BorderLeftColor: transparent;
8
+ --pf-c-form-control--BackgroundColor: var(--pf-global--BackgroundColor--400);
9
+ --pf-c-form-control--disabled--Color: var(--pf-global--disabled-color--300);
10
+ --pf-c-form-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
11
+ --pf-c-form-control--readonly--BackgroundColor: var(--pf-global--BackgroundColor--400);
12
+
13
+ color: var(--pf-global--Color--100);
14
+
15
+ // chrome's calendar icon for type="date"
16
+ &::-webkit-calendar-picker-indicator {
17
+ filter: #{"invert(1)"};
18
+ }
19
+
20
+ &[readonly] {
21
+ border-bottom-color: var(--pf-global--palette--black-700); // should be a var?
22
+ }
23
+
24
+ &:disabled {
25
+ color: var(--pf-global--palette--black-100); // global var
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,5 @@
1
+ @mixin helper-text() {
2
+ .pf-c-helper-text {
3
+ --pf-c-helper-text__item-text--m-success--Color: var(--pf-global--success-color--100);
4
+ }
5
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ @mixin hint() {
2
+ .pf-c-hint {
3
+ --pf-c-hint--BackgroundColor: var(--pf-global--BackgroundColor--400);
4
+ --pf-c-hint--BorderColor: var(--pf-global--BorderColor--300);
5
+ }
6
+ }
@@ -0,0 +1,26 @@
1
+ @mixin input-group() {
2
+ .pf-c-input-group {
3
+ --pf-c-input-group--BackgroundColor: transparent;
4
+ --pf-c-input-group__text--BorderTopColor: transparent;
5
+ --pf-c-input-group__text--BorderRightColor: transparent;
6
+ --pf-c-input-group__text--BorderBottomColor: var(--pf-global--BorderColor--400);
7
+ --pf-c-input-group__text--BorderLeftColor: transparent;
8
+ --pf-c-input-group__text--BackgroundColor: var(--pf-global--palette--black-600);
9
+
10
+ > * + * {
11
+ margin-left: 0;
12
+ border-left: 1px solid var(--pf-global--palette--black-700); // global var
13
+ }
14
+ }
15
+
16
+ .pf-c-input-group__text {
17
+ --pf-c-input-group__text--BorderTopColor: transparent;
18
+ --pf-c-input-group__text--BorderRightColor: transparent;
19
+ --pf-c-input-group__text--BorderBottomColor: var(--pf-global--BorderColor--400);
20
+ --pf-c-input-group__text--BorderLeftColor: transparent;
21
+
22
+ &.pf-m-plain {
23
+ --pf-c-input-group__text--BackgroundColor: transparent;
24
+ }
25
+ }
26
+ }
File without changes
@@ -0,0 +1,45 @@
1
+ @mixin label() {
2
+ .pf-c-label {
3
+ --pf-c-label--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ --pf-c-label--m-blue--BackgroundColor: var(--pf-global--BackgroundColor--300);
5
+ --pf-c-label--m-green--BackgroundColor: var(--pf-global--BackgroundColor--300);
6
+ --pf-c-label--m-orange--BackgroundColor: var(--pf-global--BackgroundColor--300);
7
+ --pf-c-label--m-red--BackgroundColor: var(--pf-global--BackgroundColor--300);
8
+ --pf-c-label--m-purple--BackgroundColor: var(--pf-global--BackgroundColor--300);
9
+ --pf-c-label--m-cyan--BackgroundColor: var(--pf-global--BackgroundColor--300);
10
+ --pf-c-label__content--before--BorderWidth: 0;
11
+ --pf-c-label__content--before--BorderColor: transparent;
12
+ --pf-c-label__content--link--hover--before--BorderWidth: var(--pf-global--BorderWidth--sm);
13
+ --pf-c-label__content--link--focus--before--BorderWidth: var(--pf-global--BorderWidth--sm);
14
+ --pf-c-label--m-blue__content--Color: var(--pf-global--primary-color--100);
15
+ --pf-c-label--m-outline--m-blue__content--before--BorderColor: var(--pf-global--active-color--200);
16
+ --pf-c-label--m-outline--m-blue__content--link--hover--before--BorderColor: var(--pf-global--active-color--200);
17
+ --pf-c-label--m-outline--m-blue__content--link--focus--before--BorderColor: var(--pf-global--active-color--200);
18
+ --pf-c-label--m-green__content--Color: var(--pf-global--success-color--100);
19
+ --pf-c-label--m-outline--m-green__content--before--BorderColor: var(--pf-global--palette--green-100);
20
+ --pf-c-label--m-outline--m-green__content--link--hover--before--BorderColor: var(--pf-global--palette--green-100);
21
+ --pf-c-label--m-outline--m-green__content--link--focus--before--BorderColor: var(--pf-global--palette--green-100);
22
+ --pf-c-label--m-orange__content--Color: var(--pf-global--palette--orange-300);
23
+ --pf-c-label--m-outline--m-orange__content--Color: var(--pf-global--palette--orange-300);
24
+ --pf-c-label--m-outline--m-orange__content--before--BorderColor: var(--pf-global--palette--gold-100);
25
+ --pf-c-label--m-outline--m-orange__content--link--hover--before--BorderColor: var(--pf-global--palette--gold-100);
26
+ --pf-c-label--m-outline--m-orange__content--link--focus--before--BorderColor: var(--pf-global--palette--gold-100);
27
+ --pf-c-label--m-red__content--Color: var(--pf-global--danger-color--100);
28
+ --pf-c-label--m-outline--m-red__content--before--BorderColor: var(--pf-global--danger-color--100);
29
+ --pf-c-label--m-outline--m-red__content--link--hover--before--BorderColor: var(--pf-global--danger-color--100);
30
+ --pf-c-label--m-outline--m-red__content--link--focus--before--BorderColor: var(--pf-global--danger-color--100);
31
+ --pf-c-label--m-purple__content--Color: var(--pf-global--palette--purple-300);
32
+ --pf-c-label--m-purple__icon--Color: var(--pf-global--palette--purple-300);
33
+ --pf-c-label--m-purple__content--link--hover--before--BorderColor: var(--pf-global--palette--purple-300);
34
+ --pf-c-label--m-purple__content--link--focus--before--BorderColor: var(--pf-global--palette--purple-300);
35
+ --pf-c-label--m-outline--m-purple__content--before--BorderColor: var(--pf-global--palette--purple-100);
36
+ --pf-c-label--m-outline--m-purple__content--link--hover--before--BorderColor: var(--pf-global--palette--purple-100);
37
+ --pf-c-label--m-outline--m-purple__content--link--focus--before--BorderColor: var(--pf-global--palette--purple-100);
38
+ --pf-c-label--m-outline--m-purple__content--Color: var(--pf-global--palette--purple-300);
39
+ --pf-c-label--m-cyan__content--Color: var(--pf-global--default-color--200);
40
+ --pf-c-label--m-outline--m-cyan__content--Color: var(--pf-global--default-color--200);
41
+ --pf-c-label--m-outline--m-cyan__content--before--BorderColor: var(--pf-global--palette--cyan-100);
42
+ --pf-c-label--m-outline--m-cyan__content--link--hover--before--BorderColor: var(--pf-global--palette--cyan-100);
43
+ --pf-c-label--m-outline--m-cyan__content--link--focus--before--BorderColor: var(--pf-global--palette--cyan-100);
44
+ }
45
+ }
@@ -0,0 +1,5 @@
1
+ @mixin log-viewer() {
2
+ .pf-c-log-viewer.pf-m-dark .pf-c-log-viewer__main {
3
+ @include pf-t-dark;
4
+ }
5
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ @mixin login() {
2
+ .pf-c-login__header,
3
+ .pf-c-login__footer {
4
+ @include pf-t-dark;
5
+ }
6
+ }
File without changes
@@ -0,0 +1,11 @@
1
+ @mixin masthead() {
2
+ .pf-c-masthead {
3
+ --pf-c-masthead--BackgroundColor: var(--pf-global--palette--black-1000);
4
+
5
+ .pf-c-toolbar {
6
+ --pf-c-toolbar--BackgroundColor: var(--pf-global--palette--black-1000);
7
+ }
8
+
9
+ @include pf-t-dark;
10
+ }
11
+ }
File without changes
@@ -0,0 +1,10 @@
1
+ @mixin menu() {
2
+ .pf-c-menu {
3
+ --pf-c-menu--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ --pf-c-menu__list-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
5
+ --pf-c-menu__list-item--focus-within--BackgroundColor: var(--pf-global--BackgroundColor--400);
6
+ --pf-c-menu__list-item--m-disabled__item--Color: var(--pf-global--Color--200); // global var?
7
+ --pf-c-menu__group-title--FontWeight: var(--pf-global--FontWeight--bold);
8
+ --pf-c-menu__group-title--FontSize: var(--pf-global--FontSize--xs);
9
+ }
10
+ }
@@ -0,0 +1,21 @@
1
+ @mixin menu-toggle() {
2
+ .pf-c-menu-toggle {
3
+ --pf-c-menu-toggle--BackgroundColor: var(--pf-global--BackgroundColor--400);
4
+ --pf-c-menu-toggle--hover--BackgroundColor: var(--pf-global--BackgroundColor--400);
5
+ --pf-c-menu-toggle--active--BackgroundColor: var(--pf-global--BackgroundColor--400);
6
+ --pf-c-menu-toggle--focus--BackgroundColor: var(--pf-global--BackgroundColor--400);
7
+ --pf-c-menu-toggle--m-expanded--BackgroundColor: var(--pf-global--BackgroundColor--400);
8
+ --pf-c-menu-toggle--before--BorderTopColor: transparent;
9
+ --pf-c-menu-toggle--before--BorderRightColor: transparent;
10
+ --pf-c-menu-toggle--before--BorderBottomColor: transparent;
11
+ --pf-c-menu-toggle--before--BorderLeftColor: transparent;
12
+ --pf-c-menu-toggle--after--BorderBottomColor: var(--pf-global--BorderColor--400);
13
+ --pf-c-menu-toggle--disabled--BackgroundColor: var(--pf-global--palette--black-500);
14
+ --pf-c-menu-toggle--disabled--Color: var(--pf-global--palette--black-100);
15
+ --pf-c-menu-toggle--m-primary--BackgroundColor: var(--pf-global--primary-color--300);
16
+
17
+ &.pf-m-plain {
18
+ background: transparent;
19
+ }
20
+ }
21
+ }
@@ -216,4 +216,3 @@
216
216
  }
217
217
  }
218
218
  }
219
-
File without changes
@@ -0,0 +1,5 @@
1
+ @mixin modal-box() {
2
+ .pf-c-modal-box {
3
+ --pf-c-modal-box--BackgroundColor: var(--pf-global--BackgroundColor--300);
4
+ }
5
+ }
File without changes