1 @import "../settings/colors";
2 // ----------------------------------------------------------------------------
4 // ----------------------------------------------------------------------------
6 .button-colors(@bgColor) {
11 // The inner bottom bevel should match the active background color.
12 box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
13 border-bottom-color: mix(#000, @bgColor, 20%);
15 // remove outline in Firefox
17 border-color: transparent;
23 // lessphp doesn't implement shade (https://github.com/leafo/lessphp/issues/528);
24 // it passes it through, then ResourceLoader drops it.
25 // background: shade(@bgColor, 20%);
26 background: mix(#000, @bgColor, 20%);
31 .button-colors(@bgColor) when (lightness(@bgColor) >= 70%) {
32 color: @colorGrayDark;
33 border: 1px solid @colorGrayLight;
36 color: @colorGrayLight;
38 // make sure disabled buttons don't have hover and active states
47 .button-colors(@bgColor) when (lightness(@bgColor) < 70%) {
49 // border of the same color as background so that light background and
50 // dark background buttons are the same height (only top and bottom to
51 // make box shadow on hover cover the corners too)
52 border: 1px solid @bgColor;
57 background: @colorGrayLight;
58 border-color: @colorGrayLight;
60 // make sure disabled buttons don't have hover and active states
69 .button-colors-quiet(@textColor) {
70 // Quiet buttons all start gray, and reveal
71 // constructive/progressive/destructive color on hover and active.
72 color: @colorGrayDark;
76 // lessphp doesn't implement tint, see above
77 // color: tint(@textColor, 20%);
78 color: mix(#fff, @textColor, 20%);
83 // lessphp doesn't implement shade, see above
84 // color: shade(@textColor, 20%);
85 color: mix(#000, @textColor, 20%);
89 color: @colorGrayLight;