summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css/common.sass
diff options
context:
space:
mode:
authorDharmraj Jhala (OpenERP) <dizzy.zala@gmail.com>2014-02-25 11:02:04 +0530
committerDharmraj Jhala (OpenERP) <dizzy.zala@gmail.com>2014-02-25 11:02:04 +0530
commitc6917b9c074f3f2c19cac1dc3e05c8a3d2cadbed (patch)
tree6a17e259f27e029458207671d10fec50b5c425be /addons/website/static/src/css/common.sass
parentb2688a37f84a505d8e334f8b0325b4747d440170 (diff)
parent9eb2db4465cefa5dc331123c1b0a4df035545015 (diff)
[MERGE] with trunk-survey2-rim addons branch
bzr revid: dizzy.zala@gmail.com-20140225053204-mra08nfvumkxyixa
Diffstat (limited to 'addons/website/static/src/css/common.sass')
-rw-r--r--addons/website/static/src/css/common.sass44
1 files changed, 44 insertions, 0 deletions
diff --git a/addons/website/static/src/css/common.sass b/addons/website/static/src/css/common.sass
index 86e1f6655ef..4d5f0673e33 100644
--- a/addons/website/static/src/css/common.sass
+++ b/addons/website/static/src/css/common.sass
@@ -1,6 +1,7 @@
@import "compass/css3"
@import "compass/css3/user-interface"
@import "compass/css3/transition"
+@import "compass/support"
//smartphones, iPhone, portrait 480x320 phones
$smart_phone: 320px
@@ -23,3 +24,46 @@ $desktop: 1025px
@content
::selection
@content
+
+// Lifted from compass-animation
+// LICENSED UNDER THE MIT LICENSE (MIT)
+//
+// Copyright (c) 2012 Eric Meyer
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+@mixin set-experimental-support($moz: false, $webkit: false, $ms: false, $o: false, $khtml: false)
+ $experimental-support-for-mozilla: $moz
+ $experimental-support-for-webkit: $webkit
+ $experimental-support-for-microsoft: $ms
+ $experimental-support-for-opera: $o
+ $experimental-support-for-khtml: $khtml
+
+@mixin with-only-support-for($moz: false, $webkit: false, $ms: false, $o: false, $khtml: false)
+ // Capture the current state
+ $original-moz: $experimental-support-for-mozilla
+ $original-webkit: $experimental-support-for-webkit
+ $original-o: $experimental-support-for-opera
+ $original-ms: $experimental-support-for-microsoft
+ $original-khtml: $experimental-support-for-khtml
+
+ @include set-experimental-support($moz, $webkit, $ms, $o, $khtml)
+ @content
+ @include set-experimental-support($original-moz, $original-webkit, $original-ms, $original-o, $original-khtml)
+
+@mixin keyframes($name)
+ @-moz-keyframes #{$name}
+ +with-only-support-for($moz: true)
+ @content
+ @-webkit-keyframes #{$name}
+ +with-only-support-for($webkit: true)
+ @content
+ @-o-keyframes #{$name}
+ +with-only-support-for($o: true)
+ @content
+ @keyframes #{$name}
+ +with-only-support-for
+ @content