Better organization

This commit is contained in:
Leandro D'Onofrio 2014-01-02 20:54:50 -03:00
parent d8cdd50bd8
commit db0e5d38b0
51 changed files with 1953 additions and 1995 deletions

4
.gitignore vendored
View File

@ -14,4 +14,6 @@ results
npm-debug.log
node_modules
.sass-cache
.sass-cache
.DS_Store

View File

@ -92,5 +92,62 @@ h2 {
font-weight: 900;
}
#forkongithub a {
background: #000;
color: #fff;
text-decoration: none;
font-family: arial, sans-serif;
text-align: center;
font-weight: bold;
padding: 5px 40px;
font-size: 1rem;
line-height: 2rem;
position: relative;
-webkit-transition: 0.5s;
transition: 0.5s;
}
#forkongithub a{background:#000;color:#fff;text-decoration:none;font-family:arial, sans-serif;text-align:center;font-weight:bold;padding:5px 40px;font-size:1rem;line-height:2rem;position:relative;transition:0.5s;}#forkongithub a:hover{background:#060;color:#fff;}#forkongithub a::before,#forkongithub a::after{content:"";width:100%;display:block;position:absolute;top:1px;left:0;height:1px;background:#fff;}#forkongithub a::after{bottom:1px;top:auto;}@media screen and (min-width:800px){#forkongithub{position:absolute;display:block;top:0;right:0;width:200px;overflow:hidden;height:200px;}#forkongithub a{width:200px;position:absolute;top:60px;right:-60px;transform:rotate(45deg);-webkit-transform:rotate(45deg);box-shadow:4px 4px 10px rgba(0,0,0,0.8);}}
#forkongithub a:hover {
background: #060;
color: #fff;
}
#forkongithub a::before,
#forkongithub a::after {
content: "";
width: 100%;
display: block;
position: absolute;
top: 1px;
left: 0;
height: 1px;
background: #fff;
}
#forkongithub a::after {
bottom: 1px;
top: auto;
}
@media screen and (min-width:800px) {
#forkongithub {
position: absolute;
display: block;
top: 0;
right: 0;
width: 200px;
overflow: hidden;
height: 200px;
}
#forkongithub a {
width: 200px;
position: absolute;
top: 60px;
right: -60px;
-ms-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
}
}

2
css/hover-min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,20 @@
/* Border Fade */
@mixin border-fade {
display: inline-block;
$borderWidth: 4px;
transition-duration: $defaultDuration;
transition-property: box-shadow;
@include hideTapHighlightColor();
@include hardwareAccel();
box-shadow:
inset 0 0 0 $borderWidth $primaryColour,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
&:hover {
box-shadow:
inset 0 0 0 $borderWidth $secondaryColour,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
}
}

View File

@ -0,0 +1,17 @@
/* Box Shadow Inset */
@mixin box-shadow-inset {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: box-shadow;
box-shadow: inset 0 0 0 $shadowColour,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
@include hideTapHighlightColor();
@include hardwareAccel();
&:hover {
box-shadow: inset 2px 2px 2px $shadowColour,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
}
}

View File

@ -0,0 +1,12 @@
/* Box Shadow Outset */
@mixin box-shadow-outset {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: box-shadow;
@extend %hacks;
&:hover {
box-shadow: 2px 2px 2px $shadowColour;
}
}

View File

@ -0,0 +1,25 @@
/* Bubble Bottom */
@mixin bubble-bottom {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
border-style: solid;
transition-duration: $defaultDuration;
transition-property: bottom;
left: calc(50% - #{$tipWidth});
bottom: 0;
border-width: $tipHeight $tipWidth 0 $tipWidth;
border-color: $tipColour transparent transparent transparent;
}
&:hover:before {
bottom: -($tipHeight);
}
}

View File

@ -0,0 +1,31 @@
/* Bubble Float Bottom */
@mixin bubble-float-bottom {
display: inline-block;
position: relative;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
left: calc(50% - #{$tipWidth});
bottom: 0;
border-style: solid;
border-width: $tipHeight $tipWidth 0 $tipWidth;
border-color: $tipColour transparent transparent transparent;
transition-duration: $defaultDuration;
transition-property: bottom;
}
&:hover {
transform: translateY(-5px) translateZ(0);
}
&:hover:before {
bottom: -($tipHeight);
}
}

View File

@ -0,0 +1,31 @@
/* Bubble Float Left */
@mixin bubble-float-left {
display: inline-block;
position: relative;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
top: calc(50% - #{$tipHeight});
left: 0;
border-style: solid;
border-width: $tipHeight $tipWidth $tipHeight 0;
border-color: transparent $tipColour transparent transparent;
transition-duration: $defaultDuration;
transition-property: left;
}
&:hover {
transform: translateX(5px);
}
&:hover:before {
left: -($tipWidth);
}
}

View File

@ -0,0 +1,31 @@
/* Bubble Float Right */
@mixin bubble-float-right {
display: inline-block;
position: relative;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
top: calc(50% - #{$tipHeight});
right: 0;
content: '';
border-style: solid;
border-width: $tipHeight 0 $tipHeight $tipWidth;
border-color: transparent transparent transparent $tipColour;
transition-duration: $defaultDuration;
transition-property: right;
}
&:hover {
transform: translateX(-5px);
}
&:hover:before {
right: -($tipWidth);
}
}

View File

@ -0,0 +1,32 @@
/* Bubble Float Top */
@mixin bubble-float-top {
display: inline-block;
position: relative;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
left: calc(50% - #{$tipWidth});
top: 0;
border-style: solid;
border-width: 0 $tipWidth $tipHeight $tipWidth;
border-color: transparent transparent $tipColour transparent;
transition-duration: $defaultDuration;
transition-property: top;
}
&:hover {
transform: translateY(5px) translateZ(0);
}
&:hover:before {
top: -($tipHeight);
}
}

View File

@ -0,0 +1,25 @@
/* Bubble Left */
@mixin bubble-left {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
border-style: solid;
transition-duration: $defaultDuration;
transition-property: left;
top: calc(50% - #{$tipHeight});
left: 0;
border-width: $tipHeight $tipWidth $tipHeight 0;
border-color: transparent $tipColour transparent transparent;
}
&:hover:before {
left: -($tipWidth);
}
}

View File

@ -0,0 +1,25 @@
/* Bubble Right */
@mixin bubble-right {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
border-style: solid;
transition-duration: $defaultDuration;
transition-property: right;
top: calc(50% - #{$tipHeight});
right: 0;
border-width: $tipHeight 0 $tipHeight $tipWidth;
border-color: transparent transparent transparent $tipColour ;
}
&:hover:before {
right: -($tipWidth);
}
}

View File

@ -0,0 +1,24 @@
/* Bubble Top */
@mixin bubble-top {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
border-style: solid;
transition-duration: $defaultDuration;
left: calc(50% - #{$tipWidth});
border-width: 0 $tipWidth $tipHeight $tipWidth;
border-color: transparent transparent $tipColour transparent;
transition-property: top;
}
&:hover:before {
top: -($tipHeight);
}
}

9
scss/hover/_button.scss Normal file
View File

@ -0,0 +1,9 @@
/* Default styles for the demo buttons */
@mixin button {
margin: .4em;
padding: 1em;
cursor: pointer;
background: $primaryColour;
text-decoration: none;
color: $secondaryColour;
}

View File

@ -0,0 +1,32 @@
/* Curl Bottom Left */
@mixin curl-bottom-left {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
bottom: 0;
left: 0;
background: $revealAreaColour; /* IE9 */
background: linear-gradient(
45deg,
$revealAreaColour 45%,
$curlLineColour 50%,
$curlTransitionColour 56%,
$curlLastColour 80%
);
box-shadow: 1px -1px 1px rgba(0, 0, 0, .4);
transition-duration: $defaultDuration;
transition-property: width height;
}
&:hover:before {
width: $curlWidth;
height: $curlHeight;
}
}

View File

@ -0,0 +1,32 @@
/* Curl Bottom Right */
@mixin curl-bottom-right {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
bottom: 0;
right: 0;
background: $revealAreaColour; /* IE9 */
background: linear-gradient(
315deg,
$revealAreaColour 45%,
$curlLineColour 50%,
$curlTransitionColour 56%,
$curlLastColour 80%
);
box-shadow: -1px -1px 1px rgba(0, 0, 0, .4);
transition-duration: $defaultDuration;
transition-property: width height;
}
&:hover:before {
width: $curlWidth;
height: $curlHeight;
}
}

View File

@ -0,0 +1,35 @@
/* Curl Top Left */
@mixin curl-top-left {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
top: 0;
left: 0;
background: $revealAreaColour; /* IE9 */
background: linear-gradient(
135deg,
$revealAreaColour 45%,
$curlLineColour 50%,
$curlTransitionColour 56%,
$curlLastColour 80%
);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#000000');/*For IE7-8-9*/
z-index: 1000;
box-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
transition-duration: $defaultDuration;
transition-property: width height;
}
&:hover:before {
width: $curlWidth;
height: $curlHeight;
}
}

View File

@ -0,0 +1,32 @@
/* Curl Top Right */
@mixin curl-top-right {
display: inline-block;
position: relative;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
top: 0;
right: 0;
background: $revealAreaColour; /* IE9 */
background: linear-gradient(
225deg,
$revealAreaColour 45%,
$curlLineColour 50%,
$curlTransitionColour 56%,
$curlLastColour 80%
);
box-shadow: -1px 1px 1px rgba(0, 0, 0, .4);
transition-duration: $defaultDuration;
transition-property: width height;
}
&:hover:before {
width: $curlWidth;
height: $curlHeight;
}
}

View File

@ -0,0 +1,33 @@
/* Float Shadow */
@mixin float-shadow {
display: inline-block;
position: relative;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
top: 100%;
left: 5%;
height: 10px;
width: 90%;
opacity: 0;
background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 80%); /* W3C */
transition-duration: $defaultDuration;
transition-property: transform opacity;
}
&:hover {
transform: translateY(-5px); /* move the element up by 5px */
&:before {
opacity: 1;
transform: translateY(5px); /* move the element down by 5px (it will stay in place because it's attached to the element that also moves up 5px) */
}
}
}

12
scss/hover/_float.scss Normal file
View File

@ -0,0 +1,12 @@
/* Float */
@mixin float {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: translateY(-5px);
}
}

12
scss/hover/_glow.scss Normal file
View File

@ -0,0 +1,12 @@
/* Glow */
@mixin glow {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: box-shadow;
@extend %hacks;
&:hover {
box-shadow: 0 0 8px $shadowColour;
}
}

View File

@ -0,0 +1,12 @@
/* Grow Rotate */
@mixin grow-rotate {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: scale(1.1) rotate(4deg);
}
}

12
scss/hover/_grow.scss Normal file
View File

@ -0,0 +1,12 @@
/* Grow */
@mixin grow {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: scale(1.1);
}
}

22
scss/hover/_hacks.scss Normal file
View File

@ -0,0 +1,22 @@
// As is often the case, some devices/browsers need additional code to get CSS to work
// in the most desired way. These mixins are used to quickly drop in hacks for each element
@mixin hideTapHighlightColor() {
//Prevent highlight colour when element is tapped
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
@mixin hardwareAccel() {
//Improve performance on mobile/tablet devices
transform: translateZ(0);
}
@mixin improveAntiAlias() {
//Improve aliasing on mobile/tablet devices
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
%hacks{
@include hideTapHighlightColor();
@include hardwareAccel();
@include improveAntiAlias();
}

28
scss/hover/_hang.scss Normal file
View File

@ -0,0 +1,28 @@
/* Hang */
@keyframes hang {
50% {
transform: translateY(3px);
}
100% {
transform: translateY(6px);
}
}
@mixin hang {
display: inline-block;
transition-duration: .5s;
transition-property: transform;
@extend %hacks;
&:hover {
transform: translateY(6px);
animation-name: hang;
animation-duration: 1.5s;
animation-delay: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
}

17
scss/hover/_hollow.scss Normal file
View File

@ -0,0 +1,17 @@
/* Hollow */
@mixin hollow {
display: inline-block;
$borderWidth: 4px;
transition-duration: $defaultDuration;
transition-property: background;
transform: translateZ(0); /* Hack to improve performance on mobile/tablet devices */
box-shadow:
inset 0 0 0 $borderWidth $primaryColour,
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
&:hover {
background: none;
}
}

View File

@ -0,0 +1,73 @@
/* Hover Shadow */
@keyframes hover {
50% {
transform: translateY(-3px);
}
100% {
transform: translateY(-6px);
}
}
@keyframes hover-shadow {
0% {
transform: translateY(6px);
opacity: .4;
}
50% {
transform: translateY(3px);
opacity: 1;
}
100% {
transform: translateY(6px);
opacity: .4;
}
}
@mixin hover-shadow {
display: inline-block;
position: relative;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:before {
pointer-events: none;
position: absolute;
z-index: -1;
content: '';
top: 100%;
left: 5%;
height: 10px;
width: 90%;
opacity: 0;
background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 80%); /* W3C */
transition-duration: $defaultDuration;
transition-property: transform opacity;
}
&:hover {
transform: translateY(-6px);
animation-name: hover;
animation-duration: 1.5s;
animation-delay: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
&:before {
opacity: .4;
transform: translateY(6px);
animation-name: hover-shadow;
animation-duration: 1.5s;
animation-delay: .3s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
}
}

28
scss/hover/_hover.scss Normal file
View File

@ -0,0 +1,28 @@
/* Hover */
@keyframes hover {
50% {
transform: translateY(-3px);
}
100% {
transform: translateY(-6px);
}
}
@mixin hover {
display: inline-block;
transition-duration: .5s;
transition-property: transform;
@extend %hacks;
&:hover {
transform: translateY(-6px);
animation-name: hover;
animation-duration: 1.5s;
animation-delay: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
}

View File

@ -0,0 +1,31 @@
/* Outline Inward */
@mixin outline-inward {
display: inline-block;
$outerBorderWidth: 4px;
$innerBorderWidth: 4px;
position: relative;
@extend %hacks;
&:before {
content: '';
position: absolute;
border: $primaryColour solid $outerBorderWidth;
top: -($outerBorderWidth + $innerBorderWidth) * 2;
right: -($outerBorderWidth + $innerBorderWidth) * 2;
bottom: -($outerBorderWidth + $innerBorderWidth) * 2;
left: -($outerBorderWidth + $innerBorderWidth) * 2;
opacity: 0;
transition-duration: .3s;
transition-property: top right bottom left;
}
&:hover:before {
top: -($outerBorderWidth + $innerBorderWidth);
right: -($outerBorderWidth + $innerBorderWidth);
bottom: -($outerBorderWidth + $innerBorderWidth);
left: -($outerBorderWidth + $innerBorderWidth);
opacity: 1;
}
}

View File

@ -0,0 +1,29 @@
/* Outline Outward */
@mixin outline-outward {
display: inline-block;
$outerBorderWidth: 4px;
$innerBorderWidth: 4px;
position: relative;
@extend %hacks;
&:before {
content: '';
position: absolute;
border: $primaryColour solid $outerBorderWidth;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition-duration: .3s;
transition-property: top right bottom left;
}
&:hover:before {
top: -($outerBorderWidth + $innerBorderWidth);
right: -($outerBorderWidth + $innerBorderWidth);
bottom: -($outerBorderWidth + $innerBorderWidth);
left: -($outerBorderWidth + $innerBorderWidth);
}
}

23
scss/hover/_pop.scss Normal file
View File

@ -0,0 +1,23 @@
/* Pop */
@keyframes pop {
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
@mixin pop {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: pop;
animation-duration: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: 1;
}
}

View File

@ -0,0 +1,20 @@
/* Pulse Grow */
@keyframes pulse-grow {
to {
transform: scale(1.1);
}
}
@mixin pulse-grow {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: pulse-grow;
animation-duration: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
}

View File

@ -0,0 +1,20 @@
/* Pulse Shrink */
@keyframes pulse-shrink {
to {
transform: scale(.9);
}
}
@mixin pulse-shrink {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: pulse-shrink;
animation-duration: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
}

23
scss/hover/_pulse.scss Normal file
View File

@ -0,0 +1,23 @@
/* Pulse */
@keyframes pulse {
25% {
transform: scale(1.1);
}
75% {
transform: scale(.9);
}
}
@mixin pulse {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: pulse;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
}

23
scss/hover/_push.scss Normal file
View File

@ -0,0 +1,23 @@
/* Push */
@keyframes push {
50% {
transform: scale(.8);
}
100% {
transform: scale(1);
}
}
@mixin push {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: push;
animation-duration: $defaultDuration;
animation-timing-function: linear;
animation-iteration-count: 1;
}
}

12
scss/hover/_rotate.scss Normal file
View File

@ -0,0 +1,12 @@
/* Rotate */
@mixin rotate {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: rotate(4deg);
}
}

View File

@ -0,0 +1,12 @@
/* Round Corners */
@mixin round-corners {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: border-radius;
@extend %hacks;
&:hover {
border-radius: 1em;
}
}

View File

@ -0,0 +1,37 @@
/* Shadow Radial */
@mixin shadow-radial {
display: inline-block;
position: relative;
@extend %hacks;
&:before,
&:after {
pointer-events: none;
position: absolute;
content: '';
left: 0;
width: 100%;
box-sizing: border-box;
background-repeat: no-repeat;
height: 5px;
opacity: 0;
transition-duration: $defaultDuration;
transition-property: opacity;
}
&:before {
bottom: 100%;
background: radial-gradient(ellipse at 50% 150%, $shadowColour 0%, rgba(0, 0, 0, 0) 80%);
}
&:after {
top: 100%;
background: radial-gradient(ellipse at 50% -50%, $shadowColour 0%, rgba(0, 0, 0, 0) 80%);
}
&:hover:before,
&:hover:after {
opacity: 1;
}
}

12
scss/hover/_shrink.scss Normal file
View File

@ -0,0 +1,12 @@
/* Shrink */
@mixin shrink {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: scale(.9);
}
}

12
scss/hover/_sink.scss Normal file
View File

@ -0,0 +1,12 @@
/* Sink */
@mixin sink {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: translateY(5px);
}
}

View File

@ -0,0 +1,13 @@
/* Skew Forward */
@mixin skew-forward {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
transform-origin: 0 100%;
@extend %hacks;
&:hover {
transform: skew(-10deg);
}
}

12
scss/hover/_skew.scss Normal file
View File

@ -0,0 +1,12 @@
/* Skew */
@mixin skew {
display: inline-block;
transition-duration: $defaultDuration;
transition-property: transform;
@extend %hacks;
&:hover {
transform: skew(-10deg);
}
}

27
scss/hover/_trim.scss Normal file
View File

@ -0,0 +1,27 @@
/* Trim */
@mixin trim {
display: inline-block;
$outerBorderWidth: 4px;
$innerBorderWidth: 4px;
position: relative;
@extend %hacks;
&:before {
content: '';
position: absolute;
border: white solid $innerBorderWidth;
top: $outerBorderWidth;
left: $outerBorderWidth;
right: $outerBorderWidth;
bottom: $outerBorderWidth;
opacity: 0;
transition-duration: $defaultDuration;
transition-property: opacity;
}
&:hover:before {
opacity: 1;
}
}

View File

@ -0,0 +1,20 @@
// Default options
$defaultDuration: .3s;
$primaryColour: #ececec;
$secondaryColour: #666;
$shadowColour: rgba(0, 0, 0, .6);
//Speech bubbles options
$tipWidth: 10px; //the width of the speech bubble tip
$tipHeight: 10px; //the height of the speech bubble tip
$tipColour: $primaryColour;
// Curl dimensions
$curlWidth: 25px;
$curlHeight: 25px;
// Curl colours
$revealAreaColour: white; // reveal area behind the curl
$curlLineColour: #aaa; // crease line
$curlTransitionColour: #ccc; // colour transitioning from crease line to final colour
$curlLastColour: white; // final colour of the back of the curl

View File

@ -0,0 +1,40 @@
/* Wobble Bottom */
@keyframes wobble-bottom {
16.65% {
transform: skew(-12deg);
}
33.3% {
transform: skew(10deg);
}
49.95% {
transform: skew(-6deg);
}
66.6% {
transform: skew(4deg);
}
83.25% {
transform: skew(-2deg);
}
100% {
transform: skew(0);
}
}
@mixin wobble-bottom {
display: inline-block;
transform-origin: 100% 0;
@extend %hacks;
&:hover {
animation-name: wobble-bottom;
animation-duration: 1s;
animation-timing-function: ease-in-out;
animation-iteration-count: 1;
}
}

View File

@ -0,0 +1,39 @@
/* Wobble Horizontal */
@keyframes wobble-horizontal {
16.65% {
transform: translateX(8px);
}
33.3% {
transform: translateX(-6px);
}
49.95% {
transform: translateX(4px);
}
66.6% {
transform: translateX(-2px);
}
83.25% {
transform: translateX(1px);
}
100% {
transform: translateX(0);
}
}
@mixin wobble-horizontal {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: wobble-horizontal;
animation-duration: 1s;
animation-timing-function: ease-in-out;
animation-iteration-count: 1;
}
}

View File

@ -0,0 +1,40 @@
/* Wobble Top */
@keyframes wobble-top {
16.65% {
transform: skew(-12deg);
}
33.3% {
transform: skew(10deg);
}
49.95% {
transform: skew(-6deg);
}
66.6% {
transform: skew(4deg);
}
83.25% {
transform: skew(-2deg);
}
100% {
transform: skew(0);
}
}
@mixin wobble-top {
display: inline-block;
transform-origin: 0 100%;
@extend %hacks;
&:hover {
animation-name: wobble-top;
animation-duration: 1s;
animation-timing-function: ease-in-out;
animation-iteration-count: 1;
}
}

View File

@ -0,0 +1,39 @@
/* Wobble Vertical */
@keyframes wobble-vertical {
16.65% {
transform: translateY(8px);
}
33.3% {
transform: translateY(-6px);
}
49.95% {
transform: translateY(4px);
}
66.6% {
transform: translateY(-2px);
}
83.25% {
transform: translateY(1px);
}
100% {
transform: translateY(0);
}
}
@mixin wobble-vertical {
display: inline-block;
@extend %hacks;
&:hover {
animation-name: wobble-vertical;
animation-duration: 1s;
animation-timing-function: ease-in-out;
animation-iteration-count: 1;
}
}