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 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); }