blob: 73e2cb114ac0228f11b1d5c0169c1007ad2ae519 (
plain)
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
|
$v-link-font-color: null !default;
$v-link-text-decoration: underline !default;
$v-link-cursor: pointer !default;
@mixin valo-link ($primary-stylename: v-link) {
.#{$primary-stylename} {
@include valo-link-style;
a {
cursor: inherit;
color: inherit;
text-decoration: inherit;
@if $v-animations-enabled {
@include transition(inherit);
}
}
.v-icon {
cursor: inherit;
}
}
}
@mixin valo-link-style {
cursor: $v-link-cursor;
color: valo-link-font-color();
text-decoration: $v-link-text-decoration;
font-weight: inherit;
@if $v-animations-enabled {
@include transition(color 140ms);
}
&:hover {
color: lighten(valo-link-font-color(), 10%);
}
}
@function valo-link-font-color ($color: null, $context: null) {
$link-color: $color or $v-link-font-color or valo-focus-color($color: $color, $context: $context);
@return $link-color;
}
|