Created
August 31, 2015 06:09
-
-
Save waystilos/b7c45b2d873809795073 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div class="foo"></div> |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// variables | |
//Colors | |
$primary-color: #fb445a; | |
$secondary-color: #83d6b7; | |
//font size | |
$base-font--size: 16px; | |
//function | |
@function em($pixels, $context: $base-font--size) { | |
@return ($pixels / $context) * 1em; | |
} | |
//Font Families | |
$arial: Arial, Helvetica, sans-serif; | |
$comic: "Comic Sans MS", cursive, sans-serif; | |
//////////Variables end///////////// | |
.bar { | |
background-color: $primary-color; | |
width: 100%; | |
border-radius: 5px; | |
} | |
.foo { | |
background-color: complement($primary-color); | |
padding: em(45px); | |
width: 100%; | |
} | |
////////Nesting End/////////// |
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
.bar { | |
background-color: #fb445a; | |
width: 100%; | |
border-radius: 5px; | |
} | |
.foo { | |
background-color: #44fbe5; | |
padding: 2.8125em; | |
width: 100%; | |
} |
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
<div class="foo"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment