Skip to content

Instantly share code, notes, and snippets.

View Sulcalibur's full-sized avatar
🕺
Pop 'n' Lock

Suleiman Leadbitter Sulcalibur

🕺
Pop 'n' Lock
View GitHub Profile
@Sulcalibur
Sulcalibur / bourbon-neat-grid-calca
Last active December 24, 2015 20:29
Calca Bourbon Neat Grid Calculations
# Bourbon Neat Grid & Text Settings
## Grid Settings
### Mega Desktop
width = 1460
cols = 16
gutter = 20
margin = gutter => 20

The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing. You can exclude folders if you want to. You probably want to exclude giant cache folders.

You should have a similar script.

@Sulcalibur
Sulcalibur / Fetch.sublime-settings
Created September 3, 2013 10:08
Fetch Settings
{
"files":
{
"FitText": "https://github.com/davatron5000/FitText.js",
"LetteringJS": "http://github.com/davatron5000/Lettering.js",
"backbone": "http://documentcloud.github.com/backbone/backbone-min.js",
"chrome-frame": "http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js",
"font-awesome": "https://github.com/FortAwesome/Font-Awesome/blob/master/sass/font-awesome.scss",
"imagesLoaded": "https://raw.github.com/desandro/imagesloaded/master/jquery.imagesloaded.min.js",
"impressjs": "https://github.com/bartaz/impress.js/raw/master/js/impress.js",
@Sulcalibur
Sulcalibur / _visual-grid.scss
Created September 2, 2013 21:44
Neat Grid Visual Settings
$visual-grid: true !default; // Display the base grid
$visual-grid-color: #EEE !default;
$visual-grid-index: back !default; // Show grid behind content (back) or overlay it over the content (front)
$visual-grid-opacity: 0.6 !default;
$visual-grid-breakpoints: () !default;
@Sulcalibur
Sulcalibur / _grid.scss
Created September 2, 2013 21:43
Neat Grid Settings
$column: golden-ratio(1em, 3) !default; // Column width
$gutter: golden-ratio(1em, 1) !default; // Gutter between each two columns
$grid-columns: 12 !default; // Total number of columns in the grid
$max-width: em(1088) !default; // Max-width of the outer container
$border-box-sizing: true !default; // Makes all elements have a border-box layout
$default-feature: min-width; // Default @media feature for the breakpoint() mixin
$default-layout-direction: LTR !default;
$visual-grid : true;
// ---------------------------------------------------------------------------
// Imports
@import "bourbon/bourbon";
@import "neat/neat";
@import "neat/neat-helpers";
$landscape: new-breakpoint(min-width 480px 4);

Enabling noConflict mode

Using a default Foundation download you'll see some code like this:

<script>
document.write('<script src=' +
('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
'.js><\/script>')

Enabling noConflict mode

Using a default Foundation download you'll see some code like this:

<script>
document.write('<script src=' +
('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
'.js><\/script>')

Using Calca for design

Below, the variables and examples were taken verbatim from [Using Soulver for design][sfd].

I'm just posting this as a reference, and example of sharing plain text documents for use within Calca. [sfd]: http://bjango.com/articles/soulver/

Variables and examples

iPhoneW = 320

@Sulcalibur
Sulcalibur / Calca Design Variables
Created August 16, 2013 11:59
Following the post on http://bjango.com/articles/soulver/ for Soulver. Just paste this into the top of you Calca window and you are sorted.
// Design Variables for Calca
// Ref: [Bjango](http://bjango.com/articles/soulver/ )
k = 1000
iPhoneW = 320
iPhoneH = 568
iPhoneOldH = 480
iPhonePPI = 326
iPhoneOldPPI = 163
iPadW = 1024