Преглед изворни кода

New method on mixins .transition-delay()

soyjavi пре 14 година
родитељ
комит
3ccd8796e3
3 измењених фајлова са 18 додато и 3 уклоњено
  1. 0 0
      src/stylesheets/css/constants.css
  2. 0 1
      src/stylesheets/css/mixins.css
  3. 18 2
      src/stylesheets/mixins.less

+ 0 - 0
src/stylesheets/css/constants.css


+ 0 - 1
src/stylesheets/css/mixins.css

@@ -1 +0,0 @@
-

+ 18 - 2
src/stylesheets/mixins.less

@@ -44,6 +44,7 @@
 //
 // Animation:
 // @mixin transition
+// @mixin transition-delay
 // @mixin easing
 //
 //============================================================
@@ -630,7 +631,22 @@
             transition: @arguments;
 }
 
-
+//============================================================
+//
+// transition-delay
+//
+// @param delay               :  1s, 1000ms
+//
+// @see http://www.w3.org/TR/css3-transitions/
+//
+//============================================================
+.transition-delay(...) {
+    -webkit-transition-delay: @arguments;
+       -moz-transition-delay: @arguments;
+        -ms-transition-delay: @arguments;
+         -o-transition-delay: @arguments;
+            transition-delay: @arguments;
+}
 
 //============================================================
 //
@@ -714,4 +730,4 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
 // OR OTHER DEALINGS IN THE SOFTWARE.
 //
-//============================================================
+//============================================================