Socialify

Folder ..

Viewing _design-system-links-icons.scss
107 lines (88 loc) • 1.6 KB

  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
101
102
103
104
105
106
107
/* links */

/* remember focus */
a,
.link {
  color: $color-links;
  text-decoration: underline;
  cursor: pointer;

  &:focus,
  &:hover,
  &:active {
    color: $color-hover;
    text-decoration: underline;
  }
}

.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;
    }
  }
}

.button-showOnHover:focus,
.button-showOnHover:hover {
	.button-showOnHover-element {
		visibility: visible;
	}
}



/* 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;
  fill: currentColor;
}

$list-icon-pixels: 6,8,10,11,12,14,16,18,20,24,28,40,42,60,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;
  }
}