Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created March 16, 2017 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/5f00b5aca6ecb786c88626dcab9f7bd7 to your computer and use it in GitHub Desktop.
Save CodeMyUI/5f00b5aca6ecb786c88626dcab9f7bd7 to your computer and use it in GitHub Desktop.
paragraph link idea
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit deserunt consequatur <a href="">voluptatem</a> similique eum, aliquam cupiditate minima perspiciatis est fuga, eius, iure inventore eaque ab rem! Numquam, <a href="">quasi quam</a> saepe!</p>
$a-color: hsl(163, 59%, 34%);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,300);
p{
width:60%;
margin:20% auto;
font:300 1.15em/1.5 "Raleway", sans-serif;
color:darken(white, 80%);
text-shadow:0 1px 0 darken(white,8%);
border:1px solid darken(white,13%);
border-left:none;
border-right:none;
padding: 1em;
}
a{
color:$a-color;
text-shadow:0 1px 0 lighten($a-color,60%);
text-decoration:none;
border-bottom:1px dashed lighten($a-color, 15%);
display:inline-block;
position:relative;
padding:0 .2em;
transition:all 250ms;
z-index:1000;
&:before{
content:"";
z-index:-1;
width:100%;
height:0%;
background:rgba(lighten($a-color,20%),.16);
bottom:0;
left:0;
position:absolute;
transition:height 250ms;
}
&:hover{
border-color:transparent;
&:before{
height:100%;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment