public override IWriteResult WriteInPageStyles( ICssWriter writer, Func <ICssWriter, IWriteResult, IWriteResult> childrenWriter) { var writeResult = WriteResult.Continue(); if (!string.IsNullOrEmpty(BodyStyle)) { _dependencies.NameManager.EnsureAssetName(this, ref _bodyStyleName); writer.WriteRule("." + _bodyStyleName, BodyStyle); } if (!ReferenceEquals(_pageComponents, null)) { for (var i = 0; i < _pageComponents.Length; i++) { var pageComponent = _pageComponents[i]; if (writeResult.Add(pageComponent.WriteStyles(writer)).IsComplete) { return(writeResult); } } } if (!ReferenceEquals(_layout, null)) { writeResult.Add(_layout.WriteStyles(writer)); } return(writeResult); }
protected virtual IWriteResult WriteChildren(ICssWriter writer, IWriteResult writeResult) { for (var i = 0; !writeResult.IsComplete && i < Children.Length; i++) { writeResult.Add(Children[i].WriteStyles(writer)); } return(writeResult); }
public override IWriteResult WriteInPageStyles( ICssWriter writer, Func <ICssWriter, IWriteResult, IWriteResult> childrenWriter) { writer.WriteRule(".normal", "background-color: linen; font-size: 12px;"); writer.WriteRule(".page-heading", "font-size: 16px;"); return(base.WriteInPageStyles(writer, childrenWriter)); }
public void Write(ICssWriter output) { output.WriteMedia(MediaQuery); output.StartClass(); foreach (var statement in Blocks.OfType <IWritable>()) { statement.Write(output); } output.EndClass(); }
public virtual IWriteResult WriteStyles(ICssWriter writer) { if (!_hasPageArea[(int)PageArea.Styles]) { return(WriteResult.Continue()); } var result = Element.WriteInPageStyles(writer, WriteChildren); return(result.IsComplete ? result : WriteChildren(writer, result)); }
public IWriteResult WriteStaticCss(ICssWriter writer) { if (CssRules != null && CssRules.Length > 0) { if (writer.IncludeComments) { writer.WriteComment("css rules for " + _commentNameFunc()); } for (var i = 0; i < CssRules.Length; i++) { CssRules[i](writer); } } return(WriteResult.Continue()); }
public override IWriteResult WriteStaticCss(ICssWriter writer) { var writeResult = WriteResult.Continue(); if (!ReferenceEquals(_pageComponents, null)) { for (var i = 0; i < _pageComponents.Length; i++) { var pageComponent = _pageComponents[i]; if (writeResult.Add(pageComponent.WriteStaticCss(writer)).IsComplete) { return(writeResult); } } } if (!ReferenceEquals(_layout, null)) { writeResult.Add(_layout.WriteStaticCss(writer)); } return(writeResult); }
public void Write(ICssWriter output) { output.WriteFontFace(this); }
public void Write(ICssWriter output) { output.WriteImport(ToImport, MediaQuery); }
public IWriteResult WriteStaticCss(ICssWriter writer) { return(new WriteResult()); }
public void Write(ICssWriter output) { output.WriteCharset(Charset); }
public void Write(ICssWriter output) { output.WriteSelector(this); }
public IWriteResult WriteInPageStyles(ICssWriter writer, Func <ICssWriter, IWriteResult, IWriteResult> childrenWriter) { return(new WriteResult()); }
public void Write(ICssWriter output) { output.WriteFontFace(this); }
public virtual IWriteResult WriteInPageStyles( ICssWriter writer, Func <ICssWriter, IWriteResult, IWriteResult> childrenWriter) { return(WriteResult.Continue()); }
public void Write(ICssWriter output) { output.WriteKeyframes(this); }
public void Write(ICssWriter output) { output.WriteSelectorBlock(this); }
public void Write(ICssWriter output) { output.WriteCharset(Charset); }
IWriteResult IDeployable.WriteStaticCss(ICssWriter writer) { return(WriteResult.Continue()); }
public virtual IWriteResult WriteStaticCss(ICssWriter writer) { return(Element.WriteStaticCss(writer)); }
IWriteResult IPageWriter.WriteInPageStyles(ICssWriter writer, Func <ICssWriter, IWriteResult, IWriteResult> childrenWriter) { return(WriteResult.Continue()); }
public override IWriteResult WriteStaticCss(ICssWriter writer) { return(_assetDeploymentMixin.WriteStaticCss(writer)); }
public void Write(ICssWriter output) { output.WriteMedia(MediaQuery); output.StartClass(); foreach (var statement in Blocks.OfType<IWritable>()) { statement.Write(output); } output.EndClass(); }
public virtual IWriteResult WriteStaticCss(ICssWriter writer) { return(WriteResult.Continue()); }
public void Write(ICssWriter output) { output.WriteImport(ToImport, MediaQuery); }
public void Write(ICssWriter output) { output.WriteKeyframes(this); }