Skip to content

Instantly share code, notes, and snippets.

View JawsomeJason's full-sized avatar
💅
Bein' sassy

Jason Featheringham ⊙ω⊙ JawsomeJason

💅
Bein' sassy
View GitHub Profile
@JawsomeJason
JawsomeJason / name.sublime-project
Last active September 26, 2016 21:11 — forked from sanderhouttekier/name.sublime-project
Sublime Project File #snippet #sublimetext
{
"folders":
[
// add paths per directory you want to show
{
// relative paths to the root
"path": ".",
// optionally give it a different name
// "name": "My Project",
// possible folders to exclude
@JawsomeJason
JawsomeJason / _ember-common-addons.json
Last active September 26, 2016 21:48
Ember common addons
"autoprefixer": "^6.4.1",
"ember-browserify": "^1.1.13",
"ember-cli-fastboot": "1.0.0-beta.9",
"ember-cli-postcss": "3.0.4",
"ember-cli-sass-pods": "1.3.0",
"ember-link-action": "0.0.35",
"ember-remarkable": "3.1.2",
"ember-router-scroll": "git+ssh://[email protected]/thejase/ember-router-scroll.git#master",
"eqcss": "^1.2.2",
@JawsomeJason
JawsomeJason / _hybrid-mixin.scss
Last active September 28, 2016 09:47
Sass Hybrid Mixin Pattern
////
/// A DRY but flexible pattern for defining and reusing Sass patterns.
/// Documentation in [SassDoc](http://sassdoc.com/) format
///
/// Instructions:
/// 1) Replace all instances of `hybrid-mixin` with a pattern name.
/// 2) Add rules for pattern in `__hybrid-mixin-rules` mixin.
/// 3) Remove or change @group below.
/// 4) Remove @author or change to you.
/// 5) The `@ignore` below should remain as a reference to this pattern.
@JawsomeJason
JawsomeJason / _reset.scss
Created October 5, 2016 09:06
Most basic browser reset
// reset
* {
&,
&:before,
&:after {
font: inherit;
// -webkit-font-smoothing: antialiased;
// font-smoothing:antialiased;
text-rendering:optimizeLegibility;
@list: apple, satsuma, banana, pear;
.loop(@index) when (@index <= length(@list)) {
@item: extract(@list, @index);
.fruit-@{item} {
content: "Just a test.";
}
.loop(@index + 1);
}
.loop(1);
@JawsomeJason
JawsomeJason / gradient-overflow.less
Created June 6, 2017 04:58
create scrollable content with sticky gradient overlay on top and bottom
.gradient-overflow(@size: 24px, @color: white) {
// content will scroll if not enough space
overflow-y: auto;
// add a sticky gradient to the top and bottom of content
// it'll overlay over content if needed
&:before,
&:after {
content: '';
display: block;
@JawsomeJason
JawsomeJason / !react-sublime-snippets.md
Last active September 6, 2017 17:18
Sublime Text Completions and Snippets for React
  • Place these in your Packages/User/Snippets folder
  • Use any of them with their tab trigger value.
  • call snippets using the first letter of each word plus the entire last word (e.g. rpch.. => react-proptypes-children.sublime-snippet
@JawsomeJason
JawsomeJason / spacing.less
Created October 12, 2017 07:15
Consistent sibling spacing
/**
* super easy consistent spacing between all siblings
*
* usage:
* // in main.less
* :root {
* .consistent-spacing();
* }
*
* // somewhere you want to apply 32px vertical spacing
@JawsomeJason
JawsomeJason / spacing.css
Created May 20, 2018 10:14
Easy auto-spacing for HTML siblings
/*
* Automatically applies spacing to all non-inline siblings
* Disable in an element with `--SPACING-ENABLED: 0;`. Will automatically re-activate in children. Good for Grid Layout gap control.
* Change direction with `--SPACING-HORIZONTAL: 1`
*/
* {
margin: 0;
/* change this to 1 if you need to space it from it's previous sibling. */
--SPACING-ENABLED: 0;
@JawsomeJason
JawsomeJason / reset.css
Last active August 11, 2018 00:53
Minimal CSS reset
/* smallest reset ever */
*, *:before, *:after {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
color: inherit;
box-sizing: inherit;
}