From 7882976a1447d60909dc044adc265483fbdc310a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Sat, 21 Jan 2017 19:25:48 +0100 Subject: [PATCH] Remove quota focus and unwanted state classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/css/inputs.scss | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/core/css/inputs.scss b/core/css/inputs.scss index 19deb59b1d..1dc43d2e36 100644 --- a/core/css/inputs.scss +++ b/core/css/inputs.scss @@ -30,22 +30,20 @@ textarea, border: 1px solid #ddd; outline: none; border-radius: 3px; - &:not(:disabled):not(.disabled):not(.primary) { - &:hover, &.hover, &:focus, &.focus { + &:not(:disabled):not(.primary) { + &:not(#quota):hover, + &:focus { border-color: #0082c9; outline: none; } - &:active, - &.active { + &:active { outline: none; } - &:active, - &.active { + &:active { background-color: #fff; } } - &:disabled, - &.disabled { + &:disabled { background-color: rgba(0, 0, 0, 0.1); color: #999; cursor: default; @@ -57,17 +55,16 @@ textarea, background-color: #00a2e9; color: #fff; cursor: pointer; - &:not(:disabled):not(.disabled) { - &:hover, &.hover, &:focus, &.focus { + &:not(:disabled) { + &:hover, + &:focus { background-color: #0092d9; } - &:active, - &.active { + &:active { background-color: #00a2e9; } } - &:disabled, - &.disabled { + &:disabled { background-color: #00a2e9; color: #bbb; } @@ -119,8 +116,7 @@ input[type='reset'] { box-sizing: border-box; background-color: #fafafa; box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.15); - &:active, - &.active { + &:active { box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.15); } } @@ -142,8 +138,10 @@ textarea { cursor: text; font-family: inherit; height: auto; - &:not(:disabled):not(.disabled) { - &:active, &.active, &:hover, &.hover, &:focus, &.focus { + &:not(:disabled) { + &:active, + &:hover, + &:focus { border-color: #ddd !important; background-color: #fff !important; }