@patternfly/quickstarts 2.2.3 → 2.2.4

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 (188) hide show
  1. package/dist/HelpTopicDrawer.d.ts +8 -2
  2. package/dist/QuickStartDrawer.d.ts +21 -2
  3. package/dist/index.es.js.map +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +105 -0
  6. package/dist/patternfly-docs/quick-starts/design-guidelines/img/card-elements copy.png +0 -0
  7. package/dist/patternfly-docs/quick-starts/design-guidelines/img/card-elements.png +0 -0
  8. package/dist/patternfly-docs/quick-starts/design-guidelines/img/catalog-elements.png +0 -0
  9. package/dist/patternfly-docs/quick-starts/design-guidelines/img/check-your-work.png +0 -0
  10. package/dist/patternfly-docs/quick-starts/design-guidelines/img/introduction-screen.png +0 -0
  11. package/dist/patternfly-docs/quick-starts/design-guidelines/img/mixed-catalog.png +0 -0
  12. package/dist/patternfly-docs/quick-starts/design-guidelines/img/prerequisites.png +0 -0
  13. package/dist/patternfly-docs/quick-starts/design-guidelines/img/qs-context.png +0 -0
  14. package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel-elements.png +0 -0
  15. package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel-resized.png +0 -0
  16. package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel.png +0 -0
  17. package/dist/patternfly-docs/quick-starts/design-guidelines/img/task-no.png +0 -0
  18. package/dist/patternfly-docs/quick-starts/design-guidelines/img/task-yes.png +0 -0
  19. package/dist/patternfly-docs/quick-starts/design-guidelines/img/task.png +0 -0
  20. package/dist/patternfly-docs/quick-starts/examples/Basic.jsx +73 -0
  21. package/dist/patternfly-docs/quick-starts/examples/HelpTopic.jsx +53 -0
  22. package/dist/patternfly-docs/quick-starts/examples/about.md +77 -0
  23. package/dist/patternfly-docs/quick-starts/examples/basic.md +27 -0
  24. package/dist/patternfly-docs/quick-starts/examples/example-data/example-help-topics.js +173 -0
  25. package/dist/patternfly-docs/quick-starts/examples/example-data/example-quickstarts.js +215 -0
  26. package/dist/patternfly-docs/quick-starts/examples/example-data/index.js +15 -0
  27. package/dist/patternfly-docs/quick-starts/examples/help-topics.md +25 -0
  28. package/dist/patternfly-docs/quick-starts/examples/img/catalog.png +0 -0
  29. package/dist/patternfly-docs/quick-starts/examples/img/help-topic.png +0 -0
  30. package/dist/patternfly-docs/quick-starts/examples/img/side-panel.png +0 -0
  31. package/dist/quickstarts-full.es.js.map +1 -1
  32. package/package.json +11 -4
  33. package/src/ConsoleInternal/components/_icon-and-text.scss +14 -0
  34. package/src/ConsoleInternal/components/_markdown-view.scss +19 -0
  35. package/src/ConsoleInternal/components/catalog/_catalog.scss +390 -0
  36. package/src/ConsoleInternal/components/markdown-view.tsx +305 -0
  37. package/src/ConsoleInternal/components/utils/_status-box.scss +58 -0
  38. package/src/ConsoleInternal/components/utils/camel-case-wrap.tsx +33 -0
  39. package/src/ConsoleInternal/components/utils/index.tsx +3 -0
  40. package/src/ConsoleInternal/components/utils/router.ts +47 -0
  41. package/src/ConsoleInternal/components/utils/status-box.tsx +94 -0
  42. package/src/ConsoleInternal/module/k8s/types.ts +53 -0
  43. package/src/ConsoleShared/index.ts +1 -0
  44. package/src/ConsoleShared/src/components/index.ts +7 -0
  45. package/src/ConsoleShared/src/components/layout/PageLayout.scss +29 -0
  46. package/src/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.tsx +93 -0
  47. package/src/ConsoleShared/src/components/markdown-extensions/__tests__/MarkdownCopyClipboard.spec.tsx +25 -0
  48. package/src/ConsoleShared/src/components/markdown-extensions/__tests__/test-data.ts +5 -0
  49. package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +66 -0
  50. package/src/ConsoleShared/src/components/markdown-extensions/code-extension.tsx +25 -0
  51. package/src/ConsoleShared/src/components/markdown-extensions/const.ts +3 -0
  52. package/src/ConsoleShared/src/components/markdown-extensions/index.ts +5 -0
  53. package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +45 -0
  54. package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +50 -0
  55. package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +52 -0
  56. package/src/ConsoleShared/src/components/markdown-extensions/utils.ts +3 -0
  57. package/src/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.tsx +64 -0
  58. package/src/ConsoleShared/src/components/markdown-highlight-extension/highlight-consts.ts +9 -0
  59. package/src/ConsoleShared/src/components/markdown-highlight-extension/index.ts +1 -0
  60. package/src/ConsoleShared/src/components/modal/Modal.scss +3 -0
  61. package/src/ConsoleShared/src/components/modal/Modal.tsx +19 -0
  62. package/src/ConsoleShared/src/components/modal/index.ts +1 -0
  63. package/src/ConsoleShared/src/components/popper/Portal.tsx +23 -0
  64. package/src/ConsoleShared/src/components/popper/SimplePopper.tsx +90 -0
  65. package/src/ConsoleShared/src/components/popper/index.ts +2 -0
  66. package/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx +58 -0
  67. package/src/ConsoleShared/src/components/spotlight/Spotlight.tsx +35 -0
  68. package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +32 -0
  69. package/src/ConsoleShared/src/components/spotlight/index.ts +1 -0
  70. package/src/ConsoleShared/src/components/spotlight/spotlight.scss +63 -0
  71. package/src/ConsoleShared/src/components/status/GenericStatus.tsx +33 -0
  72. package/src/ConsoleShared/src/components/status/NotStartedIcon.tsx +27 -0
  73. package/src/ConsoleShared/src/components/status/PopoverStatus.tsx +42 -0
  74. package/src/ConsoleShared/src/components/status/Status.tsx +38 -0
  75. package/src/ConsoleShared/src/components/status/StatusIconAndText.tsx +42 -0
  76. package/src/ConsoleShared/src/components/status/icons.tsx +77 -0
  77. package/src/ConsoleShared/src/components/status/index.tsx +1 -0
  78. package/src/ConsoleShared/src/components/status/statuses.tsx +36 -0
  79. package/src/ConsoleShared/src/components/status/types.ts +7 -0
  80. package/src/ConsoleShared/src/components/utils/FallbackImg.tsx +20 -0
  81. package/src/ConsoleShared/src/components/utils/index.ts +1 -0
  82. package/src/ConsoleShared/src/constants/index.ts +1 -0
  83. package/src/ConsoleShared/src/constants/ui.ts +1 -0
  84. package/src/ConsoleShared/src/hooks/index.ts +6 -0
  85. package/src/ConsoleShared/src/hooks/scroll.ts +52 -0
  86. package/src/ConsoleShared/src/hooks/useBoundingClientRect.ts +18 -0
  87. package/src/ConsoleShared/src/hooks/useEventListener.ts +14 -0
  88. package/src/ConsoleShared/src/hooks/useForceRender.ts +6 -0
  89. package/src/ConsoleShared/src/hooks/useResizeObserver.ts +20 -0
  90. package/src/ConsoleShared/src/hooks/useScrollShadows.ts +45 -0
  91. package/src/ConsoleShared/src/index.ts +4 -0
  92. package/src/ConsoleShared/src/utils/index.ts +1 -0
  93. package/src/ConsoleShared/src/utils/useCombineRefs.ts +17 -0
  94. package/src/HelpTopicDrawer.tsx +124 -0
  95. package/src/HelpTopicPanelContent.tsx +152 -0
  96. package/src/QuickStartCatalogPage.tsx +190 -0
  97. package/src/QuickStartCloseModal.tsx +47 -0
  98. package/src/QuickStartController.tsx +113 -0
  99. package/src/QuickStartDrawer.scss +11 -0
  100. package/src/QuickStartDrawer.tsx +265 -0
  101. package/src/QuickStartMarkdownView.tsx +75 -0
  102. package/src/QuickStartPanelContent.scss +46 -0
  103. package/src/QuickStartPanelContent.tsx +153 -0
  104. package/src/__tests__/quick-start-utils.spec.tsx +16 -0
  105. package/src/catalog/Catalog/QuickStartCatalogHeader.tsx +18 -0
  106. package/src/catalog/Catalog/QuickStartCatalogSection.tsx +9 -0
  107. package/src/catalog/Catalog/QuickStartCatalogToolbar.tsx +12 -0
  108. package/src/catalog/Catalog/index.ts +3 -0
  109. package/src/catalog/QuickStartCatalog.scss +8 -0
  110. package/src/catalog/QuickStartCatalog.tsx +42 -0
  111. package/src/catalog/QuickStartTile.scss +11 -0
  112. package/src/catalog/QuickStartTile.tsx +105 -0
  113. package/src/catalog/QuickStartTileDescription.scss +29 -0
  114. package/src/catalog/QuickStartTileDescription.tsx +79 -0
  115. package/src/catalog/QuickStartTileFooter.tsx +101 -0
  116. package/src/catalog/QuickStartTileFooterExternal.tsx +40 -0
  117. package/src/catalog/QuickStartTileHeader.scss +12 -0
  118. package/src/catalog/QuickStartTileHeader.tsx +77 -0
  119. package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +25 -0
  120. package/src/catalog/Toolbar/QuickStartCatalogFilter.tsx +34 -0
  121. package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +199 -0
  122. package/src/catalog/__tests__/QuickStartCatalog.spec.tsx +35 -0
  123. package/src/catalog/__tests__/QuickStartTile.spec.tsx +38 -0
  124. package/src/catalog/__tests__/QuickStartTileDescription.spec.tsx +44 -0
  125. package/src/catalog/index.ts +9 -0
  126. package/src/controller/QuickStartConclusion.tsx +63 -0
  127. package/src/controller/QuickStartContent.scss +12 -0
  128. package/src/controller/QuickStartContent.tsx +72 -0
  129. package/src/controller/QuickStartFooter.scss +13 -0
  130. package/src/controller/QuickStartFooter.tsx +128 -0
  131. package/src/controller/QuickStartIntroduction.scss +35 -0
  132. package/src/controller/QuickStartIntroduction.tsx +66 -0
  133. package/src/controller/QuickStartTaskHeader.scss +58 -0
  134. package/src/controller/QuickStartTaskHeader.tsx +116 -0
  135. package/src/controller/QuickStartTaskHeaderList.scss +17 -0
  136. package/src/controller/QuickStartTaskHeaderList.tsx +35 -0
  137. package/src/controller/QuickStartTaskReview.scss +30 -0
  138. package/src/controller/QuickStartTaskReview.tsx +81 -0
  139. package/src/controller/QuickStartTasks.scss +89 -0
  140. package/src/controller/QuickStartTasks.tsx +75 -0
  141. package/src/controller/__tests__/QuickStartConclusion.spec.tsx +95 -0
  142. package/src/controller/__tests__/QuickStartContent.spec.tsx +52 -0
  143. package/src/controller/__tests__/QuickStartFooter.spec.tsx +148 -0
  144. package/src/controller/__tests__/QuickStartTaskHeader.spec.tsx +56 -0
  145. package/src/controller/__tests__/QuickStartTaskReview.spec.tsx +45 -0
  146. package/src/controller/__tests__/QuickStartTasks.spec.tsx +81 -0
  147. package/src/data/mocks/json/explore-pipeline-quickstart.ts +66 -0
  148. package/src/data/mocks/json/explore-serverless-quickstart.ts +90 -0
  149. package/src/data/mocks/json/monitor-sampleapp-quickstart.ts +77 -0
  150. package/src/data/mocks/json/tour-icons.ts +3 -0
  151. package/src/data/mocks/yamls/add-healthchecks-quickstart.yaml +67 -0
  152. package/src/data/mocks/yamls/explore-pipeline-quickstart.yaml +57 -0
  153. package/src/data/mocks/yamls/explore-serverless-quickstart.yaml +83 -0
  154. package/src/data/mocks/yamls/install-associate-pipeline-quickstart.yaml +74 -0
  155. package/src/data/mocks/yamls/monitor-sampleapp-quickstart.yaml +66 -0
  156. package/src/data/mocks/yamls/sample-application-quickstart.yaml +97 -0
  157. package/src/data/mocks/yamls/serverless-application-quickstart.yaml +141 -0
  158. package/src/data/quick-start-test-data.ts +10 -0
  159. package/src/data/test-utils.ts +11 -0
  160. package/src/declaration.d.ts +2 -0
  161. package/src/index.ts +17 -0
  162. package/src/locales/en/quickstart.json +46 -0
  163. package/src/styles/_base.scss +54 -0
  164. package/src/styles/_dark-custom-override.scss +62 -0
  165. package/src/styles/legacy-bootstrap/README.md +21 -0
  166. package/src/styles/legacy-bootstrap/_code.scss +44 -0
  167. package/src/styles/legacy-bootstrap/_tables.scss +38 -0
  168. package/src/styles/legacy-bootstrap/_type.scss +90 -0
  169. package/src/styles/legacy-bootstrap/_variables.scss +48 -0
  170. package/src/styles/legacy-bootstrap.scss +5 -0
  171. package/src/styles/patternfly-global-entry.ts +1 -0
  172. package/src/styles/patternfly-global.scss +28 -0
  173. package/src/styles/patternfly-nested-entry.ts +1 -0
  174. package/src/styles/patternfly-nested.scss +18 -0
  175. package/src/styles/quickstarts-standalone-entry.ts +1 -0
  176. package/src/styles/quickstarts-standalone.scss +7 -0
  177. package/src/styles/style.scss +12 -0
  178. package/src/styles/vendor-entry.ts +1 -0
  179. package/src/styles/vendor.scss +7 -0
  180. package/src/utils/PluralResolver.ts +356 -0
  181. package/src/utils/asciidoc-procedure-parser.ts +132 -0
  182. package/src/utils/const.ts +10 -0
  183. package/src/utils/help-topic-context.tsx +74 -0
  184. package/src/utils/help-topic-types.ts +16 -0
  185. package/src/utils/quick-start-context.tsx +477 -0
  186. package/src/utils/quick-start-types.ts +72 -0
  187. package/src/utils/quick-start-utils.ts +92 -0
  188. package/src/utils/useLocalStorage.ts +38 -0
@@ -0,0 +1,2 @@
1
+ declare module '*.scss';
2
+ declare module '*.json';
package/src/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ import './styles/style.scss';
2
+
3
+ export * from './QuickStartCatalogPage';
4
+ export * from './catalog';
5
+ export * from './ConsoleInternal/components/utils';
6
+ export * from './QuickStartDrawer';
7
+ export * from './HelpTopicDrawer';
8
+ export * from './utils/const';
9
+ export * from './utils/quick-start-context';
10
+ export * from './utils/quick-start-types';
11
+ export * from './utils/help-topic-context';
12
+ export * from './utils/help-topic-types';
13
+ export * from './utils/quick-start-utils';
14
+ export * from './utils/useLocalStorage';
15
+ export * from './utils/asciidoc-procedure-parser';
16
+ export { default as QuickStartPanelContent } from './QuickStartPanelContent';
17
+ export { default as QuickStartCloseModal } from './QuickStartCloseModal';
@@ -0,0 +1,46 @@
1
+ {
2
+ "No results found": "No results found",
3
+ "No results match the filter criteria. Remove filters or clear all filters to show results.": "No results match the filter criteria. Remove filters or clear all filters to show results.",
4
+ "Clear all filters": "Clear all filters",
5
+ "Quick Starts": "Quick Starts",
6
+ "Complete ({{statusCount, number}})": "Complete ({{statusCount, number}})",
7
+ "In progress ({{statusCount, number}})": "In progress ({{statusCount, number}})",
8
+ "Not started ({{statusCount, number}})": "Not started ({{statusCount, number}})",
9
+ "Filter by keyword...": "Filter by keyword...",
10
+ "Select filter": "Select filter",
11
+ "Status": "Status",
12
+ "{{count, number}} item": "{{count, number}} item",
13
+ "{{count, number}} item_plural": "{{count, number}} items",
14
+ "Prerequisites ({{totalPrereqs}})": "Prerequisites ({{totalPrereqs}})",
15
+ "View Prerequisites ({{totalPrereqs}})": "View Prerequisites ({{totalPrereqs}})",
16
+ "Prerequisites": "Prerequisites",
17
+ "Show prerequisites": "Show prerequisites",
18
+ "Complete": "Complete",
19
+ "In progress": "In progress",
20
+ "Not started": "Not started",
21
+ "{{duration, number}} minutes": "{{duration, number}} minutes",
22
+ "One or more verifications did not pass during this quick start. Revisit the tasks or the help links, and then try again.": "One or more verifications did not pass during this quick start. Revisit the tasks or the help links, and then try again.",
23
+ "Start {{nextQSDisplayName}} quick start": "Start {{nextQSDisplayName}} quick start",
24
+ "Start": "Start",
25
+ "Continue": "Continue",
26
+ "Next": "Next",
27
+ "Close": "Close",
28
+ "Back": "Back",
29
+ "Restart": "Restart",
30
+ "In this quick start, you will complete {{count, number}} task": "In this quick start, you will complete {{count, number}} task",
31
+ "In this quick start, you will complete {{count, number}} task_plural": "In this quick start, you will complete {{count, number}} tasks",
32
+ "{{taskIndex, number}}": "{{taskIndex, number}}",
33
+ "Check your work": "Check your work",
34
+ "Yes": "Yes",
35
+ "No": "No",
36
+ "{{index, number}} of {{tasks, number}}": "{{index, number}} of {{tasks, number}}",
37
+ "Leave quick start?": "Leave quick start?",
38
+ "Cancel": "Cancel",
39
+ "Leave": "Leave",
40
+ "Your progress will be saved.": "Your progress will be saved.",
41
+ "Not available": "Not available",
42
+ "Copy to clipboard": "Copy to clipboard",
43
+ "Successfully copied to clipboard!": "Successfully copied to clipboard!",
44
+ "Type": "Quick start",
45
+ "{{type}} • {{duration, number}} minutes": "{{type}} • {{duration, number}} minutes"
46
+ }
@@ -0,0 +1,54 @@
1
+ // Base element styles.
2
+ // Please DO NOT add rules of this type.
3
+ .pfext-quick-start-panel-content__body {
4
+ dl {
5
+ margin: 0px; }
6
+
7
+ // match pf4 styling / table col head styling
8
+ dt {
9
+ font-weight: var(--pf-global--FontWeight--bold); }
10
+
11
+ dd {
12
+ margin-bottom: 20px; }
13
+
14
+ dd:last-child {
15
+ margin-bottom: 0px; }
16
+
17
+ input[type="number"] {
18
+ -webkit-appearance: textfield;
19
+ appearance: textfield;
20
+ max-width: 100px;
21
+ &::-webkit-inner-spin-button,
22
+ &::-webkit-outer-spin-button {
23
+ -webkit-appearance: none;
24
+ }
25
+ }
26
+
27
+ input[type="radio"] {
28
+ margin-right: 7px;
29
+ }
30
+
31
+ .pf-c-list {
32
+ --pf-c-list--PaddingLeft: 20px;
33
+ }
34
+ }
35
+
36
+ // drawer
37
+ .pfext-quick-start-panel-content__header,
38
+ .pfext-quick-start-panel-content__body,
39
+ // catalog gallery wrapper
40
+ .pfext-page-layout__content,
41
+ // catalog item prereq popover
42
+ .pfext-popover__base {
43
+ --pf-global--FontSize--md: 14px;
44
+ --pf-global--FontSize--sm: 13px;
45
+
46
+ ul {
47
+ list-style-type: disc;
48
+ }
49
+
50
+ input[type='radio'],
51
+ input[type='checkbox'] {
52
+ margin-top: 1px !important;
53
+ }
54
+ }
@@ -0,0 +1,62 @@
1
+ .pf-theme-dark {
2
+ .pfext-catalog-item-icon__img--large {
3
+ // Not perfect, but gives a better result for colors than just inverting
4
+ // by inverts to switch b/w, then rotates to get colors approximately back
5
+ filter: brightness(1.5) invert(1) hue-rotate(180deg) saturate(4);
6
+ }
7
+
8
+ // duration color was gray on white but on the blue header, only white text works
9
+ .pfext-quick-start-panel-content__header--blue-white .pfext-quick-start-panel-content__duration {
10
+ color: var(--pf-global--Color--light-100);
11
+ }
12
+
13
+ .pfext-quick-start-task-header__subtitle {
14
+ color: var(--pf-global--palette--black-200) !important;
15
+ }
16
+
17
+ .pfext-quick-start-task-header__task-icon-init {
18
+ background-color: var(--pf-global--primary-color--300);
19
+ }
20
+
21
+ .pfext-quick-start-task-header__tryagain {
22
+ color: var(--pf-global--palette--black-200) !important;
23
+ }
24
+
25
+ .pfext-markdown-view pre {
26
+ background-color: var(--pf-global--BackgroundColor--100);
27
+ border-color: var(--pf-global--BorderColor--100);
28
+ }
29
+
30
+ .pfext-markdown-view code {
31
+ color: var(--pf-global--Color--100);
32
+ background-color: var(--pf-global--palette--black-600);
33
+ }
34
+
35
+ .pfext-markdown-view .pf-c-code-block,
36
+ .pfext-markdown-view .pf-c-code-block code {
37
+ background-color: var(--pf-global--BackgroundColor--400);
38
+ }
39
+
40
+ :where(.pfext-markdown-view) .pf-c-clipboard-copy.pf-m-inline {
41
+ --pf-c-clipboard-copy--m-inline--BackgroundColor: var(--pf-global--BackgroundColor--400);
42
+ }
43
+
44
+ // Make the cards light on dark background. It would be better to use pf-c-page__main-section variable but we aren't using a page section here.
45
+ .pfext-page-layout__content {
46
+ background-color: var(--pf-global--BackgroundColor--200);
47
+ }
48
+
49
+ .pfext-quick-start-catalog__gallery-item .pf-c-card {
50
+ --pf-c-card--BackgroundColor: var(--pf-global--BackgroundColor--100);
51
+ }
52
+
53
+ // Alerts currently has the wrong background in the PF dark stylesheet. This can be removed once that is fixed.
54
+ .pf-c-alert {
55
+ --pf-c-alert--BackgroundColor: var(--pf-global--palette--black-700);
56
+ --pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--black-700);
57
+ --pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--black-700);
58
+ --pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--black-700);
59
+ --pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--black-700);
60
+ --pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--black-700);
61
+ }
62
+ }
@@ -0,0 +1,21 @@
1
+ Contains a number of bootstrap styles that were implicitly in use within the markdown sections.
2
+
3
+ Before we had a dependency on bootstrap-sass and pulled in several of their styles.
4
+
5
+ "bootstrap-sass": "^3.3.7",
6
+
7
+ ```
8
+ .pfext-markdown-view {
9
+ @import './ConsoleInternal/style/vars';
10
+ @import 'patternfly/dist/sass/patternfly/variables';
11
+ @import 'bootstrap-sass/assets/stylesheets/bootstrap/variables';
12
+ @import 'bootstrap-sass/assets/stylesheets/bootstrap/mixins';
13
+ @import 'patternfly/dist/sass/patternfly/bootstrap-mixin-overrides';
14
+
15
+ @import 'bootstrap-sass/assets/stylesheets/bootstrap/type';
16
+ @import 'bootstrap-sass/assets/stylesheets/bootstrap/code';
17
+ @import 'bootstrap-sass/assets/stylesheets/bootstrap/tables';
18
+ }
19
+ ```
20
+
21
+ Now we try to contain to a smaller subset and copy it in directly.
@@ -0,0 +1,44 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ pre {
9
+ font-family: $font-family-monospace;
10
+ }
11
+
12
+ // Inline code
13
+ code {
14
+ padding: 2px 4px;
15
+ font-size: 90%;
16
+ color: $code-color;
17
+ background-color: $code-bg;
18
+ border-radius: $border-radius-base;
19
+ }
20
+
21
+ // Blocks of code
22
+ pre {
23
+ display: block;
24
+ padding: (($line-height-computed - 1) / 2);
25
+ margin: 0 0 ($line-height-computed / 2);
26
+ font-size: ($font-size-base - 1); // 14px to 13px
27
+ line-height: $line-height-base;
28
+ color: $pre-color;
29
+ word-break: break-all;
30
+ word-wrap: break-word;
31
+ background-color: $pre-bg;
32
+ border: 1px solid $pre-border-color;
33
+ border-radius: $border-radius-base;
34
+
35
+ // Account for some code outputs that place code tags in pre tags
36
+ code {
37
+ padding: 0;
38
+ font-size: inherit;
39
+ color: inherit;
40
+ white-space: pre-wrap;
41
+ background-color: transparent;
42
+ border-radius: 0;
43
+ }
44
+ }
@@ -0,0 +1,38 @@
1
+ //
2
+ // Tables
3
+ // --------------------------------------------------
4
+
5
+
6
+ table {
7
+ background-color: $table-bg;
8
+
9
+ // Table cell sizing
10
+ //
11
+ // Reset default table behavior
12
+
13
+ col[class*="col-"] {
14
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
15
+ display: table-column;
16
+ float: none;
17
+ }
18
+
19
+ td,
20
+ th {
21
+ &[class*="col-"] {
22
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
23
+ display: table-cell;
24
+ float: none;
25
+ }
26
+ }
27
+ }
28
+
29
+ caption {
30
+ padding-top: $table-cell-padding;
31
+ padding-bottom: $table-cell-padding;
32
+ color: $text-muted;
33
+ text-align: left;
34
+ }
35
+
36
+ th {
37
+ text-align: left;
38
+ }
@@ -0,0 +1,90 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Headings
7
+ // -------------------------
8
+
9
+ h1, h2, h3, h4, h5, h6,
10
+ .h1, .h2, .h3, .h4, .h5, .h6 {
11
+ font-family: $headings-font-family;
12
+ font-weight: $headings-font-weight;
13
+ line-height: $headings-line-height;
14
+ color: $headings-color;
15
+ }
16
+
17
+ h1, .h1,
18
+ h2, .h2,
19
+ h3, .h3 {
20
+ margin-top: $line-height-computed;
21
+ margin-bottom: ($line-height-computed / 2);
22
+ }
23
+ h4, .h4,
24
+ h5, .h5,
25
+ h6, .h6 {
26
+ margin-top: ($line-height-computed / 2);
27
+ margin-bottom: ($line-height-computed / 2);
28
+ }
29
+
30
+ h1, .h1 { font-size: $font-size-h1; }
31
+ h2, .h2 { font-size: $font-size-h2; }
32
+ h3, .h3 { font-size: $font-size-h3; }
33
+ h4, .h4 { font-size: $font-size-h4; }
34
+ h5, .h5 { font-size: $font-size-h5; }
35
+ h6, .h6 { font-size: $font-size-h6; }
36
+
37
+
38
+ // Body text
39
+ // -------------------------
40
+
41
+ p {
42
+ margin: 0 0 ($line-height-computed / 2);
43
+ }
44
+
45
+
46
+ // Lists
47
+ // -------------------------
48
+
49
+ // Unordered and Ordered lists
50
+ ul,
51
+ ol {
52
+ margin-top: 0;
53
+ margin-bottom: ($line-height-computed / 2);
54
+ ul,
55
+ ol {
56
+ margin-bottom: 0;
57
+ }
58
+ }
59
+
60
+ // Description Lists
61
+ dl {
62
+ margin-top: 0; // Remove browser default
63
+ margin-bottom: $line-height-computed;
64
+ }
65
+ dt,
66
+ dd {
67
+ line-height: $line-height-base;
68
+ }
69
+ dt {
70
+ font-weight: 700;
71
+ }
72
+ dd {
73
+ margin-left: 0; // Undo browser default
74
+ }
75
+
76
+ // Blockquotes
77
+ blockquote {
78
+ padding: ($line-height-computed / 2) $line-height-computed;
79
+ margin: 0 0 $line-height-computed;
80
+ font-size: $blockquote-font-size;
81
+ border-left: 5px solid $blockquote-border-color;
82
+
83
+ p,
84
+ ul,
85
+ ol {
86
+ &:last-child {
87
+ margin-bottom: 0;
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,48 @@
1
+ // PF4 overrides
2
+ $font-size-base: 14px;
3
+ $font-size-h1: var(--pf-global--FontSize--2xl);
4
+ $font-size-h2: 20px; // must be literal value because of calculation in patternfly/dist/sass/patternfly/_list-view.scss
5
+ $font-size-h3: var(--pf-global--FontSize--lg);
6
+ $font-size-h4: var(--pf-global--FontSize--md);
7
+ $font-size-h5: var(--pf-global--FontSize--md);
8
+ $font-size-h6: var(--pf-global--FontSize--md);
9
+ $grid-gutter-width: 30px;
10
+ $headings-font-family: var(--pf-global--FontFamily--heading--sans-serif);
11
+ $headings-font-weight: var(--pf-global--FontWeight--normal);
12
+
13
+ // PF3 variables
14
+ $color-pf-black: #030303 !default;
15
+ $color-pf-black-600: #72767b !default;
16
+ $color-pf-white: #fff !default;
17
+ $color-pf-black-150: #f5f5f5 !default;
18
+ $color-pf-blue-600: #004368 !default;
19
+ $color-pf-blue-50: #def3ff !default;
20
+ $color-pf-black-100: #fafafa !default;
21
+
22
+ // PF3 bootstrap overrides
23
+ $line-height-base: 1.66666667 !default; // 20/12
24
+ $line-height-computed: floor(($font-size-base * $line-height-base)) !default;
25
+ $gray-light: lighten($color-pf-black, 60%) !default; // #999
26
+ $gray-lighter: lighten($color-pf-black, 93.5%) !default; // #eee
27
+ $gray-dark: lighten($color-pf-black, 20%) !default; // #333
28
+ $font-family-monospace: Menlo, Monaco, Consolas, monospace !default;
29
+ $code-color: $color-pf-blue-600 !default;
30
+ $code-bg: $color-pf-blue-50 !default;
31
+ $pre-bg: $color-pf-black-100 !default;
32
+ $border-radius-base: 1px !default;
33
+ $table-cell-padding: 10px !default;
34
+
35
+ // bootstrap variables
36
+ $screen-sm: 768px !default;
37
+ $screen-sm-min: $screen-sm !default;
38
+ $grid-float-breakpoint: $screen-sm-min !default;
39
+ $screen-md: 992px !default;
40
+ $headings-line-height: 1.1 !default;
41
+ $headings-color: inherit !default;
42
+ $gray-base: #000 !default;
43
+ $blockquote-font-size: ($font-size-base * 1.25) !default;
44
+ $blockquote-border-color: $gray-lighter !default;
45
+ $pre-color: $gray-dark !default;
46
+ $pre-border-color: #ccc !default;
47
+ $table-bg: transparent !default;
48
+ $text-muted: $gray-light !default;
@@ -0,0 +1,5 @@
1
+ .pfext-markdown-view {
2
+ @import './legacy-bootstrap/type';
3
+ @import './legacy-bootstrap/code';
4
+ @import './legacy-bootstrap/tables';
5
+ }
@@ -0,0 +1 @@
1
+ import './patternfly-global.scss';
@@ -0,0 +1,28 @@
1
+ // pulls in the patternfly drawer styles, in case the consumer does not have them
2
+ // which can happen when they're not using PatternFly, or a different (older) version
3
+ // some global styles that quickstarts uses (Drawer, Popover, Modal, Backdrop, Bullseye)
4
+
5
+ // TODO: Investigate if we can remove and/or nest these within patternfly-nested.css
6
+ // what do we really need to expose globally?
7
+ // here are the classes that exist outside the scope of .pfext-quick-start__base:
8
+ // class="pf-c-popover pfext-quick-start__base pf-m-right"
9
+ // class="pf-c-modal-box pfext-modal pfext-quick-start-drawer__modal pfext-quick-start__base pf-m-sm"
10
+ // class="pf-c-backdrop__open"
11
+ // class="pf-c-backdrop"
12
+ // class="pf-l-bullseye"
13
+ // class="pf-c-tooltip pf-m-top pfext-quick-start__base"
14
+
15
+ @import '@patternfly/patternfly/sass-utilities/all';
16
+ // gets added globally to :root
17
+ @import '@patternfly/patternfly/base/variables';
18
+
19
+ @import '@patternfly/patternfly/components/Drawer/drawer.scss';
20
+ @import '@patternfly/patternfly/components/Popover/popover.scss';
21
+
22
+ // for the 'Leave quick start?` modal
23
+ @import '@patternfly/patternfly/components/ModalBox/modal-box.scss';
24
+ @import '@patternfly/patternfly/components/Backdrop/backdrop.scss';
25
+ @import '@patternfly/patternfly/layouts/Bullseye/bullseye.scss';
26
+
27
+ // for the markdown extension that lets users copy text to clipboard
28
+ @import '@patternfly/patternfly/components/Tooltip/tooltip.scss';
@@ -0,0 +1 @@
1
+ import './patternfly-nested.scss';
@@ -0,0 +1,18 @@
1
+ // pulls in the patternfly styles, in case the consumer does not have them
2
+ // which can happen when they're not using PatternFly, or a different (older) version
3
+ // that could be incompatible with the version of PatternFly that we're using
4
+
5
+ @import '@patternfly/patternfly/sass-utilities/all';
6
+
7
+ .pfext-quick-start__base {
8
+ $pf-global--enable-reset: false;
9
+ @import '@patternfly/patternfly/base/common';
10
+ @import '@patternfly/patternfly/utilities/Accessibility/accessibility.scss';
11
+
12
+ // it's okay that we include everything since we'll purge the unused styles
13
+ @import '@patternfly/patternfly/components/all';
14
+ @import '@patternfly/patternfly/layouts/all';
15
+
16
+ // some apps globally set text-align: center
17
+ text-align: left;
18
+ }
@@ -0,0 +1 @@
1
+ import './quickstarts-standalone.scss';
@@ -0,0 +1,7 @@
1
+ .pfext-quick-start__base {
2
+ @import './style.scss';
3
+ @import '../*.scss';
4
+ @import '../catalog/**/*.scss';
5
+ @import '../controller/**/*.scss';
6
+ @import './vendor.scss';
7
+ }
@@ -0,0 +1,12 @@
1
+ @import '@patternfly/patternfly/sass-utilities/all';
2
+ @import './legacy-bootstrap/variables';
3
+
4
+ @import './base';
5
+ @import './dark-custom-override';
6
+
7
+ // React Components
8
+ @import '../ConsoleInternal/**/*.scss';
9
+ @import '../ConsoleShared/**/*.scss';
10
+
11
+ // legacy bootstrap typography styles for markdown content
12
+ @import './legacy-bootstrap.scss';
@@ -0,0 +1 @@
1
+ import './vendor.scss';
@@ -0,0 +1,7 @@
1
+ // be careful about adding additional stylesheets here, they are bundled into the quickstarts.css
2
+
3
+ @import '@patternfly/patternfly/sass-utilities/all';
4
+
5
+ @import '@patternfly/react-catalog-view-extension/dist/sass/react-catalog-view-extension.scss';
6
+ @import '@patternfly/patternfly/components/ClipboardCopy/clipboard-copy.scss';
7
+ @import '@patternfly/patternfly/components/CodeBlock/code-block.scss';