Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 1ab1a15

Browse files
sfriskSarah Frisk
authored and
Sarah Frisk
committed
Typography: Remove overwriting of anchor elements
Closes gh-84 Closes gh-81
1 parent 8eec9e6 commit 1ab1a15

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

scss/atoms/typography/_mixins.scss

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
// ==========================================================================
22
// Typography functions
33
// ==========================================================================
4-
5-
// Adds a single pixel underline (so nice) on retina
6-
// Usage: `@include slime-underline;`
7-
@mixin slim-underline() {
8-
text-decoration: none;
9-
background-image: linear-gradient( to bottom, rgba( 0, 0, 0, 0 ) 75%, #000 50% );
10-
background-repeat: repeat-x;
11-
background-size: 2px 2px;
12-
background-position: 0 em( 22px );
13-
14-
&:hover,
15-
&:active,
16-
&:focus {
17-
background-size: 2px 6px;
18-
background-position: 0 em( 18px );
19-
}
20-
@media not all,
21-
only screen and ( min-resolution: 2dppx ),
22-
only screen and ( -webkit-min-device-pixel-ratio: 2 ) {
23-
background-image: linear-gradient( to bottom, rgba( 0, 0, 0, 0 ) 75%, #000 75% );
24-
background-repeat: repeat-x;
25-
}
26-
}

scss/atoms/typography/_typography.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ a {
107107
}
108108
}
109109

110-
p > a {
111-
// Good example of slim underline. We'll want to use this on body copy/quotes
112-
color: inherit;
113-
@include slim-underline;
114-
}
115-
116110
b,
117111
strong {
118112
font-weight: $bold;

0 commit comments

Comments
 (0)