LT-250: Making toolbar responsive

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-07-22 11:03:01 +02:00
1 parent 350469d52f
commit 26687c579f
10 files changed
+85 -46

No files matched your search

+28 -25
View File
@@ -3,36 +3,39 @@ $spacer = 1rem
$spacer-x = $spacer
$spacer-y = $spacer
$spacerAxis = $spacer-x,
$spacer-y
generateSpacings($prefix, $spacerX, $spacerY)
$spacerAxis = $spacerX,
$spacerY
$spacings = 0 0,
1 1,
2 1.5,
3 3g
$spacings = 0 0,
1 1,
2 1.5,
3 3g
$properties = m margin,
p padding
$properties = m margin,
p padding
$sides = t top 1,
r right 0,
b bottom 1,
l left 0
$sides = t top 1,
r right 0,
b bottom 1,
l left 0
$axes = x left right 0,
y top bottom 1
$axes = x left right 0,
y top bottom 1
for $property in $properties
for $spacing in $spacings
.{$property[0]}-a-{$spacing[0]}
{$property[1]} $spacing[1]*$spacer !important
for $side in $sides
.{$property[0]}-{$side[0]}-{$spacing[0]}
{$property[1]}-{$side[1]} $spacing[1]*$spacerAxis[$side[2]] !important
for $axis in $axes
.{$property[0]}-{$axis[0]}-{$spacing[0]}
{$property[1]}-{$axis[1]} $spacing[1]*$spacerAxis[$axis[3]] !important
{$property[1]}-{$axis[2]} $spacing[1]*$spacerAxis[$axis[3]] !important
for $property in $properties
for $spacing in $spacings
.{$prefix}{$property[0]}-a-{$spacing[0]}
{$property[1]} $spacing[1]*$spacer !important
for $side in $sides
.{$prefix}{$property[0]}-{$side[0]}-{$spacing[0]}
{$property[1]}-{$side[1]} $spacing[1]*$spacerAxis[$side[2]] !important
for $axis in $axes
.{$prefix}{$property[0]}-{$axis[0]}-{$spacing[0]}
{$property[1]}-{$axis[1]} $spacing[1]*$spacerAxis[$axis[3]] !important
{$property[1]}-{$axis[2]} $spacing[1]*$spacerAxis[$axis[3]] !important
generateSpacings('', $spacer-x, $spacer-y)
.m-x-auto
margin-left: auto !important