C# Class MoreInternals.Compiler.Tasks.Minify

This task re-writes values so that they take as little space as possible. This includes coercing units (if the inch version is smaller than the centimeter it will be used, and so on) and choosing ideal color versions (hex triples when possible, dropping alpha when not needed, and so on).
Show file Open project: kevin-montrose/More

Public Methods

Method Description
Task ( List blocks ) : List

Private Methods

Method Description
ForQuery ( MediaQuery query ) : MediaQuery
MinifyColor ( ColorValue value ) : ColorValue
MinifyLinearGradient ( LinearGradientValue val ) : LinearGradientValue
MinifyNumberValue ( NumberValue value ) : NumberValue
MinifyNumberWithUnit ( NumberWithUnitValue value ) : NumberWithUnitValue
MinifyProperty ( Property rule ) : Property
MinifyPropertyList ( IEnumerable p ) : IEnumerable
MinifyRadialGradient ( RadialGradientValue val ) : RadialGradientValue
MinifyValue ( Value value ) : Value
TryMinifyNumberWithUnit ( NumberWithUnitValue value, decimal>.ReadOnlyDictionary possibleConversions, NumberWithUnitValue &smallest ) : void
ValueToString ( Value value ) : string

Method Details

Task() public static method

public static Task ( List blocks ) : List
blocks List
return List