Skip to content

Instantly share code, notes, and snippets.

/**
* CSS Lock
*
*
* @description
* In canal and river navigation, a lock is a device used for raising and
* lowering vessels between stretches of water that are at different levels.
*
* To fluctuate between two values depending on the screen width.
*
@johnheiner
johnheiner / 0_reuse_code.js
Created March 7, 2017 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@johnheiner
johnheiner / mixins.scss
Created October 4, 2016 17:40
My SASS Mixins
// MEDIA QUERIES: Default
@mixin mq($width, $height: false) {
@if $height {
@media ( min-width: + $width ) and ( min-height: + $height ) {
@content;
}
}@else {
@media ( min-width: + $width ) {
@content;
}