aboutsummaryrefslogtreecommitdiff
path: root/node_modules/stylus/lib/functions/math-prop.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/stylus/lib/functions/math-prop.js')
-rw-r--r--node_modules/stylus/lib/functions/math-prop.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/stylus/lib/functions/math-prop.js b/node_modules/stylus/lib/functions/math-prop.js
new file mode 100644
index 00000000..06c25e2a
--- /dev/null
+++ b/node_modules/stylus/lib/functions/math-prop.js
@@ -0,0 +1,13 @@
+var nodes = require('../nodes');
+
+/**
+ * Get Math `prop`.
+ *
+ * @param {String} prop
+ * @return {Unit}
+ * @api private
+ */
+
+module.exports = function math(prop){
+ return new nodes.Unit(Math[prop.string]);
+};