1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
5 // Font is not included.
6 .agora-field-styling() {
8 border: 1px solid @colorFieldBorder;
11 // Styling focus of native checkboxes etc on Mac is almost impossible.
12 &:not([type=checkbox]):not([type=radio]) {
13 outline: 0; // Removes OS field focus
16 box-shadow: lighten(@colorProgressive, 6%) 0 0 5px;
18 border-color: lighten(@colorProgressive, 6%);
22 padding: 0.35em 0.5em 0.35em 0.5em;
24 // Ensure that buttons and inputs are nicely aligned when they have differing heights
25 vertical-align: middle;
28 .agora-label-styling() {
37 .agora-inline-label-styling() {
40 vertical-align: bottom;
45 & > input[type="checkbox"],
46 & > input[type="radio"] {
51 border: 1px solid @colorFieldBorder;
56 // ----------------------------------------------------------------------------
58 // ----------------------------------------------------------------------------
60 .button-colors(@bgColor) {
65 // The inner bottom bevel should match the active background color.
66 box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
67 border-bottom-color: mix(#000, @bgColor, 20%);
69 // remove outline in Firefox
71 border-color: transparent;
77 // lessphp doesn't implement shade (https://github.com/leafo/lessphp/issues/528);
78 // it passes it through, then ResourceLoader drops it.
79 // background: shade(@bgColor, 20%);
80 background: mix(#000, @bgColor, 20%);
85 .button-colors(@bgColor) when (lightness(@bgColor) >= 70%) {
86 color: @colorButtonText;
87 border: 1px solid @colorGray12;
90 color: @colorDisabledText;
92 // make sure disabled buttons don't have hover and active states
101 .button-colors(@bgColor) when (lightness(@bgColor) < 70%) {
103 // border of the same color as background so that light background and
104 // dark background buttons are the same height (only top and bottom to
105 // make box shadow on hover cover the corners too)
106 border: 1px solid @bgColor;
109 text-shadow: 0 1px rgba(0, 0, 0, .1);
112 background: @colorGray12;
113 border-color: @colorGray12;
115 // make sure disabled buttons don't have hover and active states
124 .button-colors-quiet(@textColor) {
125 // Quiet buttons all start gray, and reveal
126 // constructive/progressive/destructive color on hover and active.
127 color: @colorButtonText;
131 // lessphp doesn't implement tint, see above
132 // color: tint(@textColor, 20%);
133 color: mix(#fff, @textColor, 20%);
138 // lessphp doesn't implement shade, see above
139 // color: shade(@textColor, 20%);
140 color: mix(#000, @textColor, 20%);
144 color: @colorDisabledText;