Created
June 15, 2016 10:04
-
-
Save im4aLL/ac528e7ddfae78b803d1b1f0b80797b5 to your computer and use it in GitHub Desktop.
SASS
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
html { | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
@include font-face('Open sans', 'OpenSans', 'iefix', 'opensans'); | |
@include font-face('Open sans extra bold', 'OpenSansExBold', 'iefix', 'opensansexbold'); | |
body { | |
} |
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
// e.g @include clearfix(); | |
@mixin clearfix { | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
// e.g @include font-face('FontName Medium', 'font-name-webfont', 'iefix', 'fontname'); | |
@mixin font-face($style-name, $file, $family, $category:"") { | |
$filepath: "fonts/" + $file; | |
@font-face { | |
font-family: "#{$style-name}"; | |
src: url($filepath + ".eot"); | |
src: url($filepath + ".eot?#iefix") format('embedded-opentype'), url($filepath + ".woff") format('woff'), url($filepath + ".ttf") format('truetype'), url($filepath + ".svg#" + $style-name + "") format('svg'); | |
} | |
%#{$style-name} { | |
font: { | |
@if $category != "" { | |
family: "#{$style-name}", #{$category}; | |
} | |
@else { | |
family: "#{$style-name}"; | |
weight: normal; | |
} | |
} | |
} | |
} | |
// transition | |
@mixin transition($property, $transition-duration: 250ms, $transition-method: ease-in-out){ | |
transition-property: #{$property}; | |
transition-duration: $transition-duration; | |
transition-timing-function: $transition-method; | |
} |
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
@import "scss/settings"; | |
@import "scss/mixin"; | |
@import "scss/reset"; | |
@import "scss/base"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment