Skip to content

Instantly share code, notes, and snippets.

@cfinster
cfinster / Sass color functions
Created April 8, 2015 23:52
Sass color functions
$grey: #808080;
$grey-dark: darken($grey, 30); // 30% darker
$grey-light: lighten($grey, 10); // 10% lighter
body {
color: $grey-dark;
}
.footnote {
color: $grey-light;
}
http://bit.ly/1EWQmV2
gradients shade.js:
darkpurple--to--purple
background-image: linear-gradient(-90deg, #360F52, #20041F);
purple--to--white:
background-image: linear-gradient(-90deg, #FFFFFF, #71195E);
vase -- grape:
@cfinster
cfinster / CSS-slide-out-footer.markdown
Created February 27, 2015 23:33
CSS slide-out footer
@cfinster
cfinster / my.css
Created February 27, 2015 16:51 — forked from anonymous/my.css
background: linear-gradient(270deg, #25072b, #9926b0);
background-size: 400% 400%;
-webkit-animation: AnimationName 18s ease infinite;
-moz-animation: AnimationName 18s ease infinite;
-o-animation: AnimationName 18s ease infinite;
animation: AnimationName 18s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
@cfinster
cfinster / gradient for buttons - dark on top+ slightly lighter to the bottom
Created February 27, 2015 00:57
gradient for buttons - dark on top+ slightly lighter to the bottom
background-image: -webkit-gradient(
linear,
right bottom,
right top,
color-stop(0.08, rgb(122, 59, 161)),
color-stop(1, rgb(21, 4, 33))
);
background-image: -o-linear-gradient(top, rgb(122, 59, 161) 8%, rgb(21, 4, 33) 100%);
background-image: -moz-linear-gradient(top, rgb(122, 59, 161) 8%, rgb(21, 4, 33) 100%);
background-image: -webkit-linear-gradient(top, rgb(122, 59, 161) 8%, rgb(21, 4, 33) 100%);
background-image: -webkit-gradient(
linear,
right top,
right bottom,
color-stop(0, rgb(250, 239, 252)),
color-stop(0.52, rgb(221, 195, 227)),
color-stop(0.87, rgb(29, 3, 36))
);
background-image: -o-linear-gradient(bottom, rgb(250, 239, 252) 0%, rgb(221, 195, 227) 52%, rgb(29, 3, 36) 87%);
background-image: -moz-linear-gradient(bottom, rgb(250, 239, 252) 0%, rgb(221, 195, 227) 52%, rgb(29, 3, 36) 87%);
@cfinster
cfinster / my.css
Created February 26, 2015 20:23 — forked from anonymous/my.css
background: linear-gradient(226deg, #e37ada, #561751);
background-size: 400% 400%;
-webkit-animation: AnimationName 15s ease infinite;
-moz-animation: AnimationName 15s ease infinite;
-o-animation: AnimationName 15s ease infinite;
animation: AnimationName 15s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 77%}
    50%{background-position:100% 24%}
    100%{background-position:0% 77%}
@cfinster
cfinster / my.css
Last active August 29, 2015 14:16 — forked from anonymous/my.css
background: linear-gradient(54deg, #63185d, #ae4ea6, #7d2275);
background-size: 600% 600%;
-webkit-animation: AnimationName 9s ease infinite;
-moz-animation: AnimationName 9s ease infinite;
-o-animation: AnimationName 9s ease infinite;
animation: AnimationName 9s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:53% 0%}
    50%{background-position:48% 100%}
    100%{background-position:53% 0%}