@use "sass:list";
@use "../../functions" as *;

// Outputs top

@mixin u-top($value...) {
  $important: null;
  @if has-important($value) {
    $value: remove($value, "!important");
    @if list.length($value) == 1 {
      $value: de-list($value);
    }
    $important: " !important";
  }
  top: get-uswds-value("top", $value...) #{$important};
}
