Merge "Revert "buttons: Update focus state""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 8 Oct 2014 22:35:30 +0000 (22:35 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 8 Oct 2014 22:35:30 +0000 (22:35 +0000)
resources/src/mediawiki.less/mediawiki.ui/mixins.less

index d3220cc..ec9888f 100644 (file)
 .button-colors(@bgColor) {
        background: @bgColor;
 
-       &:hover {
+       &:hover,
+       &:focus {
                // The inner bottom bevel should match the active background color.
                box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
                border-bottom-color: mix(#000, @bgColor, 20%);
-       }
-
-       &:focus {
-               box-shadow:inset 0px 0px 0px 3px rgba(0, 0, 0, 20%);
-//             box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
                outline: none;
                // remove outline in Firefox
                &::-moz-focus-inner {
                        border-color: transparent;
                }
-
        }
 
        &:active,