Skip to content

Instantly share code, notes, and snippets.

View roytomeij's full-sized avatar

Roy Tomeij roytomeij

  • RoyTomeij.com
  • Amsterdam, The Netherlands
View GitHub Profile
@roytomeij
roytomeij / SassMeister-input.scss
Created May 5, 2015 12:20
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
@mixin font($family, $weight: 400, $style: normal) {
font-family: $family;
font-weight: $weight;
font-style: $style;
}
@roytomeij
roytomeij / SassMeister-input.scss
Last active December 4, 2017 11:28
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@mixin animation-keyframes {
$animation-name: unique-id();
animation-name: $animation-name;
@keyframes #{$animation-name} {
@roytomeij
roytomeij / global_variables.scss
Last active December 25, 2015 15:49
Gist with all parts for "Sass CSS3 animation trajectory ascii art".
$grid-width: str-length(nth($grid, 1));
$column-width: 100% / $grid-width;
$row-height: 100% / length($grid);
%hide-text {
text-indent: -9999px;
overflow: hidden;
}
.foo {
@extend %hide-text;
}
.bar {
.foo {
text-indent: -9999px;
overflow: hidden;
}
.bar {
text-indent: -9999px;
overflow: hidden;
}
@mixin border-radius($radius) {
border-radius: $radius;
}
.foo {
@include border-radius(5px);
}
.bar {
@include border-radius(7px);
@mixin hide-text {
text-indent: -9999px;
overflow: hidden;
}
.foo {
@include hide-text;
}
.bar {
.foo, .bar, .baz {
text-indent: -9999px;
overflow: hidden;
}
$buttons: (
(sales, $color-button-sales-border, $color-button-sales-top, $color-button-sales-bottom),
(personal, $color-button-personal-border, $color-button-personal-top, $color-button-personal-bottom)
);
@each $button in $buttons {
.#{nth($button, 1)} {
background-color: nth($button, 2);
@include background-image(linear-gradient(nth($button, 3), nth($button, 4)));
}
@roytomeij
roytomeij / supports.sass
Created January 28, 2013 15:52
Sass nested @supports test
parent
background: orange
@supports ((perspective: 10px) or (-moz-perspective: 10px))
child
background: blue