Skip to content

Instantly share code, notes, and snippets.

@krisbulman
krisbulman / A Set of Instructions.markdown
Created September 12, 2012 04:09
Example for font-icons

Here is a quick project setup and usage tutorial:

Compass Project Creation

  1. Install font-icons
sudo gem install font-icons --pre
  1. Create a new bare bones compass project using the compass install instructions
@krisbulman
krisbulman / countCSSRules.js
Last active August 25, 2022 19:53 — forked from psebborn/countCSSRules.js
Count the number of rules and selectors for CSS files on the page. Flags up the >4096 threshold that confuses IE. — This snippet has been modified to count more than just the first level of CSSStyleRule objects within CSSMediaRule.
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {
@krisbulman
krisbulman / meetings.js
Last active April 11, 2016 18:06 — forked from willaalt/meetings
<script type="text/javascript">
var meeting = {number:"1"};
while (meeting==meeting) {
document.write( '1++');
}
</script>
@krisbulman
krisbulman / SassMeister-input.scss
Created January 22, 2014 16:30
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// Breakpoint (v2.4.1)
// ----
@import "breakpoint";
// Sass
$message-padding: .25em .5em !default;
$message-width: 80% !default;
@krisbulman
krisbulman / SassMeister-input.scss
Created November 22, 2013 19:43
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@import "compass";
// Retina Wrapper
// Wrap anything in a resolution query
//
@krisbulman
krisbulman / SassMeister-input.scss
Created February 21, 2013 13:33
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.5
// Sass v3.2.5
// Answer to: How can I do this without typing "background-position" and "14px" twice?
// https://www.facebook.com/groups/SassyCSS/
// because you're using vanilla sass, and not a sprite engine like that provided by compass,
// then you can't use the magic of magic selectos. Instead you would have to create a mixin
// to reduce repeatable code, in the example I have created, you would be relying on a static
@krisbulman
krisbulman / SassMeister-input.scss
Last active December 13, 2015 19:09
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.5
// Just realized: In Sass “&” can be a standalone referent
// to the parent class. so ".foo, .bar, &" is a valid selector.
// @lonelytype
.foo {
.bar, & {
margin: 0;
}
@krisbulman
krisbulman / ruby-resources.markdown
Last active December 12, 2015 12:29
Ruby Resources
@krisbulman
krisbulman / SassMeister-input-HTML.html
Created November 18, 2015 18:23
Generated by SassMeister.com.
<div class="container">
<!-- Note the order in DOM and rendered -->
<div class="content">content</div>
<div class="sidebar1">sidebar1</div>
<div class="sidebar2">sidebar2</div>
</div>
@krisbulman
krisbulman / SassMeister-input-HTML.html
Created November 18, 2015 18:19
Generated by SassMeister.com.
<div class="container">
<!-- Note the order in DOM and rendered -->
<div class="content">content</div>
<div class="sidebar1">sidebar1</div>
<div class="sidebar2">sidebar2</div>
</div>