1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
@import (reference) "../variables";
@import (reference) "../mixins";
// Base
.link-variant(@baseColor, @hoverColor, @borderColor) {
border-bottom: 1px solid @borderColor;
color: @baseColor;
&:hover, &:active, &:focus { color: @hoverColor; }
}
a {
.link-variant(@darkBlue, @blue, @lightBlue);
cursor: pointer;
outline: none;
text-decoration: none;
.trans;
}
.link-base-color {
.link-variant(@baseFontColor, @blue, mix(@baseFontColor, @barBackgroundColor, 20%));
&:hover { border-bottom-color: @lightBlue; }
&:active, &:focus { border-bottom-color: @lightBlue; }
}
// Misc
.link-no-underline { border-bottom: none; }
a.active-link,
.link-active {
.link-no-underline;
font-weight: 500;
}
// Color
.link-red, /* deprecated */
a.text-danger { .link-variant(@red, darken(@red, 10%), lighten(@red, 40%)); }
a.text-muted { .link-variant(@secondFontColor, darken(@secondFontColor, 10%), lighten(@secondFontColor, 40%)); }
a.text-warning { .link-variant(@orange, lighten(@orange, 10%), lighten(@orange, 40%)); }
a.text-info { }
a.text-success { .link-variant(@green, darken(@green, 10%), lighten(@green, 40%)); }
|