Skip to content

Open source personal finance application

Add flex mixin

Ilya Komicheva7e8e681228d
diff --git a/src/stylus/variables/flex.styl b/src/stylus/variables/flex.styl
new file mode 100644
index 00000000..e36396c4
--- /dev/null
+++ b/src/stylus/variables/flex.styl
@@ -0,0 +1,10 @@
+display-flex($flow = null, $grow = null)
+ display flex
+
+ if $flow == 'column'
+ flex-flow column nowrap
+ else
+ flex-flow row nowrap
+
+ if $grow == 'grow'
+ flex-grow 1