diff --git a/awx/ui/client/legacy-styles/angular-scheduler.less b/awx/ui/client/legacy-styles/angular-scheduler.less index 4f6817e08d..1216aa2eb1 100644 --- a/awx/ui/client/legacy-styles/angular-scheduler.less +++ b/awx/ui/client/legacy-styles/angular-scheduler.less @@ -139,17 +139,6 @@ font-weight: normal; text-align: center; } - .ui-spinner.ui-widget-content { - border-bottom-color: #ccc; - border-top-color: #ccc; - border-left-color: #ccc; - border-right-color: #ccc; - } - .ui-spinner-button { - border-left-color: #ccc; - border-left-style: solid; - border-left-width: 1px; - } .scheduler-time-spinner { width: 40px; height: 24px; diff --git a/awx/ui/client/legacy-styles/ansible-ui.less b/awx/ui/client/legacy-styles/ansible-ui.less index 6459b5ca60..8375321a46 100644 --- a/awx/ui/client/legacy-styles/ansible-ui.less +++ b/awx/ui/client/legacy-styles/ansible-ui.less @@ -52,6 +52,11 @@ body.modal-open { } + +.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { + border-color: @b7grey; +} + /* Helper Classes */ .pad-right-sm { padding-right: 10px; } .pad-left-md { padding-left: 30px; } @@ -134,8 +139,7 @@ a:focus { /* Make buttons appear to be disabled, but allow mouse events */ .btn-disabled { - opacity: 0.35; - filter: alpha(opacity=65); + opacity: 1; -webkit-box-shadow: none; box-shadow: none; } @@ -2101,13 +2105,17 @@ tr td button i { } .form-control + .select2 .select2-selection { - border-color: @d7grey !important; - background-color: #fcfcfc !important; + border-color: @b7grey !important; + background-color: @default-bg !important; color: @default-data-txt !important; transition: border-color 0.3s !important; box-shadow: none !important; } +.form-control + .select2-container--disabled .select2-selection { + background-color: @egrey !important; +} + .form-control:active, .form-control:focus { box-shadow: none; border-color: @default-link; @@ -2141,11 +2149,9 @@ tr td button i { /* Overwrite select2 base styles for single/multiple selects so that match up with other form elements. Also overwrite disabled styles. */ .select2-container--disabled,.select2-container--disabled .select2-selection--single,.select2-container--disabled .select2-selection--multiple { - cursor: not-allowed !important; -} - -.select2-container--disabled { - opacity: .35; + cursor: not-allowed; + opacity: 100; + background: @egrey; } .select2-container--default .select2-selection--single { @@ -2198,7 +2204,7 @@ a:hover { } .nv-axis text { - fill: @db-graph-axis-label !important; //rgb(169, 178, 189); + fill: @db-graph-axis-label !important; font-family: 'Open Sans' !important; } @@ -2280,12 +2286,12 @@ html input[disabled] { .CodeMirror--disabled .CodeMirror.cm-s-default, .CodeMirror--disabled .CodeMirror-line { - background-color: #f6f6f6; + background-color: @default-no-items-bord; } .CodeMirror--disabled .CodeMirror-gutter.CodeMirror-lint-markers, .CodeMirror--disabled .CodeMirror-gutter.CodeMirror-linenumbers { - background-color: #ebebeb; + background-color: @default-list-header-bg; color: @b7grey; } @@ -2297,3 +2303,30 @@ html input[disabled] { display: none; } +.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active { + border-color: @field-border; +} + +.btn-default { + background: @default-bg; + border-color: @b7grey; + color: @default-interface-txt; +} + +.select2-container--disabled .select2-selection, +.select2-container--disabled .select2-arrow { + background: @egrey; +} + +.btn.disabled,.btn[disabled],fieldset[disabled] .bt { + opacity: 1; +} + +.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled { + opacity: 1; + background: @egrey; +} + +input[disabled].ui-spinner-input { + background-color: @egrey; +} diff --git a/awx/ui/client/legacy-styles/codemirror.less b/awx/ui/client/legacy-styles/codemirror.less index d6de9ffacf..6c402ada5b 100644 --- a/awx/ui/client/legacy-styles/codemirror.less +++ b/awx/ui/client/legacy-styles/codemirror.less @@ -5,15 +5,18 @@ * */ + @import "./client/src/shared/branding/colors.default.less"; + .CodeMirror { height: auto; overflow-x: scroll; overflow-y: hidden; - border: 1px solid #ccc; + border: 1px solid @b7grey; } +.CodeMirror, .CodeMirror-activeline-background { - background-color: #f7f7f7; + background-color: @default-secondary-bg; } /* Make sure code editor dialog is always at top of stack */ @@ -24,3 +27,45 @@ .CodeMirror-lint-tooltip { z-index: 2060; } + +.CodeMirror-gutters { + border-color: @d7grey; + background-color: @default-no-items-bord; +} + +.CodeMirror-lineNumber { + color: @default-icon; +} + +// Disabled +textarea[disabled="disabled"] + div[id*="-container"]{ + pointer-events: none; + cursor: not-allowed; + + .CodeMirror { + cursor: not-allowed; + } + + .CodeMirror.cm-s-default, + .CodeMirror-line { + background-color: @egrey; + } + + .CodeMirror-gutters { + border-color: @b7grey; + } + + .CodeMirror-gutter.CodeMirror-lint-markers, + .CodeMirror-gutter.CodeMirror-linenumbers { + background-color: @default-bg; + color: @default-interface-txt; + } + + .CodeMirror-lines { + cursor: default; + } + + .CodeMirror-cursors { + display: none; + } +} diff --git a/awx/ui/client/legacy-styles/forms.less b/awx/ui/client/legacy-styles/forms.less index 5ce29fbe1c..a279e5aa2a 100644 --- a/awx/ui/client/legacy-styles/forms.less +++ b/awx/ui/client/legacy-styles/forms.less @@ -114,7 +114,7 @@ color: @btn-txt; background-color: @btn-bg; font-size: 12px; - border: 1px solid @btn-bord; + border: 1px solid @b7grey; height: 30px; border-radius: 5px; margin-right: 20px; @@ -253,7 +253,7 @@ width:100%!important; } -.Form-textInput{ +.Form-textInput { height: 30px; background-color: @field-secondary-bg; border-radius: 5px; @@ -337,6 +337,10 @@ height: 28px!important; } +.select2-container--disabled .select2-selection__arrow { + background: @egrey !important; +} + .select2-results__option{ color: @field-label !important; height: 30px!important; @@ -419,17 +423,20 @@ align-items: center; justify-content: center; border:1px solid @field-border; + border-right: 0px; } .Form-lookupButton:hover { cursor: pointer; background-color: @field-lookup-btn-hov-bg; border: 1px solid @field-border; - color: @field-lookup-btn-icon; + color: @default-interface-txt; } +.Form-lookupButton:active, .Form-lookupButton:focus { border: 1px solid @field-border; + border-right: 0px; } .CodeMirror{ @@ -581,12 +588,12 @@ input[type='radio']:checked:before { color: @submit-button-text; } -.Form-cancelButton{ +.Form-cancelButton { background-color: @default-bg; color: @btn-txt; text-transform: uppercase; border-radius: 5px; - border: 1px solid @btn-bord; + border: 1px solid @field-border; transition: background-color 0.2s; padding-left:15px; padding-right: 15px; diff --git a/awx/ui/client/legacy-styles/jquery-ui-overrides.less b/awx/ui/client/legacy-styles/jquery-ui-overrides.less index 4f79854c2f..811b34ca28 100644 --- a/awx/ui/client/legacy-styles/jquery-ui-overrides.less +++ b/awx/ui/client/legacy-styles/jquery-ui-overrides.less @@ -98,7 +98,7 @@ table.ui-datepicker-calendar { button.btn.btn-default { text-transform: uppercase; - border-color: @d7grey; + border-color: @b7grey; color: @default-interface-txt; } @@ -153,7 +153,7 @@ table.ui-datepicker-calendar { .ui-widget-content { background-image: none; - background-color: @white; + background-color: @default-secondary-bg; a, a:visited, @@ -216,3 +216,16 @@ table.ui-datepicker-calendar { .ui-accordion .ui-accordion-header { margin-top: 1px; } + +.ui-spinner.ui-state-disabled, +.ui-state-disabled .ui-spinner-button { + cursor: not-allowed !important; +} + +.ui-state-disabled .ui-spinner-button:hover { + background-color: @default-bg !important; +} + +.ui-state-disabled.ui-widget-content { + background-color: @egrey; +} diff --git a/awx/ui/client/legacy-styles/lists.less b/awx/ui/client/legacy-styles/lists.less index e27e66c41b..20a5bb7a4a 100644 --- a/awx/ui/client/legacy-styles/lists.less +++ b/awx/ui/client/legacy-styles/lists.less @@ -282,7 +282,7 @@ table, tbody { width: 100%; height: 200px; border-radius: 5px; - border: 1px solid @list-no-items-bord; + border: 1px solid @d7grey; background-color: @default-no-items-bord; color: @list-no-items-txt; text-transform: uppercase; @@ -469,5 +469,3 @@ table, tbody { width: 100%; } } - - diff --git a/awx/ui/client/src/configuration/configuration.block.less b/awx/ui/client/src/configuration/configuration.block.less index a026253384..6ebe31e1af 100644 --- a/awx/ui/client/src/configuration/configuration.block.less +++ b/awx/ui/client/src/configuration/configuration.block.less @@ -108,35 +108,6 @@ input#filePickerText { color: @white; } -//Codemirror and more disabling - you can still tab into the field with this method though -textarea[disabled="disabled"] + div[id*="-container"]{ - pointer-events: none; - cursor: not-allowed; - - .CodeMirror { - cursor: not-allowed; - } - - .CodeMirror.cm-s-default, - .CodeMirror-line { - background-color: #f6f6f6; - } - - .CodeMirror-gutter.CodeMirror-lint-markers, - .CodeMirror-gutter.CodeMirror-linenumbers { - background-color: #ebebeb; - color: @b7grey; - } - - .CodeMirror-lines { - cursor: default; - } - - .CodeMirror-cursors { - display: none; - } -} - //Needed to show the not-allowed cursor over a Codemirror instance .Form-formGroup--disabled { cursor: not-allowed; diff --git a/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.block.less b/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.block.less index 91a0cf68af..bd17e39aa8 100644 --- a/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.block.less +++ b/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.block.less @@ -87,10 +87,10 @@ font-size: 10px; text-transform: uppercase; white-space: nowrap; - padding-right: 10px; + padding-right: 5px; padding-left: 10px; height: 20px; - border: 1px solid @db-graph-per-dd-bord; + border: 1px solid @b7grey; border-radius: 5px; transition: background-color 0.2s; } diff --git a/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.partial.html b/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.partial.html index 7a818c704d..1a2281b89a 100644 --- a/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.partial.html +++ b/awx/ui/client/src/home/dashboard/graphs/dashboard-graphs.partial.html @@ -12,7 +12,7 @@ data-target="#" href="/page.html" class="DashboardGraphs-filterDropdownText"> - Past Month + Past Month