aboutsummaryrefslogtreecommitdiff
path: root/templates/@theme-base/reusable-components/_design-system-links-icons.scss
blob: f6b9ef162759689d419cc545bcc1eec9a7db4768 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* links */
/* remember focus */
a,
.link {
  color: $color-links;
  cursor: pointer;

  &:focus,
  &:hover,
  &:active {
    color: $color-hover;
    text-decoration: underline;
  }
}
/* avoid border on images in links + fix border image IE */
a:link img,
a:visited img,
img {
  border-style: none;
}
.nodecoration {
  text-decoration: none;
}
.underline {
  text-decoration: underline;
}
.underline-hover:hover,
.underline-hover:focus {
  text-decoration: underline;
}

.primary-link {
  &:focus,
  &:hover {
    color: $pm-primary;
  }
}

.hover-same-color {
  &:focus,
  &:hover {
    &.color-white {
      color: $white;
    }
    &.primary-link {
      color: $pm-primary;
    }
  }
}

/* links with icons, may use DATA-URI */

/* external links */
/*a[href^="http://"],
a[href^="https://"] {

}*/
/* if full URL of the website in an internal link, remove icon */
/*a[href^="http://www.mydomain.com"] {

}*/
/* contact, mailto links */
/*.mail,
a[href^="mailto:"] {

}*/
/* if URL ends with .pdf or whatever */
/*a[href$=".pdf"] {

}*/

/* facto icons */
[class*="icon-"] {
  @extend .alignmiddle;
  @extend .inbl;
}

$list-icon-pixels: 12,16,20,25,40,100 !default; 

@each $width in $list-icon-pixels {
  .icon-#{$width}p { 
    width: #{$width}px; 
    height: #{$width}px; 
  }
}

$list-icon-percent: 50 !default;
@each $width in $list-icon-percent {
  .icon-#{$width} { 
    width: percentage($width / 100); 
    height: percentage($width / 100); 
  }
}

.path2x {
  stroke-width: 1px;
  &.fill-global-light {
    stroke: $pm-global-light;   
  }
}