1 | /* ==========================================================================
|
2 | Utility functions
|
3 | ========================================================================== */
|
4 |
|
5 | /**
|
6 | * Styles for a colored button with active and hover states
|
7 | * which toggle colors in a consistent fashion.
|
8 | *
|
9 | * @param {string} @color The background color of the button.
|
10 | * @param {string} @font-color: The font color of the button.
|
11 | */
|
12 | .colored-button(@bg, @font-color:#fff) {
|
13 | background: @bg;
|
14 | border-bottom-color: darken(@bg, 10%);
|
15 | color: @font-color;
|
16 | text-shadow: 0 1.25px 0 darken(@bg, 10%);
|
17 |
|
18 | &:hover {
|
19 | background: lighten(@bg, 10%);
|
20 | }
|
21 |
|
22 | &:active {
|
23 | background: darken(@bg, 10%);
|
24 | }
|
25 |
|
26 | &:focus {
|
27 | background: lighten(@bg, 10%);
|
28 | }
|
29 | } |
\ | No newline at end of file |