A Pen by Anonasaurus Rex on CodePen.
-
-
Save jnslxndr/83a60aee9e1f81fce427 to your computer and use it in GitHub Desktop.
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
<link href='http://lea.io/sortable-test/index_files/fira.min.css' rel='stylesheet' type='text/css'> | |
<div id="logo"><span>kntxt<span></div> | |
<style> | |
#logo { | |
-letter-kern: -5px -7px 5px 0 0; | |
} | |
</style> |
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
$(function() { Kerning.live(); }); |
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
$size: 512px; | |
body { | |
margin: 20px auto; | |
width: $size; | |
} | |
#logo { | |
width: $size; | |
height: $size; | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
position: relative; | |
//background: rgba(0,0,0,0.2); | |
text-align: center; | |
span { | |
position: relative; | |
height: 0; | |
margin: 0; | |
padding: 0; | |
top: 48%; | |
//margin-top: $size * -0.01; | |
margin-left: $size * 0.015; | |
font-family: 'Fira Sans', sans-serif; | |
font-weight: 100; | |
font-size: $size * 0.22; | |
letter-spacing: $size * 0.012; | |
text-align: center; | |
vertical-align: baseline; | |
line-height: 0%; | |
display: block; | |
color: white; | |
} | |
} | |
#logo:before { | |
margin: 0; | |
padding: 0; | |
position: absolute; | |
width: sqrt(50%*50 + 50%*50); | |
height: sqrt(50%*50 + 50%*50); | |
transform: rotate(45deg); | |
top: sqrt(50%*50 + 50%*50) * 0.21; | |
left: sqrt(50%*50 + 50%*50) * 0.21; | |
content: ''; | |
//background: #FF018D; | |
background-image: linear-gradient(to bottom right, #FF018D 10%, #FFA6C5 100%); | |
z-index: -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment