Skip to content

Commit

Permalink
Add support for PF4 styling through webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed May 6, 2019
1 parent 81bc00d commit b5e4105
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/application-webpack.scss
@@ -0,0 +1,6 @@
$pf-global--enable-reset: false;
$pf-global--disable-fontawesome: true;

@import '~@fortawesome/fontawesome-free/css/all.css';
@import '~@fortawesome/fontawesome-free/scss/v4-shims.scss';
@import '~@patternfly/patternfly-next/patternfly.scss';
4 changes: 2 additions & 2 deletions app/assets/stylesheets/patternfly_overrides.scss
Expand Up @@ -60,9 +60,9 @@

.resizer-box {
bottom: 100px;
left: -18px;
left: -20px;
position: absolute;
width: 38px;
width: 40px;
}

.resizer .btn {
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/packs/application-common.js
Expand Up @@ -22,6 +22,8 @@ import { history } from '../miq-component/react-history.ts';
import createReduxRoutingActions from '../miq-redux/redux-router-actions';
import { formButtonsActionTypes, createFormButtonsActions } from '../forms/form-buttons-reducer';

import '../../assets/stylesheets/application-webpack.scss';

ManageIQ.component = {
...newRegistry,
reactBlueprint,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -23,8 +23,10 @@
"dependencies": {
"@data-driven-forms/pf3-component-mapper": "^1.9.9",
"@data-driven-forms/react-form-renderer": "^1.9.9",
"@manageiq/ui-components": "~1.2.4",
"@fortawesome/fontawesome-free": "^5.8.1",
"@manageiq/react-ui-components": "~0.11.14",
"@manageiq/ui-components": "~1.2.4",
"@patternfly/patternfly": "^2.6.6",
"@pf3/select": "~1.12.6",
"@pf3/timeline": "~1.0.8",
"angular": "~1.6.6",
Expand Down

0 comments on commit b5e4105

Please sign in to comment.