Merge "inputs.less: Change focus state"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 6 Mar 2015 18:19:49 +0000 (18:19 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 6 Mar 2015 18:19:49 +0000 (18:19 +0000)
resources/src/mediawiki.ui/components/inputs.less

index b16570a..1992cce 100644 (file)
@@ -39,7 +39,7 @@
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
-       .transition(~"border linear .2s, box-shadow linear .2s");
+       .transition(~"border 0.2s cubic-bezier(0.39, 0.575, 0.565, 1), box-shadow 0.2s cubic-bezier(0.39, 0.575, 0.565, 1)");
 
        // Placeholder text styling must be set individually for each browser @winter
        &::-webkit-input-placeholder { // webkit
@@ -64,8 +64,9 @@
        }
 
        &:focus {
-               box-shadow: inset .45em 0 0 @colorProgressive;
-               border-color: @colorGrayDark;
+               box-shadow: inset 0 0 0 2px @colorProgressive;
+               // Color being used to match inset shadow, not semantic reasons
+               border-color: @colorProgressive;
                // Remove focus glow on input[type="search"]
                outline: 0;
        }