Skip to content

Instantly share code, notes, and snippets.

View zastrow's full-sized avatar
🦄
Making the Web a magical place

Philip Zastrow zastrow

🦄
Making the Web a magical place
View GitHub Profile
@mixin colour($val) {
color: $val;
}
@zastrow
zastrow / A-Pen-by-Philip-Zastrow.markdown
Created February 25, 2014 17:33
A Pen by Philip Zastrow.
@zastrow
zastrow / Inline Block.scss
Created March 10, 2014 20:48
Common Mixins
@mixin inline($val) {
display: inline-block;
vertical-align: $val;
.lt-ie8 & {
display: inline;
zoom: 1;
}
}
@zastrow
zastrow / gist:9623710
Created March 18, 2014 16:29
JSWarrior
jsWarrior.turn = function(warrior) {
var action = null;
if(!warrior.game_started){
jsWarrior.firstSquareReached(warrior);
}
if(warrior.check() == "diamond") {
action = warrior.collect;
}
@zastrow
zastrow / gist:94ee35f59f7d0fda2681
Created May 7, 2014 21:27
Sparkbox’s sb-media mixin with a max-width option.
@mixin sb-media($min, $max:"") {
@if $no-mq-support{
@if $min < $serve-to-nomq-max-width{
@content;
}
}
@else if $max != "" {
@media ( 'min-width:' + $min ) and ( 'max-width:' + $max ) {
@content;
}
@zastrow
zastrow / gist:566cbff99fe1124ffda9
Created May 12, 2014 15:31
Mixin that puts position offset values on one line a la padding or margin
@mixin positions($top:"auto", $right:"auto", $bottom:"auto", $left:"auto",$unit:"") {
@if ( $top != "auto" and ( $unit == "" or $unit == "rem" ) ) {
top: $top * $base-font-multiplier * 16px;
top: $top * 1rem;
} @else if ( $unit != "" and $unit != "rem" ) {
top: #{$top}#{$unit};
} @else {
top: $top;
}
@if ( $right != "auto" and ( $unit == "" or $unit == "rem" ) ) {

Keybase proof

I hereby claim:

  • I am zastrow on github.
  • I am zastrow (https://keybase.io/zastrow) on keybase.
  • I have a public key whose fingerprint is 9DA5 5A8B 2833 6822 0E37 316F 7A80 FC53 7691 FA81

To claim this, I am signing this object:

@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 01:31
Generated by SassMeister.com.
<a href="#">Sass Color Links</a>
@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 02:01
Generated by SassMeister.com.
<a href="#" class="feature-class">Feature Link</a>
<a href="#" class="feature-class style-class">Feature Style Link</a>
@zastrow
zastrow / SassMeister-input-HTML.html
Created September 3, 2014 02:19
Generated by SassMeister.com.
<a href="#" class="feature-class">Feature Link</a>
<div class="parent-class">
<a href="#" class="feature-class">Feature Link with Parent</a>
</div>