Skip to content

Instantly share code, notes, and snippets.

View bcinarli's full-sized avatar
🚀

Bilal Çınarlı bcinarli

🚀
View GitHub Profile
@bcinarli
bcinarli / fontface.scss
Created October 19, 2013 12:50
Font-face mixin for SASS
@mixin fontface($name, $file, $weight: normal, $style: normal){
@font-face {
font-family: "#{$name}";
src: url('../fonts/#{$file}.eot');
src: url('../fonts/#{$file}.eot?#iefix') format('embedded-opentype'),
url('../fonts/#{$file}.woff') format('woff'),
url('../fonts/#{$file}.ttf') format('truetype'),
url('../fonts/#{$file}.svg?#webfont') format('svg');
font-weight: $weight;
font-style: $style;
@bcinarli
bcinarli / config.rb
Last active July 26, 2023 10:07
Bourbon based SASS config and debug options After import the config file, you can call bourbon as @import "bourbon"
# define bourbon path, use a common library for preventing duplicates
add_import_path "path/to/your/bourbon/lib"
### -->> project paths, delete/comment if you use scout, codekit etc.
environment = :production # removes single line comments, keeps css comments
output_style = :compact
css_dir = "styles" #relative to project root
sass_dir = "styles-sass" #relative to project root
images_dir = "images" #relative to project root