summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_link.scss
blob: 129ffcca2f0f8cc0f1796927708536154f46eff6 (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
$v-link-font-color: $v-focus-color !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: $v-link-font-color;
  text-decoration: $v-link-text-decoration;
  font-weight: inherit;

  @if $v-animations-enabled {
    @include transition(color 140ms);
  }

  &:hover {
    color: lighten($v-link-font-color, 10%);
  }
}