Skip to content

Instantly share code, notes, and snippets.

@gijsroge gijsroge/dabblet.css
Last active Sep 25, 2016

Embed
What would you like to do?
Untitled
:root{
max-width: 50rem;
margin: 0 auto;
font-size: 200%;
line-height: 1.5;
padding: 0 2rem;
}
a{
text-decoration: none;
}
.without-pseudo{
background-image: linear-gradient(transparent 50%, currentColor 50%); /* no transparency :(*/
background-repeat: repeat-x;
background-position: 0 100%;
background-size: 1px 2px;
}
.with-pseudo{
position: relative;
}
.with-pseudo::after{
content:'';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(transparent 50%, currentColor 50%);
background-repeat: repeat-x;
background-position: 0 100%;
background-size: 1px 2px;
opacity: .2;
}
<p>Lorem ipsum <a class="without-pseudo" href="#">test link multiline sit amet, consectetur adipisicing elit.</a> Nisi suscipit expedita distinctio maxime, ex, similique officia dolores laudantium maiores laboriosam, assumenda at beatae animi nostrum odio amet ut perspiciatis atque!</p>
<hr />
<p>Lorem ipsum <a class="with-pseudo" href="#">test link multiline sit amet, consectetur adipisicing elit.</a> Nisi suscipit expedita distinctio maxime, ex, similique officia dolores laudantium maiores laboriosam, assumenda at beatae animi nostrum odio amet ut perspiciatis atque!</p>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.