Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added a mixin for controlling the perspective on 3D transformations #124

Closed
wants to merge 1 commit into from

2 participants

@maxbucknell

As per The MDN page on perspective, I added a mixin and amended the include file.

@plapier plapier commented on the diff
app/assets/stylesheets/_bourbon.scss
@@ -25,6 +25,7 @@
@import "css3/inline-block";
@import "css3/linear-gradient";
@import "css3/prefixer";
+@import "css3/prefixer";
@plapier
plapier added a note

Remove this. No need to import it twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@plapier

Thanks for the pull request. We should also create a mixin for the perspective-origin property: https://developer.mozilla.org/en-US/docs/CSS/perspective-origin

@plapier plapier was assigned
@plapier

This has been integrated fully into Bourbon v3.0. Thanks @unaffectedscorn for the pull request!

https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_perspective.scss

@plapier plapier closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2012
This page is out of date. Refresh to see the latest.
View
1  app/assets/stylesheets/_bourbon.scss
@@ -25,6 +25,7 @@
@import "css3/inline-block";
@import "css3/linear-gradient";
@import "css3/prefixer";
+@import "css3/prefixer";
@plapier
plapier added a note

Remove this. No need to import it twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@import "css3/radial-gradient";
@import "css3/transform";
@import "css3/transition";
View
4 app/assets/stylesheets/css3/_perspective.scss
@@ -0,0 +1,4 @@
+@mixin perspective($depth: none) {
+ // none | <length>
+ @include prefixer(perspective, $depth, $o: true;);
+}
Something went wrong with that request. Please try again.