diff --git a/awx/ui/client/components/_badge.less b/awx/ui/client/components/_badge.less new file mode 100644 index 0000000000..c3d69b7ef4 --- /dev/null +++ b/awx/ui/client/components/_badge.less @@ -0,0 +1,8 @@ +.at-Badge { + font-size: @at-font-sm; + padding: 0 @at-padding-sm; + margin: 0; + background-color: @at-gray; + color: @at-white; + border-radius: @at-border-radius-md; +} diff --git a/awx/ui/client/components/_button.less b/awx/ui/client/components/_button.less new file mode 100644 index 0000000000..340ae0e8b7 --- /dev/null +++ b/awx/ui/client/components/_button.less @@ -0,0 +1,4 @@ +.at-Button { + padding: @at-padding-xs @at-padding-md; + padding-bottom: @at-padding-xs + 1; +} diff --git a/awx/ui/client/components/_index.less b/awx/ui/client/components/_index.less index 51028d0369..d5caa0db0a 100644 --- a/awx/ui/client/components/_index.less +++ b/awx/ui/client/components/_index.less @@ -1 +1,4 @@ +@import '_badge'; +@import '_button'; +@import '_input'; @import '_panel'; diff --git a/awx/ui/client/components/_input.less b/awx/ui/client/components/_input.less new file mode 100644 index 0000000000..fb2dfb9b07 --- /dev/null +++ b/awx/ui/client/components/_input.less @@ -0,0 +1,29 @@ +.at-InputSearch { +} + +.at-InputSearch-field { + .at-placeholder; + + border-color: @at-gray-lighter; + background-color: @at-white; + font-size: @at-font-md; + + @include placeholder(@at-gray); +} + +.at-InputSearch-field:focus { + border-color: @at-gray-lighter; +} + +.at-Input-searchButton { + .at-buttonColor; + + padding: 4px 10px; + padding-bottom: 5px; + font-size: @at-font-lg; +} + +.at-Input-searchButton:hover { + .at-buttonColorHover; +} + diff --git a/awx/ui/client/components/_panel.less b/awx/ui/client/components/_panel.less index 2f73622fcb..47686b419d 100644 --- a/awx/ui/client/components/_panel.less +++ b/awx/ui/client/components/_panel.less @@ -1,9 +1,14 @@ .at-Panel { - margin: @at-margin-md 0; + margin: @at-margin-md 0 0 0; + padding: @at-padding-md; } -// TODO (remove override on cleanup): -.at-Panel-heading:hover { - cursor: default; +.at-Panel-heading { + margin: 0; + padding: 0; +} + +.at-Panel-body { + margin: @at-margin-md 0 0 0; + padding: 0; } -// TODO-end diff --git a/awx/ui/client/components/badge.directive.js b/awx/ui/client/components/badge.directive.js new file mode 100644 index 0000000000..991ee5584b --- /dev/null +++ b/awx/ui/client/components/badge.directive.js @@ -0,0 +1,12 @@ +function atBadge () { + return { + restrict: 'E', + transclude: true, + templateUrl: 'static/partials/components/badge.partial.html', + scope: { + config: '=' + } + }; +} + +export default atBadge; diff --git a/awx/ui/client/components/badge.partial.html b/awx/ui/client/components/badge.partial.html new file mode 100644 index 0000000000..3d5a0f0672 --- /dev/null +++ b/awx/ui/client/components/badge.partial.html @@ -0,0 +1,8 @@ +