-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #37882 - move css from vendor to foreman
- Loading branch information
Showing
14 changed files
with
74 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
webpack/assets/javascripts/react_app/common/scss/mixins.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Mixins - Bootstrap overrides | ||
// ------------------- | ||
@mixin box-shadow($shadow...) { | ||
-webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1 | ||
box-shadow: $shadow; | ||
} | ||
|
||
// Form control outline | ||
@mixin form-control-outline($color: $input-border-focus){ | ||
$color-rgba: rgba(red($color), green($color), blue($color), .6); | ||
&:focus { | ||
border-color: $color; | ||
outline: 0 !important; | ||
@include box-shadow(unquote("inset 0 1px 1px rgba(3, 3, 3, 0.075), 0 0 8px #{$color-rgba}")); | ||
} | ||
} | ||
/** | ||
Third Party mixins imports here | ||
*/ | ||
@import '~patternfly/dist/sass/patternfly/bootstrap-mixin-overrides'; | ||
@import '~patternfly/dist/sass/patternfly/mixins'; |
22 changes: 22 additions & 0 deletions
22
webpack/assets/javascripts/react_app/common/scss/vendor-core.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
Third Party libraries imports here | ||
*/ | ||
@import '../variables'; | ||
@import './mixins'; | ||
|
||
@import '~multiselect/css/multi-select.css'; | ||
@import '~react-diff-view/style/index.css'; | ||
@import '~select2/select2-bootstrap.css'; | ||
@import '~select2/select2.css'; | ||
@import "~dsmorse-gridster/dist/jquery.gridster"; | ||
@import "~datatables.net-bs/css/dataTables.bootstrap.css"; | ||
// @import "~@redhat-cloud-services/frontend-components/index.css"; | ||
|
||
// patternfly v3 | ||
@import '~patternfly-react/dist/sass/_patternfly-react.scss'; | ||
@import '~patternfly-react-extensions/dist/sass/_select.scss'; | ||
@import '~patternfly/dist/sass/patternfly/_loading-state'; | ||
|
||
// patternfly v4 | ||
@import '~@patternfly/patternfly/patternfly'; | ||
@import '~@patternfly/patternfly/patternfly-addons'; |
23 changes: 21 additions & 2 deletions
23
webpack/assets/javascripts/react_app/common/variables.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
@import '~@theforeman/vendor/scss/variables.scss'; | ||
/** | ||
Third Party variables imports here | ||
*/ | ||
// patternfly v3 | ||
$font-path: '~patternfly/dist/fonts/'; | ||
$img-path: '~patternfly/dist/img/'; | ||
$icon-font-path: '~patternfly/dist/fonts/'; | ||
|
||
$header-max-width: calc(#{$pf-global--breakpoint--lg} + 70px); //TODO move into @theforeman/vendor/scss/variables | ||
// patternfly v4 | ||
$pf-global--font-path: '~@patternfly/patternfly/assets/fonts'; | ||
$fa-font-path: '~@patternfly/patternfly/assets/fonts/webfonts'; | ||
$pf-global--fonticon-path: '~@patternfly/patternfly/assets/pficon'; | ||
$pf-global--image-path: '~@patternfly/patternfly/assets/images'; | ||
|
||
// patternfly v3 | ||
@import '~bootstrap-sass/assets/stylesheets/bootstrap/variables'; | ||
@import '~patternfly/dist/sass/patternfly/variables'; | ||
|
||
// patternfly v4 | ||
@import '~@patternfly/patternfly/base/patternfly-variables'; | ||
|
||
$header-max-width: calc(#{$pf-global--breakpoint--lg} + 70px); |
2 changes: 1 addition & 1 deletion
2
...s/javascripts/react_app/components/Layout/components/ImpersonateIcon/ImpersonateIcon.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "~@theforeman/vendor/scss/variables"; | ||
@import "../../../../common/variables"; | ||
|
||
@keyframes blink { | ||
0% { | ||
|
2 changes: 1 addition & 1 deletion
2
...javascripts/react_app/components/Layout/components/TaxonomySwitcher/TaxonomyDropdown.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
webpack/assets/javascripts/react_app/components/LoginPage/LoginPage.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
webpack/assets/javascripts/react_app/components/PF4/Bookmarks/bookmarks.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
webpack/assets/javascripts/react_app/components/PasswordStrength/PasswordStrength.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
webpack/assets/javascripts/react_app/components/SearchBar/SearchBar.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
webpack/assets/javascripts/react_app/components/common/forms/DateTime/DateTimeOverrides.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
webpack/assets/javascripts/react_app/components/common/forms/NumericInput.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters