forked from anthonyshort/stitch-css
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anthony Short
committed
Apr 30, 2011
1 parent
d3383c9
commit 8e6a76f
Showing
9 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@include 'animation/hardware-acceleration'; |
6 changes: 6 additions & 0 deletions
6
stylesheets/stitch/patterns/animation/_hardware-acceleration.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
Forces the browser to render animation on the element with hardware acceleration | ||
*/ | ||
@mixin hardware-acceleration { | ||
-webkit-transform:translateZ(0); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* | ||
Helper to quickly create a button | ||
*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@include 'stitch/helpers/css3'; | ||
|
||
/* | ||
Shorthand for CSS columns | ||
@include text-columns(3,20px); | ||
*/ | ||
@mixin text-columns($count:2,$gap:20px,$width:auto,$rule:none) { | ||
@include column-count($count); | ||
@include column-gap($count); | ||
@include column-width($width); | ||
@include column-rule($rule); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@include 'compass/css3'; | ||
|
||
@mixin vertical-gradient($from,$to) { | ||
@include background( | ||
$to no-repeat linear-gradient(top,$from,$to) | ||
); | ||
} | ||
|
||
@mixin horizontal-gradient($from,$to) { | ||
@include background( | ||
$to no-repeat linear-gradient(left,$from,$to) | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
These provide basic font stacks with fallbacks. You can add your own fonts to the stack | ||
*/ | ||
|
||
@mixin sans-serif($prepend:false) { | ||
font-family: join($prepend,"Helvetica Neue", Helvetica, Arial, sans-serif); | ||
} | ||
|
||
@mixin serif($prepend:false) { | ||
font-family: join($prepend,"Georgia", Times New Roman, Times, sans-serif); | ||
} | ||
|
||
@mixin monospace($prepend:false) { | ||
font-family: join($prepend,"Monaco", Courier New, monospace); | ||
} |
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
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