Skip to content

Instantly share code, notes, and snippets.

View stackpoet's full-sized avatar
💭
I may be slow to respond.

Kenya Sullivan stackpoet

💭
I may be slow to respond.
View GitHub Profile
%icon {
font-family: $icon-font; //set as a variable - it's whatever your icon font name is
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
@function em($target, $context: $base-font-size) {
@if $target == 0 { @return 0 }
@return $target / $context + 0em;
}
$base-font-size: 15px;
h1 {
font-size: em(21px, 15px); // Outputs 1.4em
}
@stackpoet
stackpoet / Gruntfile.JS - Compass
Created March 30, 2014 21:09
GruntFile.JS -Sass-Compass-Ugilfy-MatchDep-Susy-LiveReload
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.initConfig({
uglify: {
my_target: {
files: {
'_/js/script.js': ['_/components/js/*.js']
} //files
@stackpoet
stackpoet / Sass Mixin - Headings
Created March 30, 2014 14:08
SASS MIXIN FOR HEADINGS
@mixin headings($from: 1, $to: 6){
@for $i from $from through $to{
h#{$i}{
@content
}
}
}
------USAGE-----------
@include headings(){
font-family:sans-serif;
$lightgray : #819090;
$gray : #708284;
$mediumgray : #536870;
$darkgray : #475B62;
$darkblue : #0A2933;
$darkerblue : #042029;
$paleryellow : #FCF4DC;
$paleyellow : #EAE3CB;
$yellow : #A57706;
$orange : #BD3613;
/*Transparent pattern placed over an image, like we see on the bootstrap homepage: http://twitter.github.com/bootstrap/index.html*/
div {
width: 200px;
height: 200px;
display: block;
position: relative;
background: url(images/background-image.png);
}