Skip to content

Instantly share code, notes, and snippets.

Created February 20, 2018 00:58
Show Gist options
  • Save anonymous/7583fa61f6ec93f3194c1fcd5ee48918 to your computer and use it in GitHub Desktop.
Save anonymous/7583fa61f6ec93f3194c1fcd5ee48918 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Feb 20, 2018.
    13 changes: 13 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <div id="container" class="container">
    <div id="output" class="container">
    </div>
    <ul id="links" class="links">
    <p>Press space to drop or pick up the light. Enter key to add another one</p>
    <li><a class="who" href="https://twitter.com/msurguy" target="_blank">by msurguy</a></li>
    <li><a class="blog" href="http://maxoffsky.com" target="_blank">Blog post</a></li>
    <li><a class="source" href="https://github.com/msurguy/triangles" target="_blank">GitHub</a></li>
    </ul>

    </div>
    <div id="controls" class="controls">
    </div>
    1,961 changes: 1,961 additions & 0 deletions script.js
    1,961 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
    134 changes: 134 additions & 0 deletions style.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,134 @@
    @import url(https://fonts.googleapis.com/css?family=Gabriela|Dosis:200);

    body {
    font-family: "Vidaloka", serif;
    font-smoothing: antialiased;
    font-weight: normal;
    background: #151618;
    color: #FFF;
    margin: 0;
    }

    h1 {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: normal;
    font-size: 16px;
    }

    p {
    line-height: 1.6em;
    text-align: center;
    font-size: 14px;
    }

    p + p {
    margin-top: 1.0em;
    }

    a {
    transition: color 0.2s ease-out;
    text-decoration: none;
    color: #FBB;
    }

    a:hover {
    color: #444;
    }

    .overlay {
    pointer-events: none;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    }

    .container {
    position: absolute;
    height: 100%;
    width: 100%;
    }


    .controls {
    font-smoothing: subpixel-antialiased;
    position: absolute;
    right: 20px;
    top: 0;

    }

    .links {
    position: absolute;
    list-style: none;
    width: 120px;
    bottom: 40px;
    right: 20px;
    padding: 0;
    margin: 0;

    }

    .links p{
    font-smoothing: subpixel-antialiased;
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    text-align: center;
    padding: 0.25em 0;
    letter-spacing: 2px;
    font-weight: 200;
    font-size: 10px;
    display: block;
    width: 100%;
    opacity: 0.6;
    color: #FFF;
    }

    .links li {
    border-bottom: #222 1px solid;
    border-bottom: rgba(255,255,255,0.1) 1px solid;
    }

    .links li a {
    transition: opacity 0.2s ease-out;
    font-smoothing: subpixel-antialiased;
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    text-align: right;
    padding: 0.25em 0;
    letter-spacing: 2px;
    font-weight: 200;
    font-size: 12px;
    display: block;
    width: 100%;
    opacity: 0.4;
    color: #FFF;
    }

    .links li a:hover {
    opacity: 0.8;
    }

    .links li .who:before {
    opacity: 0.5;
    content: '@';
    float: left;
    }

    .links li .source:before {
    opacity: 0.5;
    content: '{}';
    float: left;
    }

    .links li .blog:before {
    opacity: 0.5;
    content: '&';
    float: left;
    }

    .hide {
    opacity: 0;
    }
    7 changes: 7 additions & 0 deletions triangle-pattern-generator.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    Triangle pattern generator
    --------------------------
    This is my open source project that allows creating some incredible wallpapers/web site graphics, feel free to improve on it and use it for commercial or free projects

    A [Pen](https://codepen.io/libertario/pen/GQxgyV) by [Libertar.io](https://codepen.io/libertario) on [CodePen](https://codepen.io).

    [License](https://codepen.io/libertario/pen/GQxgyV/license).