Skip to content

Instantly share code, notes, and snippets.

View IainIsCreative's full-sized avatar
🎯
Focusing

Iain IainIsCreative

🎯
Focusing
View GitHub Profile
@IainIsCreative
IainIsCreative / SassMeister-input.scss
Last active October 27, 2015 00:00
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin breakpoint($breakpoint) {
// The following code no longer works in libSass 3.3.0
// It will return an error and say it can't pass a content block
//Check if the value passed in is a unitless number
@if not unitless($breakpoint) {
@IainIsCreative
IainIsCreative / SassMeister-input.scss
Last active October 26, 2015 23:16
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin breakpoint($breakpoint) {
// The following code no longer works in libSass 3.3.0
//Check if the value passed in is a unitless number
@if not unitless($breakpoint) {
//Pass an error if not unitless.
@IainIsCreative
IainIsCreative / SassMeister-input.scss
Created October 19, 2015 10:03
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Nested map example
$nested-map: (
key-1: (
deep-key-1: (
deeper-key: true
),
@IainIsCreative
IainIsCreative / relative-sizing.scss
Last active August 29, 2015 14:24
A simple SCSS function to easily write out relative values. Can write in both rems and ems.
/**
*
* Relative Sizing Function
*
* Simple function for returning relative values using rems, and ems, optionally.
* Primary argument is for a target value to be converted.
* Relies on the root's font size for caclulation, set as a global variable.
*
* Secondary argument (optional) is for a context to the target value.
* Output is converted into ems.
@IainIsCreative
IainIsCreative / SassMeister-input-HTML.html
Created July 1, 2015 16:09
Generated by SassMeister.com.
<div class="container">
<blockquote>
<p>Also second their after whales called midst itself god sea and own after lights moveth. Them days. They're, created without called doesn't bring. Make all meat i above behold two saying third one, to face to own bearing their, to wherein he. Together he can't earth said. Lesser wherein herb.</p>
<cite>Anon. E. Muss</cite>
</blockquote>
</div>
@IainIsCreative
IainIsCreative / SassMeister-input-HTML.html
Created July 1, 2015 15:32
Generated by SassMeister.com.
<p class="output">
The output number is
</p>
@IainIsCreative
IainIsCreative / center.css
Last active August 29, 2015 14:13
A small CSS snippet for all your demo needs.
/**
*
* CSS Centering Styles
*
* A small CSS snippet for all your demo needs.
* If you have a demo on a small bit of design (such as: http://iainspad.github.io/quotation-block/), you may want perfect centering.
* Using automatic margins and CSS transform, you can center anything!
* http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ — CSS Vertical Alignment by zerosixthree.se
*
**/