summaryrefslogtreecommitdiff
path: root/source/bower_components/jquery/src/css/var
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 12:25:47 +0200
committerLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 12:25:47 +0200
commit7cc7910df63d19e7ebc67bb1156437f0559712d7 (patch)
tree66f972354559fe05b7a97efccd08fc363c91cf4d /source/bower_components/jquery/src/css/var
parent450a01136a510adc4c96ff12e05e00a2ce550c8f (diff)
add foundation via bower
Diffstat (limited to 'source/bower_components/jquery/src/css/var')
-rw-r--r--source/bower_components/jquery/src/css/var/cssExpand.js3
-rw-r--r--source/bower_components/jquery/src/css/var/getStyles.js5
-rw-r--r--source/bower_components/jquery/src/css/var/isHidden.js13
-rw-r--r--source/bower_components/jquery/src/css/var/rmargin.js3
-rw-r--r--source/bower_components/jquery/src/css/var/rnumnonpx.js5
5 files changed, 29 insertions, 0 deletions
diff --git a/source/bower_components/jquery/src/css/var/cssExpand.js b/source/bower_components/jquery/src/css/var/cssExpand.js
new file mode 100644
index 0000000..91e90a8
--- /dev/null
+++ b/source/bower_components/jquery/src/css/var/cssExpand.js
@@ -0,0 +1,3 @@
+define(function() {
+ return [ "Top", "Right", "Bottom", "Left" ];
+});
diff --git a/source/bower_components/jquery/src/css/var/getStyles.js b/source/bower_components/jquery/src/css/var/getStyles.js
new file mode 100644
index 0000000..26cc0a2
--- /dev/null
+++ b/source/bower_components/jquery/src/css/var/getStyles.js
@@ -0,0 +1,5 @@
+define(function() {
+ return function( elem ) {
+ return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
+ };
+});
diff --git a/source/bower_components/jquery/src/css/var/isHidden.js b/source/bower_components/jquery/src/css/var/isHidden.js
new file mode 100644
index 0000000..15ab81a
--- /dev/null
+++ b/source/bower_components/jquery/src/css/var/isHidden.js
@@ -0,0 +1,13 @@
+define([
+ "../../core",
+ "../../selector"
+ // css is assumed
+], function( jQuery ) {
+
+ return function( elem, el ) {
+ // isHidden might be called from jQuery#filter function;
+ // in that case, element will be second argument
+ elem = el || elem;
+ return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
+ };
+});
diff --git a/source/bower_components/jquery/src/css/var/rmargin.js b/source/bower_components/jquery/src/css/var/rmargin.js
new file mode 100644
index 0000000..da0438d
--- /dev/null
+++ b/source/bower_components/jquery/src/css/var/rmargin.js
@@ -0,0 +1,3 @@
+define(function() {
+ return (/^margin/);
+});
diff --git a/source/bower_components/jquery/src/css/var/rnumnonpx.js b/source/bower_components/jquery/src/css/var/rnumnonpx.js
new file mode 100644
index 0000000..c93be28
--- /dev/null
+++ b/source/bower_components/jquery/src/css/var/rnumnonpx.js
@@ -0,0 +1,5 @@
+define([
+ "../../var/pnum"
+], function( pnum ) {
+ return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
+});