Skip to content

Instantly share code, notes, and snippets.

@gogachinchaladze
Created February 17, 2016 10:30
Show Gist options
  • Select an option

  • Save gogachinchaladze/51e2edaef0c0fecb581d to your computer and use it in GitHub Desktop.

Select an option

Save gogachinchaladze/51e2edaef0c0fecb581d to your computer and use it in GitHub Desktop.

Revisions

  1. gogachinchaladze created this gist Feb 17, 2016.
    17 changes: 17 additions & 0 deletions SassMeister-input.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    // ----
    // libsass (v3.2.5)
    // ----

    $browser-context : 16px;

    @function em($pixels, $context: $browser-context) {
    @return #{$pixels/$context}em;
    }

    #some-div{
    font-size:em(32px);
    }

    #some-other-div{
    font-size:em(15px,30px);
    }
    7 changes: 7 additions & 0 deletions SassMeister-output.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #some-div {
    font-size: 2em;
    }

    #some-other-div {
    font-size: 0.5em;
    }