Skip to content

Instantly share code, notes, and snippets.

View finteractive's full-sized avatar

Aidan Foster finteractive

View GitHub Profile
@finteractive
finteractive / SassMeister-input.scss
Last active August 29, 2015 14:27
An Introduction to Sass Maps: Usage (Generated by SassMeister.com.)
// ----
// libsass (v3.2.5)
// ----
/*
Source: http://webdesign.tutsplus.com/tutorials/an-introduction-to-sass-maps-usage-and-examples--cms-22184
Topic: An Introduction to Sass Maps: Usage
*/
/* 1. Loop Through a Map and Generate Classes */
@finteractive
finteractive / SassMeister-input.scss
Last active August 29, 2015 14:27
An Introduction to Sass Maps (Generated by SassMeister.com.)
// ----
// libsass (v3.2.5)
// ----
/*
Source: http://webdesign.tutsplus.com/tutorials/an-introduction-to-sass-maps-usage-and-examples--cms-22184
Topic: An Introduction to Sass Maps: Usage and Examples
*/
/* Generating a map
@finteractive
finteractive / SassMeister-input.scss
Last active August 29, 2015 14:27
Leveraging Sass mixins for cleaner code - (Generated by SassMeister.com)
// ----
// libsass (v3.2.5)
// ----
/*
Source: http://thesassway.com/intermediate/leveraging-sass-mixins-for-cleaner-code
Topic: Leveraging Sass mixins for cleaner code
*/
/* Simple Mixin */
@finteractive
finteractive / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@finteractive
finteractive / sass101-toronto.md
Last active August 29, 2015 14:22
Sass 101 - Sass Toronto June 2015

#Intro#

#Get to know the group#

  • What's your level of CSS experience
  • Do you know any programming languages?
  • What's the most complex thing you've done with SASS
@finteractive
finteractive / SassMeister-input.scss
Created June 1, 2015 03:05
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
// Variables Data Types
//Numbers
$number-two: 2;
$number-golden-ratio: 1.618;
$number-px: 10px;
@finteractive
finteractive / SassMeister-input-HTML.html
Last active August 29, 2015 14:19
Generated by SassMeister.com.
<p>Example 1 - Icon Only</p>
<p>
<a class="icon-wrapper" href="#"><img class="svg-inline" src="http://placeskull.com/170/170"><span class="visually-hidden">Do Something</span></a>
</p>
<p>Example 2 - Inline SVG / IMG</p>
<p><a class="btn--inline-icon" href="#"><img class="svg-inline" src="http://placeskull.com/170/170">Example Wrapper with really long text that wraps and stays vertically centered </a>
</p
@finteractive
finteractive / SASS-TO-05.md
Last active August 29, 2015 14:17
SASS layouts with ej.js

SASS-TO SVG & SASS - March 2015

Introductions

  • What's your focus / work?
  • Do you use compass?
  • What’s Gem, Node Module, or other tool you found helpful recently.

Announcements

  • Looking for people to present
  • Next Meetup will likely be moving to Brighlane on King St.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// Modified without base 10 reset
// From https://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/
@function strip-unit($num) {
@return $num / ($num * 0 + 1);
@finteractive
finteractive / SassMeister-input.scss
Created February 26, 2015 15:01
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
foo {
}