hivedav-website

Website for HiveDAV
git clone https://git.in0rdr.ch/hivedav-website.git
Log | Files | Refs | Pull requests | README | LICENSE

_radial-positions-parser.scss (485B)


      1 @function _radial-positions-parser($gradient-pos) {
      2   $shape-size: nth($gradient-pos, 1);
      3   $pos:        nth($gradient-pos, 2);
      4   $shape-size-spec: _shape-size-stripper($shape-size);
      5 
      6   $pre-spec: unquote(if($pos, "#{$pos}, ", null))
      7              unquote(if($shape-size, "#{$shape-size},", null));
      8   $pos-spec: if($pos, "at #{$pos}", null);
      9 
     10   $spec: "#{$shape-size-spec} #{$pos-spec}";
     11 
     12   // Add comma
     13   @if ($spec != "  ") {
     14     $spec: "#{$spec},";
     15   }
     16 
     17   @return $pre-spec $spec;
     18 }