Skip to content

Commit

Permalink
Enabled all Sass 3.2 features
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshort committed May 11, 2012
1 parent cd309cc commit 1cb8dcb
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/stitch/version.rb
@@ -1,3 +1,3 @@
module Stitch module Stitch
VERSION = "0.2.0.alpha" VERSION = "0.1.5"
end end
3 changes: 1 addition & 2 deletions stylesheets/_stitch.scss
@@ -1,2 +1 @@
@import 'stitch/patterns'; @import 'stitch/patterns';
@import 'stitch/reset';
4 changes: 3 additions & 1 deletion stylesheets/stitch/_patterns.scss
@@ -1,7 +1,6 @@
@import 'utilities'; @import 'utilities';
@import 'patterns/accessibility'; @import 'patterns/accessibility';
@import 'patterns/animation'; @import 'patterns/animation';
//@import 'patterns/css3';
@import 'patterns/color'; @import 'patterns/color';
@import 'patterns/forms'; @import 'patterns/forms';
@import 'patterns/images'; @import 'patterns/images';
Expand All @@ -11,3 +10,6 @@
@import 'patterns/print'; @import 'patterns/print';
@import 'patterns/text'; @import 'patterns/text';
@import 'patterns/responsive'; @import 'patterns/responsive';

// Disabled by default. Need to opt in to use them
// @import 'patterns/vendor-prefixes';
2 changes: 1 addition & 1 deletion stylesheets/stitch/patterns/_animation.scss
@@ -1,3 +1,3 @@
@import 'animation/hardware-acceleration'; @import 'animation/hardware-acceleration';
@import 'animation/timing-functions'; @import 'animation/timing-functions';
//@import 'animation/keyframes'; @import 'animation/keyframes';
2 changes: 1 addition & 1 deletion stylesheets/stitch/patterns/_legacy.scss
@@ -1,3 +1,3 @@
@import 'legacy/has-layout'; @import 'legacy/has-layout';
@import 'legacy/inline-block'; @import 'legacy/inline-block';
//@import 'legacy/hacks'; @import 'legacy/hacks';
2 changes: 1 addition & 1 deletion stylesheets/stitch/patterns/_text.scss
Expand Up @@ -3,4 +3,4 @@
@import 'text/hyphens'; @import 'text/hyphens';
@import 'text/rem'; @import 'text/rem';
@import 'text/justify'; @import 'text/justify';
//@import 'text/selection'; @import 'text/selection';
File renamed without changes.
6 changes: 3 additions & 3 deletions stylesheets/stitch/patterns/images/_image-replace.scss
@@ -1,17 +1,17 @@
// //
// Removes any text from an element and replaces it with an image // Removes any text from an element and replaces it with an image
// //
.__image-replace { %stitch-image-replace {
display : block; display : block;
text-indent : -9999em; text-indent : -9999em;
overflow : hidden; overflow : hidden;
background-repeat : no-repeat; background-repeat : no-repeat;
text-align : left; text-align : left;
direction : ltr; direction : ltr;
} }


@mixin image-replace($img) { @mixin image-replace($img) {
@extend .__image-replace; @extend %stitch-image-replace;
height:image-height($img); height:image-height($img);
width:image-width($img); width:image-width($img);
background-image:image-url($img); background-image:image-url($img);
Expand Down
4 changes: 2 additions & 2 deletions stylesheets/stitch/patterns/layout/_clear-floats.scss
Expand Up @@ -4,7 +4,7 @@
// Normally the parent will have no height. // Normally the parent will have no height.
// @see http://nicolasgallagher.com/micro-clearfix-hack/ // @see http://nicolasgallagher.com/micro-clearfix-hack/
// //
.__clearfix { .%stitch-clearfix {
&:before, &:before,
&:after { &:after {
content:""; content:"";
Expand All @@ -17,5 +17,5 @@
} }


@mixin clear-floats { @mixin clear-floats {
@extend .__clearfix; @extend %stitch-clearfix;
} }
4 changes: 2 additions & 2 deletions stylesheets/stitch/patterns/legacy/_hacks.scss
@@ -1,7 +1,7 @@
@mixin ie6-hack { @mixin ie6-hack {
* html { @content } * html & { @content }
} }


@mixin ie7-hack { @mixin ie7-hack {
*+html { @content } *+html & { @content }
} }
4 changes: 2 additions & 2 deletions stylesheets/stitch/patterns/legacy/_inline-block.scss
Expand Up @@ -2,7 +2,7 @@
// Cross-browser inline-block. // Cross-browser inline-block.
// @see http://www.quirksmode.org/css/display.html // @see http://www.quirksmode.org/css/display.html
// //
.__inline-block { %stitch-inline-block {
display:inline-block; display:inline-block;


// IE7 fix // IE7 fix
Expand All @@ -11,5 +11,5 @@
} }


@mixin inline-block { @mixin inline-block {
@extend .__inline-block; @extend %stitch-inline-block;
} }
Binary file not shown.

0 comments on commit 1cb8dcb

Please sign in to comment.