| 1 |
/* styles.less */ |
| 2 |
|
| 3 |
@base: #f938ab; |
| 4 |
|
| 5 |
.box-shadow(@style, @c) when (iscolor(@c)) { |
| 6 |
box-shadow: @style @c; |
| 7 |
-webkit-box-shadow: @style @c; |
| 8 |
-moz-box-shadow: @style @c; |
| 9 |
} |
| 10 |
.box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) { |
| 11 |
.box-shadow(@style, rgba(0, 0, 0, @alpha)); |
| 12 |
} |
| 13 |
|
| 14 |
// Box styles |
| 15 |
.box { |
| 16 |
color: saturate(@base, 5%); |
| 17 |
border-color: lighten(@base, 30%); |
| 18 |
|
| 19 |
div { .box-shadow(0 0 5px, 30%) } |
| 20 |
|
| 21 |
a { |
| 22 |
color: @base; |
| 23 |
|
| 24 |
&:hover { |
| 25 |
color: lighten(@base, 50%); |
| 26 |
} |
| 27 |
} |
| 28 |
} |