@patternfly/documentation-framework 1.0.0
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.
- package/CHANGELOG.md +3964 -0
- package/README.md +92 -0
- package/app.js +118 -0
- package/assets/android-chrome-36x36.png +0 -0
- package/assets/android-chrome-48x48.png +0 -0
- package/assets/android-chrome-96x96.png +0 -0
- package/assets/favicon-16x16.png +0 -0
- package/assets/favicon-32x32.png +0 -0
- package/assets/favicon-48x48.png +0 -0
- package/assets/favicon.ico +0 -0
- package/assets/manifest.json +29 -0
- package/components/autoLinkHeader/autoLinkHeader.css +22 -0
- package/components/autoLinkHeader/autoLinkHeader.js +41 -0
- package/components/cssVariables/cssSearch.js +32 -0
- package/components/cssVariables/cssVariables.css +15 -0
- package/components/cssVariables/cssVariables.js +233 -0
- package/components/example/example.css +106 -0
- package/components/example/example.js +196 -0
- package/components/example/exampleToolbar.js +208 -0
- package/components/example/missing-thumbnail.jpg +0 -0
- package/components/footer/RHLogo.png +0 -0
- package/components/footer/footer.css +114 -0
- package/components/footer/footer.js +262 -0
- package/components/gdprBanner/gdprBanner.css +14 -0
- package/components/gdprBanner/gdprBanner.js +31 -0
- package/components/index.js +12 -0
- package/components/inlineAlert/inlineAlert.js +19 -0
- package/components/link/link.js +68 -0
- package/components/propsTable/propTypeWithLinks.js +33 -0
- package/components/propsTable/propsTable.js +82 -0
- package/components/sideNav/sideNav.css +17 -0
- package/components/sideNav/sideNav.js +95 -0
- package/components/tableOfContents/tableOfContents.css +77 -0
- package/components/tableOfContents/tableOfContents.js +89 -0
- package/components/topNav/topNav.css +30 -0
- package/components/topNav/topNav.js +24 -0
- package/global.css +7 -0
- package/helpers/asyncComponentFactory.js +41 -0
- package/helpers/capitalize.js +7 -0
- package/helpers/codeTitleTransformer.js +40 -0
- package/helpers/codesandbox.js +204 -0
- package/helpers/copy.js +19 -0
- package/helpers/createHandlebars.js +26 -0
- package/helpers/d3-timer.js +7 -0
- package/helpers/extractExampleHelpers.js +24 -0
- package/helpers/fonts.js +164 -0
- package/helpers/getId.js +6 -0
- package/helpers/getTitle.js +5 -0
- package/helpers/index.js +9 -0
- package/helpers/liveCodeTypes.js +4 -0
- package/helpers/slugger.js +35 -0
- package/helpers/trackEvent.js +17 -0
- package/helpers/xterm-addon-fit.js +3 -0
- package/helpers/xterm.js +8 -0
- package/images/patternfly-logo.svg +14 -0
- package/images/patternfly-orb.svg +28 -0
- package/layouts/index.js +1 -0
- package/layouts/logo.svg +33 -0
- package/layouts/sideNavLayout/sideNavLayout.css +104 -0
- package/layouts/sideNavLayout/sideNavLayout.js +237 -0
- package/package.json +87 -0
- package/pages/404/404.css +16 -0
- package/pages/404/404.svg +26 -0
- package/pages/404/chart.svg +24 -0
- package/pages/404/components.svg +1 -0
- package/pages/404/guidelines.svg +1 -0
- package/pages/404/index.js +136 -0
- package/pages/404/patternfly-flat.svg +1 -0
- package/pages/global-css-variables.md +108 -0
- package/pages/img/component-variable-mapping.png +0 -0
- package/pages/red-hat-font.md +40 -0
- package/routes-client.js +1 -0
- package/routes-generated.js +1 -0
- package/routes.js +155 -0
- package/scripts/cli/build.js +95 -0
- package/scripts/cli/buildClient.js +23 -0
- package/scripts/cli/buildServer.js +24 -0
- package/scripts/cli/cli.js +63 -0
- package/scripts/cli/generate.js +23 -0
- package/scripts/cli/helpers.js +9 -0
- package/scripts/cli/init.js +68 -0
- package/scripts/cli/serve.js +13 -0
- package/scripts/cli/start.js +32 -0
- package/scripts/md/anchor-header.js +69 -0
- package/scripts/md/auto-link-url.js +33 -0
- package/scripts/md/example-captions.js +67 -0
- package/scripts/md/jsxAttributes.js +20 -0
- package/scripts/md/mdx-ast-to-mdx-hast.js +210 -0
- package/scripts/md/mdx-hast-to-jsx.js +233 -0
- package/scripts/md/parseMD.js +308 -0
- package/scripts/md/remove-comments.js +21 -0
- package/scripts/md/styled-tags.js +87 -0
- package/scripts/md/typecheck.js +133 -0
- package/scripts/tsDocgen.js +155 -0
- package/scripts/webpack/getHtmlWebpackPlugins.js +78 -0
- package/scripts/webpack/prerender.js +59 -0
- package/scripts/webpack/webpack.base.config.js +159 -0
- package/scripts/webpack/webpack.client.config.js +146 -0
- package/scripts/webpack/webpack.server.config.js +55 -0
- package/scripts/writeScreenshots.js +66 -0
- package/templates/design-guidelines.js +13 -0
- package/templates/html.ejs +52 -0
- package/templates/mdx.css +308 -0
- package/templates/mdx.js +185 -0
- package/templates/patternfly-docs/content/extensions/extension/design-guidelines/design-guidelines.md +25 -0
- package/templates/patternfly-docs/content/extensions/extension/design-guidelines/img/card-elements.png +0 -0
- package/templates/patternfly-docs/content/extensions/extension/examples/Basic.jsx +4 -0
- package/templates/patternfly-docs/content/extensions/extension/examples/basic.md +25 -0
- package/templates/patternfly-docs/pages/index.js +27 -0
- package/templates/patternfly-docs/patternfly-docs.config.js +6 -0
- package/templates/patternfly-docs/patternfly-docs.css.js +8 -0
- package/templates/patternfly-docs/patternfly-docs.routes.js +12 -0
- package/templates/patternfly-docs/patternfly-docs.source.js +24 -0
- package/templates/sitemap.ejs +10 -0
- package/versions.json +870 -0
package/helpers/fonts.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// Export absolute paths for font files, to be used in place of relative paths for codesandbox
|
|
2
|
+
module.exports =
|
|
3
|
+
`@font-face {
|
|
4
|
+
font-family: "overpass";
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 200;
|
|
7
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin.eot");
|
|
8
|
+
/* IE9 Compat Modes */
|
|
9
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin.ttf") format("truetype");
|
|
10
|
+
/* Safari, Android, iOS */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: "overpass";
|
|
15
|
+
font-style: italic;
|
|
16
|
+
font-weight: 200;
|
|
17
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin-italic.eot");
|
|
18
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-thin-italic.ttf") format("truetype");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: "overpass";
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 300;
|
|
25
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight.eot");
|
|
26
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight.ttf") format("truetype");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "overpass";
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-weight: 300;
|
|
33
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight-italic.eot");
|
|
34
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extralight-italic.ttf") format("truetype");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: "overpass";
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light.eot");
|
|
42
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light.ttf") format("truetype");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@font-face {
|
|
46
|
+
font-family: "overpass";
|
|
47
|
+
font-style: italic;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light-italic.eot");
|
|
50
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-light-italic.ttf") format("truetype");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: "overpass";
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-regular.eot");
|
|
58
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-regular.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-regular.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-regular.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-regular.ttf") format("truetype");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@font-face {
|
|
62
|
+
font-family: "overpass";
|
|
63
|
+
font-style: italic;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-italic.eot");
|
|
66
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-italic.ttf") format("truetype");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: "overpass";
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold.eot");
|
|
74
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold.ttf") format("truetype");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: "overpass";
|
|
79
|
+
font-style: italic;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold-italic.eot");
|
|
82
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-semibold-italic.ttf") format("truetype");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: "overpass";
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 700;
|
|
89
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold.eot");
|
|
90
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold.ttf") format("truetype");
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: "overpass";
|
|
95
|
+
font-style: italic;
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold-italic.eot");
|
|
98
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-bold-italic.ttf") format("truetype");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@font-face {
|
|
102
|
+
font-family: "overpass";
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 800;
|
|
105
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold.eot");
|
|
106
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold.ttf") format("truetype");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@font-face {
|
|
110
|
+
font-family: "overpass";
|
|
111
|
+
font-style: italic;
|
|
112
|
+
font-weight: 800;
|
|
113
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold-italic.eot");
|
|
114
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-extrabold-italic.ttf") format("truetype");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: "overpass";
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-weight: 900;
|
|
121
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy.eot");
|
|
122
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy.ttf") format("truetype");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@font-face {
|
|
126
|
+
font-family: "overpass";
|
|
127
|
+
font-style: italic;
|
|
128
|
+
font-weight: 900;
|
|
129
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy-italic.eot");
|
|
130
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy-italic.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy-italic.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy-italic.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-webfont/overpass-heavy-italic.ttf") format("truetype");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@font-face {
|
|
134
|
+
font-family: "overpass-mono";
|
|
135
|
+
font-style: normal;
|
|
136
|
+
font-weight: 300;
|
|
137
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-light.eot");
|
|
138
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-light.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-light.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-light.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-light.ttf") format("truetype");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@font-face {
|
|
142
|
+
font-family: "overpass-mono";
|
|
143
|
+
font-style: normal;
|
|
144
|
+
font-weight: 400;
|
|
145
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-regular.eot");
|
|
146
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-regular.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-regular.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-regular.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-regular.ttf") format("truetype");
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@font-face {
|
|
150
|
+
font-family: "overpass-mono";
|
|
151
|
+
font-style: normal;
|
|
152
|
+
font-weight: 500;
|
|
153
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-semibold.eot");
|
|
154
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-semibold.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-semibold.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-semibold.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-semibold.ttf") format("truetype");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@font-face {
|
|
158
|
+
font-family: "overpass-mono";
|
|
159
|
+
font-style: normal;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-bold.eot");
|
|
162
|
+
src: url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-bold.eot?#iefix") format("embedded-opentype"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-bold.woff2") format("woff2"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-bold.woff") format("woff"), url("https://unpkg.com/@patternfly/patternfly@2.40.13/assets/fonts/overpass-mono-webfont/overpass-mono-bold.ttf") format("truetype");
|
|
163
|
+
}
|
|
164
|
+
`;
|
package/helpers/getId.js
ADDED
package/helpers/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './capitalize';
|
|
2
|
+
export * from './codesandbox';
|
|
3
|
+
export * from './copy';
|
|
4
|
+
export * from './getId';
|
|
5
|
+
export * from './slugger';
|
|
6
|
+
export * from './extractExampleHelpers';
|
|
7
|
+
export * from './getTitle';
|
|
8
|
+
export * from './liveCodeTypes';
|
|
9
|
+
export * from './trackEvent';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const React = require('react');
|
|
2
|
+
|
|
3
|
+
// Should produce valid URLs and valid CSS ids
|
|
4
|
+
const slugger = children => {
|
|
5
|
+
const value = React.Children.toArray(children).join('');
|
|
6
|
+
return value
|
|
7
|
+
.toLowerCase()
|
|
8
|
+
.trim()
|
|
9
|
+
.replace(/index$/, '')
|
|
10
|
+
.replace(/\s/g, '-')
|
|
11
|
+
.replace(/[^A-Za-z0-9.\-~]/g, '');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const makeSlug = (source, section, id, noSource) => {
|
|
15
|
+
let url = '';
|
|
16
|
+
|
|
17
|
+
if (section) {
|
|
18
|
+
url += `/${slugger(section)}`
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (id) {
|
|
22
|
+
url += `/${slugger(id)}`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (source && !source.includes('pages-') && !noSource) {
|
|
26
|
+
url += `/${source}`;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return url;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = {
|
|
33
|
+
slugger,
|
|
34
|
+
makeSlug
|
|
35
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sends network call using Google Analytic's gtag function
|
|
3
|
+
* https://developers.google.com/analytics/devguides/collection/gtagjs/events#send_events
|
|
4
|
+
*
|
|
5
|
+
* @param name {string} - The value that will appear as the event action in Google Analytics Event reports.
|
|
6
|
+
* @param eventCategory {string} - The category of the event.
|
|
7
|
+
* @param eventLabel {string} - The label of the event.
|
|
8
|
+
* @param [value] {number} - An optional non-negative integer that will appear as the event value.
|
|
9
|
+
*/
|
|
10
|
+
export const trackEvent = ( name, eventCategory, eventLabel, value) => {
|
|
11
|
+
window.gtag && window.gtag('event', name, {
|
|
12
|
+
'event_category': eventCategory,
|
|
13
|
+
'event_label': eventLabel,
|
|
14
|
+
// Optional non-negative integer
|
|
15
|
+
...(value >= 0 && {value})
|
|
16
|
+
});
|
|
17
|
+
};
|
package/helpers/xterm.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 253 253">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="linear-gradient" x1="126.56068" y1="7.39443" x2="126.56068" y2="443.45713" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0" stop-color="#54eeff" />
|
|
5
|
+
<stop offset="0.22272" stop-color="#49d7f2" />
|
|
6
|
+
<stop offset="0.55448" stop-color="#36addb" />
|
|
7
|
+
<stop offset="0.9679" stop-color="#288eca" />
|
|
8
|
+
<stop offset="1" stop-color="#1f7cc0" />
|
|
9
|
+
<stop offset="1" stop-color="#1c75bc" />
|
|
10
|
+
</linearGradient>
|
|
11
|
+
</defs>
|
|
12
|
+
<title>PatternFly Logo</title>
|
|
13
|
+
<path d="M126.27565,1.55662l.35.79-.35-.44-.1-.12-.06-.08-1.07,1.05005-123.6,120.82,49.44,70.04,37.99-9.04,37.69,52.98,37.67-52.96,38,9.02,49.44-70.04Zm47.54,127.01-23.29,33.47-13.41-116.27Zm-34.52-97.63,54.66,68.69-14.8,21.26Zm-13.02-9.34,17.34,150.36-16.66,23.94-17.45-24.59Zm-23.72,139.9-23.35-32.9,36.29-82.6Zm-28.74-40.51-15.2-21.42,55.43-70.17Zm-19.52,63.59-42.38-60.04,74.3-72.63-37.44995,47.4,21.35,30.09-7.82,17.81,21.58,30.33Zm17.15-38.31,4.07-9.26,25.72,36.25-.02.16-8.94,2.13Zm55.12,77.49-29.29-41.18,9.05-2.15,20.7,29.18,20.21-29.05,8.6,2.04Zm34.27-48.19-8.69-2.07,25.41-36.5,4.11,9.28Zm37.99005,9.01-29.59-7.02,21.59-30.35-7.93006-17.88995,20.88-30.01-39.41-49.52,76.83,74.76Z" fill="url(#linear-gradient)" />
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
5
|
+
width="320px" height="320px" viewBox="0 0 320 320" enable-background="new 0 0 320 320" xml:space="preserve">
|
|
6
|
+
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="160" y1="320" x2="160" y2="0">
|
|
7
|
+
<stop offset="0" style="stop-color:#E6E6E6"/>
|
|
8
|
+
<stop offset="0.75" style="stop-color:#FFFFFF"/>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
<circle fill="url(#SVGID_1_)" cx="160" cy="160" r="160"/>
|
|
11
|
+
<g>
|
|
12
|
+
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="160" y1="54.8711" x2="160" y2="272.935">
|
|
13
|
+
<stop offset="0" style="stop-color:#54EEFF"/>
|
|
14
|
+
<stop offset="1" style="stop-color:#1C75BC"/>
|
|
15
|
+
</linearGradient>
|
|
16
|
+
<path fill="url(#SVGID_2_)" d="M160.27,48.269l0.022-0.206l-0.102,0.126l-0.04-0.039l0.034-0.328l-0.184,0.181l-0.188-0.181
|
|
17
|
+
l0.035,0.328l-0.04,0.039l-0.102-0.126l0.022,0.206L41.296,164.039L88.2,230.485l36.231-8.319l35.569,50.012l35.568-50.012
|
|
18
|
+
l36.231,8.319l29.053-41.16l17.851-25.287L160.27,48.269z M156.403,61.86l-16.178,151.596l-31.613-43.118L156.403,61.86z
|
|
19
|
+
M107.062,168.225l-19.895-27.136l69.065-84.474L107.062,168.225z M139.543,216.366l-14.142,3.245l-23.771-33.421l5.924-13.449
|
|
20
|
+
L139.543,216.366z M159.627,54.544l0.374-0.848l0.372,0.844l16.728,162.987l-0.051-0.034l-16.39,24.219l-17.733-24.254
|
|
21
|
+
l-0.021,0.016L159.627,54.544z M179.774,213.458L163.597,61.856l47.79,108.482L179.774,213.458z M212.445,172.741l5.926,13.449
|
|
22
|
+
L194.6,219.611l-14.143-3.245L212.445,172.741z M163.77,56.619l69.063,84.47l-19.894,27.136L163.77,56.619z M89.178,227.93
|
|
23
|
+
l-44.909-63.619l104.499-102.15l-64.473,78.853l21.711,29.61l-6.974,15.831l23.974,33.708L89.178,227.93z M160.001,268.26
|
|
24
|
+
l-33.176-46.645l14.181-3.256l0.238,0.327l-0.152,0.112l19.64,26.859l18.199-26.891l-0.155-0.105l0.221-0.302l14.179,3.256
|
|
25
|
+
L160.001,268.26z M258.999,188.017l-28.177,39.913l-33.826-7.767l23.972-33.708l-6.972-15.831l21.711-29.61l-64.473-78.852
|
|
26
|
+
L275.73,164.311L258.999,188.017z"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
package/layouts/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sideNavLayout/sideNavLayout';
|
package/layouts/logo.svg
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="175px" height="32px" viewBox="0 0 175 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: Sketch 53.2 (72643) - https://sketchapp.com -->
|
|
4
|
+
<title>PatternFly Logo</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs>
|
|
7
|
+
<linearGradient x1="50.0004769%" y1="3.02475509%" x2="50.0004769%" y2="95.3620086%" id="linearGradient-1">
|
|
8
|
+
<stop stop-color="#60EFFF" offset="0%"></stop>
|
|
9
|
+
<stop stop-color="#1F89C7" offset="100%"></stop>
|
|
10
|
+
</linearGradient>
|
|
11
|
+
</defs>
|
|
12
|
+
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
+
<g id="Nav-bar-(desktop)" transform="translate(-150.000000, -16.000000)" fill-rule="nonzero">
|
|
14
|
+
<g id="PatternFly-Logo">
|
|
15
|
+
<g transform="translate(150.000000, 16.000000)">
|
|
16
|
+
<g id="Group" transform="translate(44.748858, 11.200000)" fill="#FFFFFF">
|
|
17
|
+
<path d="M0.302054795,9.3488 L0.302054795,0.3264 L4.16883562,0.3264 C4.73858447,0.3264 5.21723744,0.4096 5.60719178,0.5744 C5.99714612,0.7408 6.31358447,0.9576 6.55650685,1.2296 C6.79942922,1.5008 6.97442922,1.8048 7.08150685,2.1456 C7.18778539,2.4856 7.24212329,2.8288 7.24212329,3.1768 C7.24212329,3.3936 7.2173516,3.616 7.16541096,3.8408 C7.11506849,4.064 7.03835616,4.284 6.9336758,4.496 C6.82819635,4.708 6.69474886,4.9048 6.53093607,5.0912 C6.36712329,5.2752 6.17054795,5.4384 5.94280822,5.5784 C5.71426941,5.7184 5.45376712,5.828 5.15810502,5.908 C4.86164384,5.988 4.53242009,6.0272 4.16803653,6.0272 L2.04246575,6.0272 L2.04246575,9.3472 L0.302054795,9.3488 L0.302054795,9.3488 Z M4.24315068,4.372 C4.4652968,4.372 4.65308219,4.3368 4.8033105,4.2664 C4.95353881,4.1936 5.07579909,4.1024 5.17089041,3.988 C5.26598174,3.8744 5.33310502,3.7464 5.37465753,3.6048 C5.41700913,3.4616 5.43938356,3.32 5.43938356,3.176 C5.43938356,3.0464 5.42100457,2.9112 5.38424658,2.7688 C5.34908676,2.6304 5.2859589,2.5024 5.19646119,2.3832 C5.10616438,2.2664 4.98230594,2.1696 4.82888128,2.0952 C4.67305936,2.0192 4.47888128,1.9808 4.24394977,1.9808 L2.04406393,1.9808 L2.04406393,4.3712 L4.24315068,4.372 L4.24315068,4.372 Z" id="Shape"></path>
|
|
18
|
+
<path d="M19.2555936,9.3488 L18.5571918,7.4816 L15.0803653,7.4816 L14.3899543,9.3488 L12.5216895,9.3488 L15.9737443,0.3264 L17.6694064,0.3264 L21.1214612,9.3488 L19.2555936,9.3488 Z M17.1052511,3.548 C17.0589041,3.44 17.0093607,3.3088 16.956621,3.1584 C16.9062785,3.0056 16.8599315,2.8664 16.8223744,2.7352 C16.7880137,2.8672 16.7440639,3.0056 16.689726,3.1584 C16.6361872,3.3088 16.5858447,3.44 16.5386986,3.548 L15.6461187,5.8952 L17.9922374,5.8952 L17.1052511,3.548 Z" id="Shape"></path>
|
|
19
|
+
<polygon id="Path" points="30.9038813 2.0064 30.9038813 9.3488 29.169863 9.3488 29.169863 2.0064 26.5920091 2.0064 26.5920091 0.3264 33.4809361 0.3264 33.4809361 2.0064"></polygon>
|
|
20
|
+
<polygon id="Path" points="44.3932648 2.0064 44.3932648 9.3488 42.6584475 9.3488 42.6584475 2.0064 40.0805936 2.0064 40.0805936 0.3264 46.9695205 0.3264 46.9695205 2.0064"></polygon>
|
|
21
|
+
<polygon id="Path" points="54.1509132 9.3488 54.1509132 0.3264 60.3022831 0.3264 60.3022831 1.9816 55.8905251 1.9816 55.8905251 3.8752 58.4859589 3.8752 58.4859589 5.5232 55.8905251 5.5232 55.8905251 7.7016 60.5715753 7.7016 60.5715753 9.3512"></polygon>
|
|
22
|
+
<path d="M67.8848174,9.3488 L67.8848174,0.3264 L72.0704338,0.3264 C72.6401826,0.3264 73.1172374,0.4032 73.5,0.5624 C73.8827626,0.7192 74.1928082,0.928 74.4269406,1.188 C74.6594749,1.4488 74.8296804,1.7488 74.9295662,2.088 C75.0278539,2.428 75.0805936,2.7832 75.0805936,3.152 C75.0805936,3.4072 75.0422374,3.6664 74.9679224,3.928 C74.8928082,4.1904 74.7849315,4.4392 74.6394977,4.6744 C74.4900685,4.9096 74.310274,5.1216 74.0905251,5.3128 C73.8739726,5.504 73.6190639,5.6536 73.3305936,5.756 L75.0789954,9.3488 L73.122032,9.3488 L71.4375571,5.984 L69.6228311,5.984 L69.6228311,9.3488 L67.8848174,9.3488 L67.8848174,9.3488 Z M72.0960046,4.3344 C72.3165525,4.3344 72.5067352,4.3016 72.6545662,4.236 C72.8047945,4.1704 72.9278539,4.084 73.0181507,3.9752 C73.1108447,3.8656 73.1787671,3.74 73.2179224,3.596 C73.2586758,3.4536 73.2754566,3.3056 73.2754566,3.1504 C73.2754566,3.008 73.2586758,2.8648 73.2243151,2.724 C73.186758,2.5832 73.1260274,2.4584 73.0413242,2.3456 C72.9542237,2.236 72.8295662,2.1464 72.6793379,2.0792 C72.5291096,2.012 72.3317352,1.9792 72.0968037,1.9792 L69.6260274,1.9792 L69.6260274,4.3328 L72.0968037,4.3328 L72.0968037,4.3344 L72.0960046,4.3344 Z" id="Shape"></path>
|
|
23
|
+
<path d="M88.1552511,9.3488 L84.5793379,4.0888 C84.5202055,4.0016 84.4578767,3.892 84.3875571,3.7648 C84.3172374,3.6376 84.2597032,3.5192 84.2061644,3.4104 C84.2221461,3.5056 84.2277397,3.6184 84.2341324,3.7496 C84.2413242,3.8792 84.2469178,3.9936 84.2469178,4.0888 L84.2469178,9.3488 L82.5176941,9.3488 L82.5176941,0.3264 L84.1502283,0.3264 L87.6390411,5.5216 C87.693379,5.6056 87.7565068,5.7136 87.8252283,5.8384 C87.8979452,5.9632 87.9610731,6.0856 88.0122146,6.2024 C88.0002283,6.0824 87.9938356,5.9568 87.9858447,5.8352 C87.9778539,5.7112 87.9746575,5.6056 87.9746575,5.52 L87.9746575,0.3248 L89.6958904,0.3248 L89.6958904,9.3472 L88.1552511,9.3488 L88.1552511,9.3488 Z" id="Path"></path>
|
|
24
|
+
<polygon id="Path" points="97.4590183 9.3488 97.4590183 0.3264 103.501712 0.3264 103.501712 1.9816 99.2002283 1.9816 99.2002283 3.8752 101.926712 3.8752 101.926712 5.5232 99.2002283 5.5232 99.2002283 9.3496"></polygon>
|
|
25
|
+
<polygon id="Path" points="110.555251 9.3488 110.555251 0.3264 112.298059 0.3264 112.298059 7.6752 116.646689 7.6752 116.646689 9.3488"></polygon>
|
|
26
|
+
<polygon id="Path" points="124.973973 9.3488 124.973973 5.832 121.634589 0.3264 123.608333 0.3264 125.835388 4.0144 128.058447 0.3264 130.03379 0.3264 126.695205 5.832 126.695205 9.3488"></polygon>
|
|
27
|
+
</g>
|
|
28
|
+
<path d="M33.5144977,16.5608 L16.7584475,0.1536 L0,16.5608 L6.6803653,26.036 L11.7769406,24.864 L16.790411,31.9208 L21.7942922,24.8768 L26.8341324,26.0352 L33.5144977,16.5608 Z M16.0624429,3.196 L13.8921233,23.2768 L9.74805936,17.6176 L16.0624429,3.196 Z M9.293379,16.9968 L6.71232877,13.472 L15.5877854,2.68 L9.293379,16.9968 Z M13.2041096,23.464 L13.2041096,23.464 L13.4454338,23.7968 L12.0614155,24.1144 L8.86666667,19.6184 L9.43721461,18.3208 L13.2041096,23.464 Z M16.7576484,2.9296 L18.9391553,24.2184 L16.7528539,27.2176 L14.5745434,24.2184 L16.7576484,2.9296 Z M20.309589,23.4648 L24.1180365,18.2648 L24.7141553,19.6184 L21.5106164,24.128 L20.0714612,23.7968 L20.3119863,23.4664 L20.309589,23.4648 Z M19.6223744,23.2768 L17.4800228,3.1792 L23.8079909,17.5608 L19.6223744,23.2768 Z M17.9850457,2.6768 L26.8021689,13.472 L24.2626712,16.94 L17.9850457,2.6768 Z M6.96643836,25.2856 L0.870205479,16.6408 L12.7989726,4.9672 L5.87089041,13.4504 L8.98413242,17.7008 L8.10593607,19.696 L11.3598174,24.2768 L6.96643836,25.2856 Z M16.790411,30.7712 L12.4785388,24.7032 L13.8705479,24.3824 L16.7512557,28.3496 L19.6415525,24.3824 L21.0910959,24.7168 L16.790411,30.7712 Z M22.2114155,24.2896 L25.4740868,19.696 L24.5719178,17.6448 L27.6436073,13.4504 L20.7155251,4.9672 L32.6434932,16.6408 L26.5480594,25.2864 L22.2114155,24.2896 Z" id="Shape" fill="url(#linearGradient-1)"></path>
|
|
29
|
+
</g>
|
|
30
|
+
</g>
|
|
31
|
+
</g>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* Page layout */
|
|
2
|
+
/* tells .pf-c-page to consume the available space left over from the banners/footers */
|
|
3
|
+
#ws-router {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
#ws-router > section:first-of-type:not(#nav-content) {
|
|
8
|
+
flex: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ws-switcher-divider {
|
|
12
|
+
padding: 0 var(--pf-global--spacer--md);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ws-patternfly-3 > svg {
|
|
16
|
+
margin-left: var(--pf-global--spacer--sm);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 1200px) {
|
|
20
|
+
.ws-page-sidebar {
|
|
21
|
+
box-shadow: none !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ws-page-sidebar > .pf-c-page__sidebar-body {
|
|
26
|
+
padding-top: var(--pf-global--spacer--md);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Search */
|
|
30
|
+
#ws-global-search-wrapper {
|
|
31
|
+
/* For icon */
|
|
32
|
+
position: relative;
|
|
33
|
+
}
|
|
34
|
+
#algolia-autocomplete-listbox-0 {
|
|
35
|
+
/* Fix search results overflowing page */
|
|
36
|
+
min-width: 480px !important;
|
|
37
|
+
}
|
|
38
|
+
#ws-global-search {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
border: none;
|
|
41
|
+
/* For icon */
|
|
42
|
+
padding-left: var(--pf-global--spacer--xl);
|
|
43
|
+
width: 200px;
|
|
44
|
+
}
|
|
45
|
+
.ws-hide-search-input .algolia-autocomplete,
|
|
46
|
+
.ws-hide-search-input #ws-global-search {
|
|
47
|
+
display: none !important;
|
|
48
|
+
}
|
|
49
|
+
.ws-toggle-search {
|
|
50
|
+
/* Search icon is taller than it is wide */
|
|
51
|
+
margin-top: 2px;
|
|
52
|
+
}
|
|
53
|
+
#ws-global-search-wrapper > .global-search-icon {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 10px;
|
|
56
|
+
left: 4px;
|
|
57
|
+
}
|
|
58
|
+
#ws-global-search,
|
|
59
|
+
#ws-global-search::placeholder {
|
|
60
|
+
color: #fff;
|
|
61
|
+
}
|
|
62
|
+
#ws-global-search:focus {
|
|
63
|
+
outline-offset: 2px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* TODO: PageHeaderTools on small viewports */
|
|
67
|
+
@media (max-width: 670px) {
|
|
68
|
+
#ws-global-search-wrapper,
|
|
69
|
+
.ws-toggle-search {
|
|
70
|
+
display: none;
|
|
71
|
+
visibility: hidden;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@media (max-width: 430px) {
|
|
75
|
+
.ws-page-header > .pf-c-page__header-brand > .pf-c-page__header-brand-link {
|
|
76
|
+
display: none;
|
|
77
|
+
visibility: hidden;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Version toggle */
|
|
82
|
+
.ws-org-version-toggle {
|
|
83
|
+
color: var(--pf-global--Color--light-100);
|
|
84
|
+
}
|
|
85
|
+
.ws-org-version-toggle::before {
|
|
86
|
+
content: none !important;
|
|
87
|
+
}
|
|
88
|
+
.ws-org-version-toggle:hover {
|
|
89
|
+
border-bottom: 1px solid #fff;
|
|
90
|
+
}
|
|
91
|
+
.ws-org-version-toggle-expanded::before {
|
|
92
|
+
border-left: none;
|
|
93
|
+
border-right: none;
|
|
94
|
+
border-top: none;
|
|
95
|
+
border-bottom: 2px solid #fff;
|
|
96
|
+
}
|
|
97
|
+
/* For tiny (200px) viewports */
|
|
98
|
+
.ws-org-version-switcher .pf-c-dropdown__toggle >.pf-c-dropdown__toggle-text {
|
|
99
|
+
white-space: normal;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ws-github-pageheader {
|
|
103
|
+
color: var(--pf-global--Color--light-100) !important;
|
|
104
|
+
}
|