Skip to content

Instantly share code, notes, and snippets.

@ColemanCollins
ColemanCollins / Link.jsx
Created January 16, 2020 22:56
Quick-and-dirty attempt to add arrowheads on links in @mrblenny/react-flow-chart; required redoing the curve generation logic.
@ColemanCollins
ColemanCollins / _responsive-mixins.scss
Created March 15, 2018 17:55
Responsive helper mixins
// =============================================
// Breakpoints
// =============================================
$breakpoint-extra-small: 435px;
$breakpoint-small: 770px;
$breakpoint-large: 992px;
@mixin breakpoint($feature, $value) {
@media only screen and ($feature: $value) {
@ColemanCollins
ColemanCollins / gist:6144525fcb3eda615a60
Last active November 4, 2015 14:07 — forked from jonsuh/gist:e93fbfbf994b5478d4bc
Change Twitter’s Heart Animation to Exploding Poopies
.HeartAnimationContainer .HeartAnimation {
margin-top: -2px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAC1QAAABkCAYAAAA7MJAoAABZBElEQVR42uzBAQEAAACAkP6v7ggCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIDZgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXYuXuWKOAAjuP/paF3UO8gaAwJ90Ck1E49HygDL+ye8s5DF0kzMJCgGhxssMDFoRIqbPAp7zofwG5IaqkhagjaImhw/LdF0VbQqXw+b+G7/vjB/1cb6i4F9ECLA2B9dKBxdTTTGNg3VooXCwE9AAAAAAAAONzK7Q3HNy+dGd9OnDoW0IM/7PQ3na/1NyUCeqCHHmhxIJWLPaXHY6W4UuwbCeiBFvvccr6nupTvrQUAAAAAAADgcKukmi9UU83dgX1ha2JwrHItG7duDE4F9OA3cebOkZXJkXfLk8Mf9+5PHw3ogR56oMWB8yLd9nAp0/t5NZ1YDOiBFgAAAAAAAGDAS71VryYbXuaTn6r55PeNwa7Tgbp6kz53Ynm88PXB1ERcvD60t5vvOBnQg582My0L86Urca6Uj+V060JAD/TQAy0AAAAAAAAAAANe/sX2zeHF5zN349PpW3Hr9lg5UFeb2bbdR/2tca5QjPOpZKykW14H9ODX177b5Wzn20q2+/1auu1eQA/00AMtAAAAAAAAAMAbsgEvf2sn3dK+lOv6NltIxdnC5fgk1xtrA2c7AnWznkmkKrn2D6+G+p5t5Dq/rGUShYAeAAAAAMAP9u7npek4juP4hyAo+gfqTwi6RZDUSQJbufS7NbdpTTfS77bvvvs
@ColemanCollins
ColemanCollins / radios.scss
Created September 28, 2015 19:26
Radio Buttons
$fake-radio-size: $baseline-grid-height * 3;
$radio-dot-size: $baseline-grid-height * 2;
$radio-distance-from-left: ($fake-radio-size - $radio-dot-size)/2;
$radio-distance-from-top: ($fake-radio-size - $radio-dot-size)/2;
@mixin radio {
line-height: $baseline-grid-height * 4;
margin-bottom: $baseline-grid-height;
@ColemanCollins
ColemanCollins / gist:5b7e7e8e527f5b66fa96
Last active August 29, 2015 14:14
This is all a "SCSS grid framework" needs to be.
$grid-guttter: 24px;
$page-edge-padding: 12px; //optional additional padding on the edge of the viewport
@mixin clearfix() {
&:after {
content: "";
display: table;
clear: both;
}
}
@ColemanCollins
ColemanCollins / gist:e2aa1d3f4d4b39c9ea02
Created January 20, 2015 21:33
example font face mixin. why keep typing this shit?
@mixin font-path($filename) {
src: url(font-path('#{$filename}.eot') + "?#iefix") format('embedded-opentype'),
url(font-path('#{$filename}.woff')) format('woff'),
url(font-path('#{$filename}.ttf')) format('truetype'),
url(font-path('#{$filename}.svg') + "##{$filename}") format('svg');
}
@font-face {
font-family: 'DIN-Condensed';
@include font-path(DINCond-Light);
@ColemanCollins
ColemanCollins / gist:10932889
Created April 16, 2014 21:04
Quick blank slate reset for node-webkit apps
*
{
padding: 0;
margin: 0;
cursor: default;
-webkit-tap-highlight-color: rgba(0,0,0, 0);
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-user-select: none;
user-select: none;
> > **Ignacio**
> > Morning Guys.
> > Why's there so much controversy around Adobe's optical kerning? [link to @typographica tweet]
> > > **Typographica**
> > > My full-time job is deprogramming designers who were taught to rely on Adobe's Optical kerning.
> > > Teachers, stop doing this.
Now, i'm not exactly sure _what_ @typographica is attempting to say, but it's one of two things. I'll attempt to explain both, but first, I'm going to explain kerning in Adobe CS products, just as a refresher and context-setting exercise.
Kerning, to distinguish from tracking, is the calculated space between two letters —a "letter pair"— as opposed to all of the letters. There are two basic kerning options in CS products: "Metrics" (aka Auto), and "Optical," each of which do a different thing to create a default spacing for every possible
@ColemanCollins
ColemanCollins / pie_demo.scss
Created August 1, 2013 14:42
This is that helpful css3pie (ie polyfill for rounded corners, box shadows, backgrounds, alpha in the context of backgrounds, probably some other things?) demo stylesheet that compass hides from us.
// this file demonstrates how to use the CSS PIE extension for
// legacy versions of Internet Explorer. In many cases, PIE will allow
// you to style in CSS things that you'd have to do using image chops otherwise.
//
// Note: Each element that has PIE enabled on it will add about 10ms to your page load.
@import "compass/css3/pie";
@import "compass/css3";
// Set this to wherever you end up putting your behavior file.
//
$account-management-button-color: $action-button-color;
$account-management-button-margin: $grid-unit*2 0;
$account-management-text-margin: $grid-unit*2 0;
.accountManagement{
button {
@include button($account-management-button-color);
margin: $account-management-button-margin;
}
p {