Merge "mediawiki.ui: checkbox: Fix gap between bevel and border"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 8 Nov 2014 20:08:35 +0000 (20:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 8 Nov 2014 20:08:35 +0000 (20:08 +0000)
resources/src/mediawiki.ui/components/checkbox.less

index 35a44cb..913f901 100644 (file)
                &:active,
                &:focus {
                        + label {
-                               &::after {
-                                       content: '';
-                                       position: absolute;
-                                       width: @checkboxSize;
-                                       height: @checkboxSize - @focusBottomBorderSize + 0.08; // offset by bottom border
-                                       // offset from the checkbox by 1px to account for left border
-                                       left: 1px;
-                                       border-bottom: solid @focusBottomBorderSize lightgrey;
+                               &::before {
+                                       box-shadow: inset 0 -@focusBottomBorderSize 0 0 lightgrey;
                                }
                        }
                }