ExCSS-Core
4.0.2
See the version list below for details.
dotnet add package ExCSS-Core --version 4.0.2
NuGet\Install-Package ExCSS-Core -Version 4.0.2
<PackageReference Include="ExCSS-Core" Version="4.0.2" />
paket add ExCSS-Core --version 4.0.2
#r "nuget: ExCSS-Core, 4.0.2"
// Install ExCSS-Core as a Cake Addin #addin nuget:?package=ExCSS-Core&version=4.0.2 // Install ExCSS-Core as a Cake Tool #tool nuget:?package=ExCSS-Core&version=4.0.2
ExCSS Core - ExCss for .NET Core
ExCSS v3 could be great (as v2 was), but needed some changes from the current master to make it useable in the real world (just a couple of bit's made public and moved to .NET Standard 2.0). I've made the changes here as the pull requests don't seem to be getting incorporated into ExCss.
The repro for this is actively maintained at the time of writing.
Example usage (simple)
// Could read in a file here...
string css = "html{ background-color: #5a5eed; color: #FFFFFF; margin: 5px; } h2{ background-color: red }";
var stylesheet = new ExCSS.StylesheetParser().Parse(css);
// Get the info out - New way
var info = stylesheet.StyleRules.First() as ExCSS.StyleRule;
var selector = info.SelectorText;
var backgroundColor = info.Style.BackgroundColor;
var foregroundColor = info.Style.Color;
var margin = info.Style.Margin;
//// Create a new stylesheet
var newParser = new ExCSS.StylesheetParser();
ExCSS.StyleRule r = new ExCSS.StyleRule(newParser);
r.SelectorText = "h1";
r.Style.BackgroundColor = "red";
ExCSS.StyleRule r2 = new ExCSS.StyleRule(newParser);
r2.SelectorText = "h2";
r2.Style.BackgroundColor = "green";
var newstylesheet = r.ToCss() + System.Environment.NewLine + r2.ToCss();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ExCSS-Core:
Package | Downloads |
---|---|
VL.UI.Core
The VL UI core library. |
GitHub repositories
This package is not used by any popular GitHub repositories.
4.0.2 - Metadata update only.
4.0.1 - StyleRules made easier to access.
4.0.0 - Fork of ExCss, udpated to .NET Standard and numerous methods/properties made public to make it usable in the real world.