[ Launch: An inlet to Tributary ] 8450869 by erinautomatic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rainbow { | |
color: rgb(206,106,255); /* Old browsers */ | |
-moz-mask-image: -moz-linear-gradient(top, rgb(206,106,255) 0%, rgb(201,97,252) 0%, rgb(95,255,255) 34%, rgb(102,249,98) 65%, rgb(255,96,96) 100%, rgb(255,105,106) 100%); /* FF3.6+ */ | |
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(206,106,255)), color-stop(0%,rgb(201,97,252)), color-stop(34%,rgb(95,255,255)), color-stop(65%,rgb(102,249,98)), color-stop(100%,rgb(255,96,96)), color-stop(100%,rgb(255,105,106))); /* Chrome,Safari4+ */ | |
-webkit-mask-image: -webkit-linear-gradient(top, rgb(206,106,255) 0%,rgb(201,97,252) 0%,rgb(95,255,255) 34%,rgb(102,249,98) 65%,rgb(255,96,96) 100%,rgb(255,105,106) 100%); /* Chrome10+,Safari5.1+ */ | |
-o-mask-image: -o-linear-gradient(top, rgb(206,106,255) 0%,rgb(201,97,252) 0%,rgb(95,255,255) 34%,rgb(102,249,98) 65%,rgb(255,96,96) 100%,rgb(255,105,106) 100%); /* Opera 11.10+ */ | |
-ms-mask-image: -ms-linear-gradient(top, rgb(206,106,255) 0%,rgb(201,97,252) 0%,rgb(95,255,255) 34% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SCSS: | |
$image-path: "/assets/images"; | |
@mixin background-hidpi($image-name, $image-extension: "png", $top: top, $left: left, $repeat: repeat, $color: #fff) { | |
background: url("#{$image-path}/#{$image-name}.#{$image-extension}") $top $left $repeat $color; | |
@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) { | |
background: url("#{$image-path}/#{$image-name}_2x.#{$image-extension}") $top $left $repeat $color; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The mixin | |
@mixin css-arrow($box-edge : bottom, | |
$edge-side : center, | |
$arrow-size : 10px, | |
$edge-side-offset : 0, | |
$fill-color : black, | |
$border-color : none, | |
$border-style : border) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the mixin | |
@mixin font-size($size: 16) { | |
font-size: ($size) + px; | |
font-size: ($size / 16) + rem; | |
} | |
// example | |
h6 { @include font-size(11); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
window.homeSwipe = Swipe(document.getElementById('home-swipe')) | |
new homeSwipeButtons() | |
class homeSwipeButtons | |
constructor: -> | |
@bindElements() | |
bindElements: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// easeOutBounce //// | |
// looks like: http://easings.net/#easeOutBounce | |
@include keyframes(easeOutBounce) { | |
0% { @include transform(translateY(100px)); @include animation-timing-function(ease-in); } | |
37% { @include transform(translateY(0px)); @include animation-timing-function(ease-out); } | |
55% { @include transform(translateY(25px)); @include animation-timing-function(ease-in); } | |
73% { @include transform(translateY(0px)); @include animation-timing-function(ease-out); } | |
82% { @include transform(translateY(7px)); @include animation-timing-function(ease-in); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////// | |
// // | |
// INITIALIZE ················································ // | |
// // | |
// put all non-directly compiled, globally required CSS here // | |
// (variables, mixins, librabry includes like bourbon/neat, etc) // | |
// // | |
// add "@import 'init';" to the top of every scss partial // | |
// // | |
///////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Softly bounce up from bottom of object's height and fade in | |
$.Velocity.RegisterUI('transition.flyUpIn', { | |
defaultDuration: 600, | |
calls: [ | |
[{ translateY: [ 0, '100%' ]}, 1, { easing: [ .28,1.47,.48,.96 ] }] | |
] | |
}); | |
// fade text up and in for erin.io hero section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// These are my base breakpoints when working on projects that | |
// utilize Bourbon (http://bourbon.io/) & Neat (http://neat.bourbon.io/) | |
$desktop-wide : new-breakpoint(min-width 1370px); | |
$desktop : new-breakpoint(min-width 1001px); | |
$desktop-narrow : new-breakpoint(max-width 1000px); | |
$desktop-narrow-only : new-breakpoint(min-width 769px max-width 1000px); | |
$tablet : new-breakpoint(max-width 768px); | |
$tablet-only : new-breakpoint(min-width 640px max-width 768px); | |
$phone-wide : new-breakpoint(max-width 669px); |
OlderNewer