Skip to content

1.3.0

Compare
Choose a tag to compare
@black7375 black7375 released this 12 Aug 00:04
· 125 commits to master since this release
  • Supported List Type
// Before - Support only single argment.
body {
  @include font-size(16px);             // Ok
  @include font-size(16px !important);  // No

  @include margin(10px);                // OK
  @include margin(10px 50px 20px 5px);  // No
}

// After - Support list argment.
body {
  @include font-size(16px);             // Ok
  @include font-size(16px !important);  // Ok

  @include margin(10px);                // OK
  @include margin(10px 50px 20px 5px);  // Ok
}
  • Include default values in results.
    Responding to small devices and accessibility.
// input
body {
  @include font-size(16px !important);
}

// Add default values
body {
  font-size: 1em !important;
}
  • Option System - Wiki:Options
    • Global: Setting it as a variable changes the default value of the whole.
    • Scoped: It is provided as an argument(map type) to the function, and when used, applies only to the current value.
  • Options
    • unit: Unit of result (each or Units)
    • max: Limit max size (null or Length)
    • limit: How to limit it. (size or break)