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) {
40 // The inner bottom bevel should match the active background color.
41 box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
42 border-bottom-color: mix(#000, @bgColor, 20%);
46 border-color: rgba(0,0,0,0.2);
47 box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
50 // remove outline in Firefox
52 border-color: transparent;
58 // lessphp doesn't implement shade (https://github.com/leafo/lessphp/issues/528);
59 // it passes it through, then ResourceLoader drops it.
60 // background: shade(@bgColor, 20%);
61 background: mix(#000, @bgColor, 20%);
66 .button-colors(@bgColor) when (lightness(@bgColor) >= 70%) {
67 color: @colorButtonText;
68 border: 1px solid @colorGray12;
73 // make sure that is isn't inheriting from a general rule
74 color: @colorButtonText;
78 color: @colorDisabledText;
80 // make sure disabled buttons don't have hover and active states
89 .button-colors(@bgColor) when (lightness(@bgColor) < 70%) {
91 // border of the same color as background so that light background and
92 // dark background buttons are the same height and width
93 border: 1px solid @bgColor;
94 text-shadow: 0 1px rgba(0, 0, 0, .1);
97 background: @colorGray13;
98 border-color: @colorGray13;
100 // make sure disabled buttons don't have hover and active states
109 .button-colors-quiet(@textColor) {
110 // Quiet buttons all start gray, and reveal
111 // constructive/progressive/destructive color on hover and active.
112 color: @colorButtonText;
121 // lessphp doesn't implement shade, see above
122 // color: shade(@textColor, 20%);
123 color: mix(#000, @textColor, 20%);
127 color: @colorDisabledText;