Skip to content

Instantly share code, notes, and snippets.

View blackfalcon's full-sized avatar
:octocat:
Building things ...

Dale Sande blackfalcon

:octocat:
Building things ...
View GitHub Profile
@blackfalcon
blackfalcon / SassMeister-input-HTML.html
Last active August 29, 2015 14:21
Generated by SassMeister.com.
<div class="content-block-alpha">
<div class="content-cell">
Words words words words words words
</div>
<div class="content-cell">
Words words words words words words words words words words words words words words words words words words words words words words words words words words words words
</div>
<div class="content-cell">
Words words words words words words words words words words words words words words words
</div>
@blackfalcon
blackfalcon / SassMeister-input-HTML.haml
Last active August 29, 2015 14:20
Generated by SassMeister.com.
.block
-(1..6).each do |i|
.element #{i}
@blackfalcon
blackfalcon / mountie.md
Created April 24, 2015 14:52
The Mountie

If you haven't heard me talk about the Mountie, then you don't follow along on Twitter.

What is it? Well, it's NOT a reference to the Canadian Mounted Police, at least not in this reference, and it's NOT any reference to any professional wrestler, EVER.

What it IS, is a real genius little device that mounts additional devices such as iPads and iPhones to your laptop. For a professional nomad like myself, this is a MUST HAVE!

mountie

Why would you want one?

@blackfalcon
blackfalcon / input-HTML.html
Last active August 29, 2015 14:19
Build smarter Sass with introspection
<div class="my-selector"></div>
@blackfalcon
blackfalcon / SassMeister-input.scss
Last active November 27, 2022 12:15
Update single value in a Sass map
// ----
// libsass (v3.1.0-beta)
// ----
$map-one: (color: orange, height: 100px);
.block {
color: map-get($map-one, color);
}
@blackfalcon
blackfalcon / SassMeister-input-HTML.html
Last active August 29, 2015 14:13
The Box Model example
<div class="base rule">base</div>
<div class="w3c-box-model">w3c</div>
<div class="border-box">border-box</div>
<div class="content-box">content-box</div>
<div class="padding-box">padding-box</div>
@blackfalcon
blackfalcon / SassMeister-input-HTML.jade
Last active August 29, 2015 14:12
display inline-block 0 space hack
.block
.cube hello
.cube world,
.cube how
.cube are
.cube you?
@blackfalcon
blackfalcon / README.md
Last active August 29, 2015 14:12
Simple 4096 selector test for IE

The point of this test is to easily see how the famed 4096 selector limit really effects your web apps.

There are three parts, the Sass file that will generate the number of selectors needed, the base HTML need to view this in the browser and then run the simple Python server to view this locally.

We have all heard about this, but the use case is confusing and what does IE really consider a 'selector' anyway? In this exercise I confirmed a few suspicions.

How does this test work?

It's pretty simple really. I have a Sass loop that will create a series of nested selectors to render text the color orange. What I did was that the HTML does not represent this specificity, so unless the 4096th rule is read by the browser, the test will have NO style.

@blackfalcon
blackfalcon / SassMeister-input.scss
Last active August 29, 2015 14:10
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
@function get-list-value($list, $place: first) {
@if $place == first {
$group: nth($list, 1);
$first-object: nth($group, 1);
@return $first-object
@blackfalcon
blackfalcon / SassMeister-input.scss
Created November 25, 2014 16:57
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
@function get-list-value($list, $place: first) {
$list-length: length($list);
@if $place == first {
$group: nth($list, 1);
$first-object: nth($group, 1);