Skip to content

Instantly share code, notes, and snippets.

@jnslxndr
Forked from anonymous/FAlIj.markdown
Created August 8, 2014 16:05
Show Gist options
  • Save jnslxndr/83a60aee9e1f81fce427 to your computer and use it in GitHub Desktop.
Save jnslxndr/83a60aee9e1f81fce427 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Aug 8, 2014.
    7 changes: 7 additions & 0 deletions FAlIj.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    FAlIj
    -----


    A [Pen](http://codepen.io/anon/pen/FAlIj) by [Anonasaurus Rex](http://codepen.io/anon) on [CodePen](http://codepen.io/).

    [License](http://codepen.io/anon/pen/FAlIj/license).
    10 changes: 10 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <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>
    1 change: 1 addition & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    $(function() { Kerning.live(); });
    50 changes: 50 additions & 0 deletions style.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@

    $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;
    }