paragraph link idea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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