@import "mixins/tools.mixins";

// Immutable utility classes for spacing
$space-n: 0; // none
$space-s: rem(10); // small
$space-m: rem(20); // medium
$space-l: rem(30); // large
$space-x: rem(40); // extra-large

// format: .u-space-123
// 1 = [p]adding, [m]argin (padding excluded for now)
// 2 = [a]ll, [t]op, [r]ight, [b]ottom, [l]eft, [h]orizontal-axis, [v]ertical-axis
// 3 = [n]one, [s]mall, [m]edium, [l]arge, [e]xtra-large

// top
.u-space-mtn, .u-space-mvn, .u-space-man {
  margin-top: $space-n !important;
}
.u-space-mts, .u-space-mvs, .u-space-mas {
  margin-top: $space-s !important;
}
.u-space-mtm, .u-space-mvm, .u-space-mam {
  margin-top: $space-m !important;
}
.u-space-mtl, .u-space-mvl, .u-space-mal {
  margin-top: $space-l !important;
}
.u-space-mtx, .u-space-mvx, .u-space-max {
  margin-top: $space-x !important;
}

// right
.u-space-mrn, .u-space-mhn, .u-space-man {
  margin-right: $space-n !important;
}
.u-space-mrs, .u-space-mhs, .u-space-mas {
  margin-right: $space-s !important;
}
.u-space-mrm, .u-space-mhm, .u-space-mam {
  margin-right: $space-m !important;
}
.u-space-mrl, .u-space-mhl, .u-space-mal {
  margin-right: $space-l !important;
}
.u-space-mrx, .u-space-mhx, .u-space-max {
  margin-right: $space-x !important;
}

// bottom
.u-space-mbn, .u-space-mvn, .u-space-man {
  margin-bottom: $space-n !important;
}
.u-space-mbs, .u-space-mvs, .u-space-mas {
  margin-bottom: $space-s !important;
}
.u-space-mbm, .u-space-mvm, .u-space-mam {
  margin-bottom: $space-m !important;
}
.u-space-mbl, .u-space-mvl, .u-space-mal {
  margin-bottom: $space-l !important;
}
.u-space-mbx, .u-space-mvx, .u-space-max {
  margin-bottom: $space-x !important;
}

// left
.u-space-mln, .u-space-mhn, .u-space-man {
  margin-left: $space-n !important;
}
.u-space-mls, .u-space-mhs, .u-space-mas {
  margin-left: $space-s !important;
}
.u-space-mlm, .u-space-mhm, .u-space-mam {
  margin-left: $space-m !important;
}
.u-space-mll, .u-space-mhl, .u-space-mal {
  margin-left: $space-l !important;
}
.u-space-mlx, .u-space-mhx, .u-space-max {
  margin-left: $space-x !important;
}
