From 36120b3115d765df937bda5d0e03afbbb5d7db9e Mon Sep 17 00:00:00 2001 From: gconsidine Date: Mon, 10 Jul 2017 11:27:31 -0400 Subject: [PATCH] Fix inconsistencies on inputs in Chrome vs. others --- .../client/lib/components/input/_index.less | 36 +++++++++---------- .../lib/components/input/secret.partial.html | 2 +- .../input/textarea-secret.partial.html | 6 ++-- .../lib/theme/_contextual-variables.less | 6 +++- awx/ui/client/lib/theme/_mixins.less | 13 +++++++ 5 files changed, 38 insertions(+), 25 deletions(-) diff --git a/awx/ui/client/lib/components/input/_index.less b/awx/ui/client/lib/components/input/_index.less index bff0e535d6..7ac1b4c392 100644 --- a/awx/ui/client/lib/components/input/_index.less +++ b/awx/ui/client/lib/components/input/_index.less @@ -5,6 +5,7 @@ background: @at-color-input-background; border-radius: @at-border-radius; color: @at-color-input-text; + padding: 0 @at-padding-input; &, &:active { border-color: @at-color-input-border; @@ -43,16 +44,20 @@ } .at-Input-button { - display: block; - height: @at-height-button; - line-height: 1; + .at-mixin-InputButton(); +} - &, &:active, &:hover, &:focus { - color: @at-color-button-text-default; - border-color: @at-color-input-border; - background-color: @at-color-default; - cursor: pointer; - } +.at-Input-button--fixed-sm { + .at-mixin-InputButton(); + min-width: @at-width-input-button-sm; + height: @at-height-input; +} + +.at-Input-button--fixed-md { + .at-mixin-InputButton(); + display: inherit; + min-width: @at-width-input-button-md; + height: @at-height-textarea; } .at-Input--focus { @@ -91,17 +96,6 @@ left: -5px; } -.at-InputGroup-button { - height: 100%; - - & > button { - height: 100%; - border-right: none; - color: @at-color-button-text-default; - min-width: @at-input-button-width; - } -} - .at-InputGroup-title { .at-mixin-Heading(@at-font-size-panel-inset-heading); margin: 0 0 0 @at-margin-panel-inset; @@ -211,4 +205,6 @@ .at-InputTextarea { .at-mixin-FontFixedWidth(); + min-height: @at-height-textarea; + padding: 6px @at-padding-input 0 @at-padding-input; } diff --git a/awx/ui/client/lib/components/input/secret.partial.html b/awx/ui/client/lib/components/input/secret.partial.html index 9102c59b0d..b3d0026d40 100644 --- a/awx/ui/client/lib/components/input/secret.partial.html +++ b/awx/ui/client/lib/components/input/secret.partial.html @@ -4,7 +4,7 @@
- - +