/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { if (_sx == _sy) { return(FunctionNames.Build(FunctionNames.Scale, _sx.ToString(CultureInfo.InvariantCulture))); } return(FunctionNames.Build(FunctionNames.Scale, _sx.ToString(CultureInfo.InvariantCulture), _sy.ToString(CultureInfo.InvariantCulture))); }
public override String ToCss() { if (_separator != null) { if (_listStyle != null) { return(FunctionNames.Build(FunctionNames.Counters, _identifier, _separator, _listStyle)); } return(FunctionNames.Build(FunctionNames.Counters, _identifier, _separator)); } else if (_listStyle != null) { return(FunctionNames.Build(FunctionNames.Counter, _identifier, _listStyle)); } return(FunctionNames.Build(FunctionNames.Counter, _identifier)); }
public override String ToCss() { return(FunctionNames.Build(_repeating ? FunctionNames.RepeatingLinearGradient : FunctionNames.LinearGradient, _angle.ToCss(), String.Join(", ", _stops))); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Image, String.Join(", ", _urls.Select(m => m.ToCss())))); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.TranslateY, _y.ToCss())); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Scale3d, _sx.ToString(CultureInfo.InvariantCulture), _sy.ToString(CultureInfo.InvariantCulture), _sz.ToString(CultureInfo.InvariantCulture))); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Steps, Intervals.ToString(CultureInfo.InvariantCulture), IsStart ? "start" : "end")); }
/// <summary> /// Returns the CSS representation of the given URL. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.Url, String.Concat("'", _url, "'"))); }
/// <summary> /// Returns a CSS code representation of the stylesheet. /// </summary> /// <returns>A string that contains the code.</returns> public override String ToCss() { return(FunctionNames.Build(FunctionNames.Attr, _name)); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.Rotate3d, _x.ToString(CultureInfo.InvariantCulture), _y.ToString(CultureInfo.InvariantCulture), _z.ToString(CultureInfo.InvariantCulture), _angle.ToCss())); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.Rotate, _angle.ToCss())); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Translate, _x.CssText, _y.CssText)); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.SkewX, _angle.ToCss())); }
public override String ToCss() { //TODO return(FunctionNames.Build(_repeating ? FunctionNames.RepeatingRadialGradient : FunctionNames.RadialGradient, String.Join(", ", _stops))); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.ScaleZ, _scale.ToString(CultureInfo.InvariantCulture))); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Image, _color.ToCss())); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.Skew, _alpha.ToCss(), _beta.ToCss())); }
/// <summary> /// Returns a CSS representation of the length. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.Rgba, red.ToString(), green.ToString(), blue.ToString(), Alpha.ToString("0.##", CultureInfo.InvariantCulture))); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.SkewY, _angle.ToCss())); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.CubicBezier, X1.ToString(CultureInfo.InvariantCulture), Y1.ToString(CultureInfo.InvariantCulture), X2.ToString(CultureInfo.InvariantCulture), Y2.ToString(CultureInfo.InvariantCulture))); }
/// <summary> /// Returns a CSS representation of the transformation. /// </summary> /// <returns>The CSS value string.</returns> public String ToCss() { return(FunctionNames.Build(FunctionNames.Matrix, _matrix.M11.ToString(CultureInfo.InvariantCulture), _matrix.M12.ToString(CultureInfo.InvariantCulture), _matrix.M21.ToString(CultureInfo.InvariantCulture), _matrix.M22.ToString(CultureInfo.InvariantCulture), _matrix.Tx.ToString(CultureInfo.InvariantCulture), _matrix.Ty.ToString(CultureInfo.InvariantCulture))); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Rect, _top.ToCss(), _right.ToCss(), _bottom.ToCss(), _left.ToCss())); }
public override String ToCss() { return(FunctionNames.Build(FunctionNames.Calc, String.Concat(_origin.ToCss(), " + ", _shift.ToCss()))); }