Skip to content

Commit

Permalink
Adds z-index plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-scott-78 committed Apr 10, 2022
1 parent 938454b commit 3ec757e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/MonorailCss/Plugins/Layout/ZIndex.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System.Collections.Immutable;

namespace MonorailCss.Plugins.Layout;

/// <summary>
/// The z-index plugin.
/// </summary>
public class ZIndex : BaseUtilityPlugin
{
/// <inheritdoc />
protected override string Property => "z-index";

/// <inheritdoc />
protected override ImmutableDictionary<string, string> Utilities => new Dictionary<string, string>()
{
{ "z-0", "0" },
{ "z-10", "10" },
{ "z-20", "20" },
{ "z-30", "30" },
{ "z-40", "40" },
{ "z-50", "50" },
{ "z-auto", "auto" },
}.ToImmutableDictionary();
}

0 comments on commit 3ec757e

Please sign in to comment.