1 // Common button mixins for MediaWiki
3 // Helper mixins used to create button styles. this file is importable
4 // by all less files via `@import 'mediawiki.mixins.buttons';`.
6 /* stylelint-disable selector-class-pattern */
8 // Primary buttons mixin
9 .button-colors-primary( @bgColor, @highlightColor, @activeColor ) {
10 background-color: @bgColor;
12 // border of the same color as background so that light background and
13 // dark background buttons are the same height and width
14 border: 1px solid @bgColor;
17 background-color: @highlightColor;
18 border-color: @highlightColor;
22 box-shadow: inset 0 0 0 1px @bgColor, inset 0 0 0 2px #fff;
27 background-color: @activeColor;
28 border-color: @activeColor;
33 background-color: @colorGray12;
35 border-color: @colorGray12;
37 // Make sure disabled buttons don't have hover and active states
40 background-color: @colorGray12;
42 border-color: @colorGray12;