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;
68 // make sure that is isn't inheriting from a general rule
69 color: @colorButtonText;
73 color: @colorDisabledText;
75 // make sure disabled buttons don't have hover and active states
84 .button-colors(@bgColor) when (lightness(@bgColor) < 70%) {
86 // border of the same color as background so that light background and
87 // dark background buttons are the same height and width
88 border: 1px solid @bgColor;
89 text-shadow: 0 1px rgba(0, 0, 0, .1);
92 background: @colorGray12;
93 border-color: @colorGray12;
95 // make sure disabled buttons don't have hover and active states
104 .button-colors-quiet(@textColor) {
105 // Quiet buttons all start gray, and reveal
106 // constructive/progressive/destructive color on hover and active.
107 color: @colorButtonText;
111 // lessphp doesn't implement tint, see above
112 // color: tint(@textColor, 20%);
113 color: mix(#fff, @textColor, 20%);
118 // lessphp doesn't implement shade, see above
119 // color: shade(@textColor, 20%);
120 color: mix(#000, @textColor, 20%);
124 color: @colorDisabledText;