1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 .agora-label-styling() {
13 .agora-inline-label-styling() {
16 vertical-align: bottom;
21 & > input[type="checkbox"],
22 & > input[type="radio"] {
27 border: 1px solid @colorFieldBorder;
32 // ----------------------------------------------------------------------------
34 // ----------------------------------------------------------------------------
36 .button-colors(@bgColor) {
41 // The inner bottom bevel should match the active background color.
42 box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
43 border-bottom-color: mix(#000, @bgColor, 20%);
45 // remove outline in Firefox
47 border-color: transparent;
53 // lessphp doesn't implement shade (https://github.com/leafo/lessphp/issues/528);
54 // it passes it through, then ResourceLoader drops it.
55 // background: shade(@bgColor, 20%);
56 background: mix(#000, @bgColor, 20%);
61 .button-colors(@bgColor) when (lightness(@bgColor) >= 70%) {
62 color: @colorButtonText;
63 border: 1px solid @colorGray12;
66 color: @colorDisabledText;
68 // make sure disabled buttons don't have hover and active states
77 .button-colors(@bgColor) when (lightness(@bgColor) < 70%) {
79 // border of the same color as background so that light background and
80 // dark background buttons are the same height (only top and bottom to
81 // make box shadow on hover cover the corners too)
82 border: 1px solid @bgColor;
85 text-shadow: 0 1px rgba(0, 0, 0, .1);
88 background: @colorGray12;
89 border-color: @colorGray12;
91 // make sure disabled buttons don't have hover and active states
100 .button-colors-quiet(@textColor) {
101 // Quiet buttons all start gray, and reveal
102 // constructive/progressive/destructive color on hover and active.
103 color: @colorButtonText;
107 // lessphp doesn't implement tint, see above
108 // color: tint(@textColor, 20%);
109 color: mix(#fff, @textColor, 20%);
114 // lessphp doesn't implement shade, see above
115 // color: shade(@textColor, 20%);
116 color: mix(#000, @textColor, 20%);
120 color: @colorDisabledText;